Many public functions returns ZEBRA_RES rather than int to avoid
[idzebra-moved-to-github.git] / include / idzebra / recctrl.h
index dbba8a5..abc8357 100644 (file)
@@ -1,6 +1,6 @@
-/* $Id: recctrl.h,v 1.3 2004-09-28 13:31:18 adam Exp $
-   Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
-   Index Data Aps
+/* $Id: recctrl.h,v 1.9 2005-03-31 12:42:06 adam Exp $
+   Copyright (C) 1995-2005
+   Index Data ApS
 
 This file is part of the Zebra server.
 
@@ -23,6 +23,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #ifndef RECCTRL_H
 #define RECCTRL_H
 
+#include <sys/types.h>
 #include <yaz/proto.h>
 #include <yaz/oid.h>
 #include <yaz/odr.h>
@@ -37,9 +38,12 @@ typedef struct {
     int  attrSet;
     int  attrUse;
     unsigned reg_type;
-    char *string;
-    int  length;
-    int  seqno;
+    char *attrStr;
+    char *term_buf;
+    int  term_len;
+    zint seqno;
+    zint record_id;
+    zint section_id;
     ZebraMaps zebra_maps;
     struct recExtractCtrl *extractCtrl;
 } RecWord;
@@ -58,6 +62,7 @@ struct recExtractCtrl {
     ZebraMaps zebra_maps;
     int       flagShowRecords;
     int       seqno[256];
+    char      match_criteria[256];
     void      (*schemaAdd)(struct recExtractCtrl *p, Odr_oid *oid);
     data1_handle dh;
     void      *handle;
@@ -86,13 +91,14 @@ struct recRetrieveCtrl {
     void       *rec_buf;
     int        rec_len;
     int        diagnostic;
-    char *message;
+    char       *addinfo;
 };
 
 typedef struct recType *RecType;
 
 struct recType
 {
+    int version;
     char *name;                           /* Name of record type */
     void *(*init)(Res res, RecType recType);  /* Init function - called once */
     void (*config)(void *clientData, Res res, const char *args); /* Config */