X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=zutil%2Fzget.c;h=8e09ca7c3fff4f16530f8070ade1e773c665e5e4;hb=db9768c3988f9536c898250880c13923a2dde32d;hp=7f8d205d17d3f893b1082116ee2e625e414f4363;hpb=eb41380ef9489c53d98ceeffdc1ea8908b4303b6;p=yaz-moved-to-github.git diff --git a/zutil/zget.c b/zutil/zget.c index 7f8d205..8e09ca7 100644 --- a/zutil/zget.c +++ b/zutil/zget.c @@ -4,7 +4,16 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zget.c,v $ - * Revision 1.7 2001-05-16 07:22:56 adam + * Revision 1.10 2001-09-24 21:48:46 adam + * Setting v1,v2,search and present options for init request. + * + * Revision 1.9 2001/05/18 11:42:03 adam + * YAZ Build date for WIN32. + * + * Revision 1.8 2001/05/17 14:16:15 adam + * Added EXTERNAL handling for item update0 (1.0). + * + * Revision 1.7 2001/05/16 07:22:56 adam * YAZ CVS Date part of implementationVersion in init{request,Response}. * * Revision 1.6 2001/03/25 21:55:13 adam @@ -91,16 +100,28 @@ Z_InitRequest *zget_InitRequest(ODR o) r->referenceId = 0; r->options = (Odr_bitmask *)odr_malloc(o, sizeof(*r->options)); ODR_MASK_ZERO(r->options); - r->protocolVersion = (Odr_bitmask *)odr_malloc(o, sizeof(*r->protocolVersion)); + r->protocolVersion = (Odr_bitmask *) + odr_malloc(o, sizeof(*r->protocolVersion)); + + ODR_MASK_SET(r->options, Z_Options_search); + ODR_MASK_SET(r->options, Z_Options_present); + ODR_MASK_ZERO(r->protocolVersion); + + ODR_MASK_SET(r->protocolVersion, Z_ProtocolVersion_1); + ODR_MASK_SET(r->protocolVersion, Z_ProtocolVersion_2); + r->preferredMessageSize = odr_intdup(o, 30*1024); r->maximumRecordSize = odr_intdup(o, 30*1024); r->idAuthentication = 0; r->implementationId = "81"; r->implementationName = "Index Data/YAZ"; r->implementationVersion = YAZ_VERSION -#ifdef YAZ_DATE - " (" YAZ_DATE ")" +#ifdef YAZ_DATE_STR + " (" YAZ_DATE_STR ")" +#endif +#ifdef YAZ_OS + " " YAZ_OS #endif ; r->userInformationField = 0; @@ -123,8 +144,11 @@ Z_InitResponse *zget_InitResponse(ODR o) r->implementationId = "81"; r->implementationName = "Index Data/YAZ"; r->implementationVersion = YAZ_VERSION -#ifdef YAZ_DATE - " (" YAZ_DATE ")" +#ifdef YAZ_DATE_STR + " (" YAZ_DATE_STR ")" +#endif +#ifdef YAZ_OS + " " YAZ_OS #endif ; r->userInformationField = 0;