Remove isamd. It's not been in use for a long time and isamb is better
[idzebra-moved-to-github.git] / perl / zebra_perl.h
index 40ba726..9af24a7 100644 (file)
@@ -1,5 +1,58 @@
+#ifndef ZEBRA_PERL_H
+#define ZEBRA_PERL_H
+
+#include "zebraapi.h"
+
+typedef struct {
+    char  *groupName;
+    char  *databaseName;
+    char  *path;
+    char  *recordId;
+    char  *recordType;
+    int   flagStoreData;
+    int   flagStoreKeys;
+    int   flagRw;
+    int   fileVerboseLimit;
+    int   databaseNamePath;
+    int   explainDatabase;
+    int   followLinks;
+} recordGroup;
+
+typedef struct {
+  int noOfRecords;
+  ZebraRetrievalRecord *records;
+} RetrievalObj;
+
+typedef struct {
+  char *buf;           /* record buffer (void pointer really) */
+  int len;             /* length */
+} RetrievalRecordBuf;
+
+
+typedef struct {
+  int  errCode;        /* non-zero if error when fetching this */
+  char *errString;     /* error string */
+  int  position;       /* position of record in result set (1,2,..) */
+  char *base; 
+  SYSNO sysno;
+  int  score;
+  char *format;    /* record syntax */
+  RetrievalRecordBuf *buf;
+} RetrievalRecord;
+
+/* Scan Term Descriptor */
+typedef struct {
+    int occurrences;     /* scan term occurrences */
+    char *term;          /* scan term string */
+} scanEntry;
+
+typedef struct {
+  int num_entries;
+  int position;
+  int is_partial;
+  scanEntry *entries;
+} ScanObj;
+
+#endif
 
-#include <zebraapi.h>
-#include <data1.h>
-#include "zebra_api_ext.h"