Bump version to 2.0.11
[idzebra-moved-to-github.git] / include / idzebra / api.h
index d01ce21..f1c7e84 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: api.h,v 1.40 2006-11-14 08:12:07 adam Exp $
-   Copyright (C) 1995-2006
+/* $Id: api.h,v 1.46 2007-01-17 15:35:47 adam Exp $
+   Copyright (C) 1995-2007
    Index Data ApS
 
 This file is part of the Zebra server.
    Index Data ApS
 
 This file is part of the Zebra server.
@@ -57,7 +57,7 @@ typedef struct {
     int len;             /* length */
     oid_value format;    /* record syntax */
     char *base; 
     int len;             /* length */
     oid_value format;    /* record syntax */
     char *base; 
-    SYSNO sysno;
+    zint sysno;
     int  score;
 } ZebraRetrievalRecord;
 
     int  score;
 } ZebraRetrievalRecord;
 
@@ -186,6 +186,22 @@ ZEBRA_RES zebra_search_PQF(ZebraHandle zh, const char *pqf_query,
     \param query RPN query using YAZ structure
     \param setname name of resultset
     \param hits number of hits is returned
     \param query RPN query using YAZ structure
     \param setname name of resultset
     \param hits number of hits is returned
+    \param estimated_hit_count whether hit count is an estimate
+    \param partial_resultset whether result is only partially evaluated
+*/
+YAZ_EXPORT
+ZEBRA_RES zebra_search_RPN_x(ZebraHandle zh, ODR o, Z_RPNQuery *query,
+                           const char *setname, zint *hits,
+                           int *estimated_hit_count,
+                           int *partial_resultset);
+
+
+/** \brief Search using RPN Query structure (from ASN.1)
+    \param zh session handle
+    \param o ODR handle
+    \param query RPN query using YAZ structure
+    \param setname name of resultset
+    \param hits number of hits is returned
 */
 YAZ_EXPORT
 ZEBRA_RES zebra_search_RPN(ZebraHandle zh, ODR o, Z_RPNQuery *query,
 */
 YAZ_EXPORT
 ZEBRA_RES zebra_search_RPN(ZebraHandle zh, ODR o, Z_RPNQuery *query,
@@ -393,21 +409,22 @@ ZEBRA_RES zebra_add_record(ZebraHandle zh, const char *buf, int buf_size);
 YAZ_EXPORT 
 ZEBRA_RES zebra_insert_record(ZebraHandle zh, 
                              const char *recordType,
 YAZ_EXPORT 
 ZEBRA_RES zebra_insert_record(ZebraHandle zh, 
                              const char *recordType,
-                             SYSNO *sysno, const char *match,
+                             zint *sysno, const char *match,
                              const char *fname,
                              const char *buf, int buf_size,
                              int force_update);
 YAZ_EXPORT
 ZEBRA_RES zebra_update_record(ZebraHandle zh, 
                              const char *recordType,
                              const char *fname,
                              const char *buf, int buf_size,
                              int force_update);
 YAZ_EXPORT
 ZEBRA_RES zebra_update_record(ZebraHandle zh, 
                              const char *recordType,
-                             SYSNO *sysno, const char *match,
+                             zint *sysno, const char *match,
                              const char *fname,
                              const char *buf, int buf_size,
                              int force_update);
 YAZ_EXPORT 
 ZEBRA_RES zebra_delete_record(ZebraHandle zh, 
                              const char *recordType,
                              const char *fname,
                              const char *buf, int buf_size,
                              int force_update);
 YAZ_EXPORT 
 ZEBRA_RES zebra_delete_record(ZebraHandle zh, 
                              const char *recordType,
-                             SYSNO *sysno, const char *match, const char *fname,
+                             zint *sysno, const char *match,
+                              const char *fname,
                              const char *buf, int buf_size,
                              int force_update);
 
                              const char *buf, int buf_size,
                              int force_update);
 
@@ -480,6 +497,11 @@ struct BFiles_struct *zebra_get_bfs(ZebraHandle zh);
 YAZ_EXPORT
 ZEBRA_RES zebra_set_limit(ZebraHandle zh, int complement_flag, zint *ids);
 
 YAZ_EXPORT
 ZEBRA_RES zebra_set_limit(ZebraHandle zh, int complement_flag, zint *ids);
 
+YAZ_EXPORT
+ZEBRA_RES zebra_set_break_handler(ZebraHandle zh, 
+                                  int (*f)(void *client_data),
+                                  void *client_data);
+
 YAZ_END_CDECL                                
 
 /** \mainpage Zebra
 YAZ_END_CDECL                                
 
 /** \mainpage Zebra