projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
const correctness of z_HTTP_header_lookup first argument 'headers'
[yaz-moved-to-github.git]
/
include
/
yaz
/
zgdu.h
diff --git
a/include/yaz/zgdu.h
b/include/yaz/zgdu.h
index
e24a4ab
..
dd09245
100644
(file)
--- a/
include/yaz/zgdu.h
+++ b/
include/yaz/zgdu.h
@@
-1,10
+1,15
@@
/*
/*
- * Copyright (c) 1998-2003, Index Data
+ * Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
* See the file LICENSE for details.
- * Sebastian Hammer, Adam Dickmeiss
*
*
- * $Id: zgdu.h,v 1.2 2003-12-04 11:46:36 adam Exp $
+ * $Id: zgdu.h,v 1.8 2006-09-14 07:39:49 marc Exp $
*/
*/
+
+/**
+ * \file zgdu.h
+ * \brief Header for the Z_GDU (HTTP or Z39.50 package)
+ */
+
#ifndef Z_GDU_H
#define Z_GDU_H
#ifndef Z_GDU_H
#define Z_GDU_H
@@
-51,13
+56,28
@@
typedef struct {
YAZ_EXPORT int z_GDU (ODR o, Z_GDU **p, int opt, const char *name);
YAZ_EXPORT void z_HTTP_header_add(ODR o, Z_HTTP_Header **hp, const char *n,
const char *v);
YAZ_EXPORT int z_GDU (ODR o, Z_GDU **p, int opt, const char *name);
YAZ_EXPORT void z_HTTP_header_add(ODR o, Z_HTTP_Header **hp, const char *n,
const char *v);
-YAZ_EXPORT const char *z_HTTP_header_lookup(Z_HTTP_Header *hp, const char *n);
+YAZ_EXPORT void z_HTTP_header_add_content_type(ODR o, Z_HTTP_Header **hp,
+ const char *content_type,
+ const char *charset);
+
+YAZ_EXPORT const char *z_HTTP_header_lookup(const Z_HTTP_Header *hp, const char *n);
YAZ_EXPORT const char *z_HTTP_errmsg(int code);
YAZ_EXPORT Z_GDU *z_get_HTTP_Response(ODR o, int code);
YAZ_EXPORT Z_GDU *z_get_HTTP_Request(ODR o);
YAZ_EXPORT const char *z_HTTP_errmsg(int code);
YAZ_EXPORT Z_GDU *z_get_HTTP_Response(ODR o, int code);
YAZ_EXPORT Z_GDU *z_get_HTTP_Request(ODR o);
+YAZ_EXPORT Z_GDU *z_get_HTTP_Request_host_path(ODR odr,
+ const char *host,
+ const char *path);
YAZ_END_CDECL
#endif
YAZ_END_CDECL
#endif
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+