X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=perl%2Fzebra_perl.h;h=b7826dfe5eecd908e8d1b71ce05947e923b0cb2c;hb=a1dba281bafc701a7e958d6e7512a2dbb3027191;hp=40ba7260d810b6aff7498bcbca42747e020989e2;hpb=af03c4a4f5320b52c7cc5f47bab7c9ad4b3e384d;p=idzebra-moved-to-github.git diff --git a/perl/zebra_perl.h b/perl/zebra_perl.h index 40ba726..b7826df 100644 --- a/perl/zebra_perl.h +++ b/perl/zebra_perl.h @@ -1,5 +1,53 @@ +#ifndef ZEBRA_PERL_H +#define ZEBRA_PERL_H -#include -#include +#include "zebraapi.h" #include "zebra_api_ext.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 { + 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; + int 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 + +