Scan is working now
[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 #include "zebra_api_ext.h"
6
7 typedef struct {
8     char  *groupName;
9     char  *databaseName;
10     char  *path;
11     char  *recordId;
12     char  *recordType;
13     int   flagStoreData;
14     int   flagStoreKeys;
15     int   flagRw;
16     int   fileVerboseLimit;
17     int   databaseNamePath;
18     int   explainDatabase;
19     int   followLinks;
20 } recordGroup;
21
22 typedef struct {
23   int noOfRecords;
24   ZebraRetrievalRecord *records;
25 } RetrievalObj;
26
27 typedef struct {
28   int  errCode;        /* non-zero if error when fetching this */
29   char *errString;     /* error string */
30   int  position;       /* position of record in result set (1,2,..) */
31   char *base; 
32   oid_value format;    /* record syntax */
33   RetrievalRecordBuf *buf;
34 } RetrievalRecord;
35
36 /* Scan Term Descriptor */
37 typedef struct {
38     int occurrences;     /* scan term occurrences */
39     char *term;          /* scan term string */
40 } ScanEntry;
41
42 typedef struct {
43   int num_entries;
44   int position;
45   int is_partial;
46   ScanEntry *entries;
47 } ScanObj;
48
49 #endif