-/* $Id: zebraapi.h,v 1.24 2003-02-11 14:01:39 heikki Exp $
+/* $Id: zebraapi.h,v 1.26 2003-02-27 23:08:10 pop Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
int followLinks;
};
+typedef struct {
+ int processed;
+ int inserted;
+ int updated;
+ int deleted;
+ long utime;
+ long stime;
+} ZebraTransactionStatus;
+
/* Retrieval Record Descriptor */
typedef struct {
int errCode; /* non-zero if error when fetching this */
/* extra information associated with error */
YAZ_EXPORT char *zebra_errAdd (ZebraHandle zh);
+/* get the result code and addinfo from zh */
+YAZ_EXPORT void zebra_result (ZebraHandle zh, int *code, char **addinfo);
+/* FIXME - why is this needed?? -H */
+
+
/**************
* Searching
*/
void zebra_begin_trans (ZebraHandle zh);
void zebra_end_trans (ZebraHandle zh);
+void zebra_end_transaction (ZebraHandle zh, ZebraTransactionStatus *stat);
int zebra_commit (ZebraHandle zh);
YAZ_EXPORT void zebra_set_group (ZebraHandle zh, struct recordGroup *rg);
-YAZ_EXPORT void zebra_result (ZebraHandle zh, int *code, char **addinfo);
-
YAZ_EXPORT int zebra_resultSetTerms (ZebraHandle zh, const char *setname,
int no, int *count,