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
1 #ifndef ZEBRA_PERL_H
2 #define ZEBRA_PERL_H
3
4 #include "zebraapi.h"
5
6 typedef struct {
7     char  *groupName;
8     char  *databaseName;
9     char  *path;
10     char  *recordId;
11     char  *recordType;
12     int   flagStoreData;
13     int   flagStoreKeys;
14     int   flagRw;
15     int   fileVerboseLimit;
16     int   databaseNamePath;
17     int   explainDatabase;
18     int   followLinks;
19 } recordGroup;
20
21 typedef struct {
22   int noOfRecords;
23   ZebraRetrievalRecord *records;
24 } RetrievalObj;
25
26 typedef struct {
27   char *buf;           /* record buffer (void pointer really) */
28   int len;             /* length */
29 } RetrievalRecordBuf;
30
31
32 typedef struct {
33   int  errCode;        /* non-zero if error when fetching this */
34   char *errString;     /* error string */
35   int  position;       /* position of record in result set (1,2,..) */
36   char *base; 
37   SYSNO sysno;
38   int  score;
39   char *format;    /* record syntax */
40   RetrievalRecordBuf *buf;
41 } RetrievalRecord;
42
43 /* Scan Term Descriptor */
44 typedef struct {
45     int occurrences;     /* scan term occurrences */
46     char *term;          /* scan term string */
47 } scanEntry;
48
49 typedef struct {
50   int num_entries;
51   int position;
52   int is_partial;
53   scanEntry *entries;
54 } ScanObj;
55
56 #endif
57
58