-/* $Id: recctrl.h,v 1.3 2004-09-28 13:31:18 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
- Index Data Aps
+/* $Id: recctrl.h,v 1.9 2005-03-31 12:42:06 adam Exp $
+ Copyright (C) 1995-2005
+ Index Data ApS
This file is part of the Zebra server.
#ifndef RECCTRL_H
#define RECCTRL_H
+#include <sys/types.h>
#include <yaz/proto.h>
#include <yaz/oid.h>
#include <yaz/odr.h>
int attrSet;
int attrUse;
unsigned reg_type;
- char *string;
- int length;
- int seqno;
+ char *attrStr;
+ char *term_buf;
+ int term_len;
+ zint seqno;
+ zint record_id;
+ zint section_id;
ZebraMaps zebra_maps;
struct recExtractCtrl *extractCtrl;
} RecWord;
ZebraMaps zebra_maps;
int flagShowRecords;
int seqno[256];
+ char match_criteria[256];
void (*schemaAdd)(struct recExtractCtrl *p, Odr_oid *oid);
data1_handle dh;
void *handle;
void *rec_buf;
int rec_len;
int diagnostic;
- char *message;
+ char *addinfo;
};
typedef struct recType *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 */