X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fzgdu.h;h=daa9d4a815cd4604744c95261450bd2ce21ef7c7;hb=d4981d86af4a523288d1eadca634b83fad0f37e8;hp=7f9a1244d36c9605fb9e7e47ba3ade67474db43d;hpb=4ca818ec201c9dcf5461e419002c95fd2eac620e;p=yaz-moved-to-github.git diff --git a/include/yaz/zgdu.h b/include/yaz/zgdu.h index 7f9a124..daa9d4a 100644 --- a/include/yaz/zgdu.h +++ b/include/yaz/zgdu.h @@ -1,15 +1,22 @@ /* - * Copyright (c) 1998-2003, Index Data + * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss * - * $Id: zgdu.h,v 1.1 2003-02-21 12:08:58 adam Exp $ + * $Id: zgdu.h,v 1.6 2006-03-01 23:24:25 adam Exp $ */ + +/** + * \file zgdu.h + * \brief Header for the Z_GDU (HTTP or Z39.50 package) + */ + #ifndef Z_GDU_H #define Z_GDU_H #include +YAZ_BEGIN_CDECL + typedef struct Z_HTTP_Header Z_HTTP_Header; struct Z_HTTP_Header { @@ -49,6 +56,10 @@ 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 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(Z_HTTP_Header *hp, const char *n); YAZ_EXPORT const char *z_HTTP_errmsg(int code); @@ -56,4 +67,14 @@ 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_END_CDECL + #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +