X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.h;h=21a6e816cd6bf2af3e4225b8312e78d1708e5fee;hb=daa4802416fa7b68f60a1156ad039134e99aef25;hp=f05541aa75e7953487a1f64784135dc0a880126c;hpb=4247c4670f5bc5ad61e458734a590d57be5a9f34;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.h b/index/zebraapi.h index f05541a..21a6e81 100644 --- a/index/zebraapi.h +++ b/index/zebraapi.h @@ -1,10 +1,20 @@ /* - * Copyright (C) 1994-1998, Index Data I/S + * Copyright (C) 1994-1998, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: zebraapi.h,v $ - * Revision 1.3 1998-06-22 11:36:48 adam + * Revision 1.6 1999-02-17 11:29:57 adam + * Fixed in record_fetch. Minor updates to API. + * + * Revision 1.5 1998/09/22 10:48:19 adam + * Minor changes in search API. + * + * Revision 1.4 1998/09/02 13:53:18 adam + * Extra parameter decode added to search routines to implement + * persistent queries. + * + * Revision 1.3 1998/06/22 11:36:48 adam * Added authentication check facility to zebra. * * Revision 1.2 1998/06/13 00:14:09 adam @@ -19,6 +29,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* Retrieval Record Descriptor */ typedef struct { int errCode; /* non-zero if error when fetching this */ @@ -42,7 +56,7 @@ typedef struct zebra_info *ZebraHandle; YAZ_EXPORT ZebraHandle zebra_open (const char *configName); /* Search using RPN-Query */ -YAZ_EXPORT void zebra_search_rpn (ZebraHandle zh, ODR stream, +YAZ_EXPORT void zebra_search_rpn (ZebraHandle zh, ODR input, ODR output, Z_RPNQuery *query, int num_bases, char **basenames, const char *setname); @@ -78,3 +92,6 @@ YAZ_EXPORT int zebra_hits (ZebraHandle zh); /* do authentication */ YAZ_EXPORT int zebra_auth (ZebraHandle zh, const char *user, const char *pass); +#ifdef __cplusplus +} +#endif