projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extended the result set system. Added support for filtering/limits.
[idzebra-moved-to-github.git]
/
include
/
idzebra
/
recctrl.h
diff --git
a/include/idzebra/recctrl.h
b/include/idzebra/recctrl.h
index
6f10701
..
0a39e70
100644
(file)
--- a/
include/idzebra/recctrl.h
+++ b/
include/idzebra/recctrl.h
@@
-1,6
+1,6
@@
-/* $Id: recctrl.h,v 1.5 2004-11-29 21:55:25 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
- Index Data Aps
+/* $Id: recctrl.h,v 1.10 2005-04-28 08:20:39 adam Exp $
+ Copyright (C) 1995-2005
+ Index Data ApS
This file is part of the Zebra server.
This file is part of the Zebra server.
@@
-23,6
+23,7
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#ifndef RECCTRL_H
#define RECCTRL_H
#ifndef RECCTRL_H
#define RECCTRL_H
+#include <sys/types.h>
#include <yaz/proto.h>
#include <yaz/oid.h>
#include <yaz/odr.h>
#include <yaz/proto.h>
#include <yaz/oid.h>
#include <yaz/odr.h>
@@
-37,8
+38,9
@@
typedef struct {
int attrSet;
int attrUse;
unsigned reg_type;
int attrSet;
int attrUse;
unsigned reg_type;
- char *string;
- int length;
+ char *attrStr;
+ char *term_buf;
+ int term_len;
zint seqno;
zint record_id;
zint section_id;
zint seqno;
zint record_id;
zint section_id;
@@
-57,7
+59,9
@@
struct recExtractCtrl {
void (*init)(struct recExtractCtrl *p, RecWord *w);
void *clientData;
void (*tokenAdd)(RecWord *w);
void (*init)(struct recExtractCtrl *p, RecWord *w);
void *clientData;
void (*tokenAdd)(RecWord *w);
+ void (*setStoreData)(struct recExtractCtrl *p, void *buf, size_t size);
ZebraMaps zebra_maps;
ZebraMaps zebra_maps;
+ int first_record;
int flagShowRecords;
int seqno[256];
char match_criteria[256];
int flagShowRecords;
int seqno[256];
char match_criteria[256];
@@
-96,6
+100,7
@@
typedef struct recType *RecType;
struct recType
{
struct recType
{
+ int version;
char *name; /* Name of record type */
void *(*init)(Res res, RecType recType); /* Init function - called once */
void (*config)(void *clientData, Res res, const char *args); /* Config */
char *name; /* Name of record type */
void *(*init)(Res res, RecType recType); /* Init function - called once */
void (*config)(void *clientData, Res res, const char *args); /* Config */