X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=include%2Fidzebra%2Frecctrl.h;h=207b32df4267c69f30d0ab94080fb0a0c0837dd1;hb=2eacaa1e549428b231de5844f397466f6a44c59f;hp=ac5f448739b3f6a131f74d76f81cc3f77df44d25;hpb=21f90a8618faec6bee8d125c12088b74db8eb8b9;p=idzebra-moved-to-github.git diff --git a/include/idzebra/recctrl.h b/include/idzebra/recctrl.h index ac5f448..207b32d 100644 --- a/include/idzebra/recctrl.h +++ b/include/idzebra/recctrl.h @@ -1,4 +1,4 @@ -/* $Id: recctrl.h,v 1.32 2007-03-14 11:48:31 adam Exp $ +/* $Id: recctrl.h,v 1.37 2007-10-29 16:57:51 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -25,7 +25,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include -#include #include #include #include @@ -51,7 +50,7 @@ YAZ_BEGIN_CDECL /** Indexing token */ typedef struct { /** index type ('w', 'p', .. */ - unsigned index_type; + const char *index_type; /** index name, e.g. "title" */ const char *index_name; /** token char data */ @@ -107,6 +106,7 @@ struct recExtractCtrl { void (*schemaAdd)(struct recExtractCtrl *p, Odr_oid *oid); data1_handle dh; void *handle; + enum zebra_recctrl_action_t action; }; /* Retrieve record control */ @@ -115,7 +115,7 @@ struct recRetrieveCtrl { /* Input parameters ... */ Res res; /* Resource pool */ ODR odr; /* ODR used to create response */ - oid_value input_format; /* Preferred record syntax */ + const Odr_oid * input_format; /* Preferred record syntax OID */ Z_RecordComposition *comp; /* formatting instructions */ char *encoding; /* preferred character encoding */ zint localno; /* local id of record */ @@ -128,11 +128,11 @@ struct recRetrieveCtrl { zebra_snippets *doc_snippet; /* response */ - oid_value output_format; - void *rec_buf; + const Odr_oid * output_format; /* output format OID */ + void * rec_buf; int rec_len; int diagnostic; - char *addinfo; + char * addinfo; }; typedef struct recType *RecType;