CQL tests and error handling
[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   int  sysno;
33   int  score;
34   char *format;    /* record syntax */
35   RetrievalRecordBuf *buf;
36 } RetrievalRecord;
37
38 /* Scan Term Descriptor */
39 typedef struct {
40     int occurrences;     /* scan term occurrences */
41     char *term;          /* scan term string */
42 } ScanEntry;
43
44 typedef struct {
45   int num_entries;
46   int position;
47   int is_partial;
48   ScanEntry *entries;
49 } ScanObj;
50
51 #endif
52
53