Get rid of typedefs iSAMS_P, ISAMC_P, ISAMB_P and use ISAM_P instead.
[idzebra-moved-to-github.git] / include / idzebra / api.h
index 677dee6..0c139d0 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: api.h,v 1.13 2005-01-24 14:44:23 adam Exp $
+/* $Id: api.h,v 1.17 2005-04-13 08:52:26 adam Exp $
    Copyright (C) 1995-2005
    Index Data ApS
 
@@ -178,10 +178,10 @@ YAZ_EXPORT void zebra_clearError(ZebraHandle zh);
     \param hits of hits is returned
  */
 YAZ_EXPORT int zebra_search_PQF(ZebraHandle zh, const char *pqf_query,
-                               const char *setname, int *hits);
+                               const char *setname, zint *hits);
 
 /** \fn int zebra_search_RPN(ZebraHandle zh, ODR o, Z_RPNQuery *query,
-    const char *setname, int *hits)
+    const char *setname, zint *hits)
     \brief Search using RPN Query 
     \param zh session handle
     \param o ODR handle
@@ -190,7 +190,7 @@ YAZ_EXPORT int zebra_search_PQF(ZebraHandle zh, const char *pqf_query,
     \param hits number of hits is returned
  */
 YAZ_EXPORT int zebra_search_RPN(ZebraHandle zh, ODR o, Z_RPNQuery *query,
-                               const char *setname, int *hits);
+                               const char *setname, zint *hits);
 
 /** 
     \fn int zebra_records_retrieve(ZebraHandle zh, ODR stream,
@@ -224,7 +224,6 @@ YAZ_EXPORT int zebra_deleteResultSet(ZebraHandle zh, int function,
                                     int num_setnames, char **setnames,
                                     int *statuses);
 
-
 /**
    \fn int zebra_scan(ZebraHandle zh, ODR stream,
    Z_AttributesPlusTerm *zapt, oid_value attributeset,
@@ -246,7 +245,23 @@ YAZ_EXPORT int zebra_scan(ZebraHandle zh, ODR stream,
                          ZebraScanEntry **list,
                          int *is_partial);
 
-             
+/**
+   \fn int zebra_scan_PQF(ZebraHandle zh, ODR stream,
+   const char *query, int *position, int *num_entries, ZebraScanEntry **list, int *is_partial)
+   \brief performs Scan (taking PQF string)
+   \param zh session handle
+   \param stream ODR handle for result
+   \param query PQF scan query
+   \param position input/output position
+   \param num_entries number of terms requested / returned 
+   \param list list of resulting terms (ODR allocated)
+   \param is_partial upon return 1=partial, 0=complete
+*/
+YAZ_EXPORT int zebra_scan_PQF(ZebraHandle zh, ODR stream,
+                             const char *query,
+                             int *position, int *num_entries,
+                             ZebraScanEntry **entries,
+                             int *is_partial);
 /**
    \fn int zebra_auth(ZebraHandle zh, const char *user, const char *pass)
    \brief authenticate user. Returns 0 if OK, != 0 on failure
@@ -352,7 +367,7 @@ YAZ_EXPORT int zebra_sort(ZebraHandle zh, ODR stream,
 
 YAZ_EXPORT
 int zebra_select_databases(ZebraHandle zh, int num_bases, 
-                            const char **basenames);
+                          const char **basenames);
 
 YAZ_EXPORT
 int zebra_select_database(ZebraHandle zh, const char *basename);
@@ -403,5 +418,8 @@ ZebraMetaRecord *zebra_meta_records_create_range(ZebraHandle zh,
 YAZ_EXPORT
 void zebra_meta_records_destroy(ZebraHandle zh, ZebraMetaRecord *records,
                                int num);
+
+YAZ_EXPORT 
+struct BFiles_struct *zebra_get_bfs(ZebraHandle zh);
 YAZ_END_CDECL                                
 #endif