X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.h;h=21a6e816cd6bf2af3e4225b8312e78d1708e5fee;hb=f9da3895c7f972aa56c80eda5c1b463455042380;hp=83df4241ac66ef13341dbb81b3748610daed0001;hpb=3f45c68ea8b1d3a3e9c5b3a014b3d001e89c46eb;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.h b/index/zebraapi.h index 83df424..21a6e81 100644 --- a/index/zebraapi.h +++ b/index/zebraapi.h @@ -1,10 +1,23 @@ /* - * 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.2 1998-06-13 00:14:09 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 * Minor changes. * * Revision 1.1 1998/06/12 12:22:13 adam @@ -16,6 +29,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* Retrieval Record Descriptor */ typedef struct { int errCode; /* non-zero if error when fetching this */ @@ -39,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); @@ -72,3 +89,9 @@ YAZ_EXPORT char *zebra_errAdd (ZebraHandle zh); /* number of hits (after search) */ 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