X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.h;h=21a6e816cd6bf2af3e4225b8312e78d1708e5fee;hb=21e03c79e86bc7f7edcd0469d40186fabd9a15f4;hp=329c9cf2eb6ad979981bf8bf3ecd5b7f57a90528;hpb=0df6c383d656dba662eb9d9acafed01a0973fcff;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.h b/index/zebraapi.h index 329c9cf..21a6e81 100644 --- a/index/zebraapi.h +++ b/index/zebraapi.h @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zebraapi.h,v $ - * Revision 1.4 1998-09-02 13:53:18 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. * @@ -23,6 +29,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* Retrieval Record Descriptor */ typedef struct { int errCode; /* non-zero if error when fetching this */ @@ -46,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, ODR decode, +YAZ_EXPORT void zebra_search_rpn (ZebraHandle zh, ODR input, ODR output, Z_RPNQuery *query, int num_bases, char **basenames, const char *setname); @@ -82,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