X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fidzebra%2Fapi.h;h=3336ca202d3e8e10e73ee213719999d09097b35e;hb=40e64fc6d452f02389a00e5c8004f895342099c2;hp=6b53295ed86b315e10a52b2315393212b35a2fb4;hpb=39cb125e7755c6058a93dada8d5172804213cf8e;p=idzebra-moved-to-github.git diff --git a/include/idzebra/api.h b/include/idzebra/api.h index 6b53295..3336ca2 100644 --- a/include/idzebra/api.h +++ b/include/idzebra/api.h @@ -1,6 +1,6 @@ -/* $Id: api.h,v 1.3 2004-11-29 21:55:25 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 - Index Data Aps +/* $Id: api.h,v 1.7 2005-01-15 21:45:43 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -20,6 +20,11 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/** + * \file api.h + * \brief Zebra API + */ + /* Return codes: * Most functions return an int. Unix-like, 0 means OK, * non-zero means an error. The error info should be available @@ -35,13 +40,6 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include -/* Fixme! Compare string (ignore case) */ -#ifdef WIN32 -#define STRCASECMP stricmp -#else -#define STRCASECMP strcasecmp -#endif - YAZ_BEGIN_CDECL typedef struct { @@ -149,11 +147,11 @@ YAZ_EXPORT int zebra_deleleResultSet(ZebraHandle zh, int function, /* Browse */ YAZ_EXPORT int zebra_scan (ZebraHandle zh, ODR stream, - Z_AttributesPlusTerm *zapt, - oid_value attributeset, - int *position, int *num_entries, - ZebraScanEntry **list, - int *is_partial); + Z_AttributesPlusTerm *zapt, + oid_value attributeset, + int *position, int *num_entries, + ZebraScanEntry **list, + int *is_partial); @@ -255,6 +253,12 @@ int zebra_register_statistics (ZebraHandle zh, int dumpdict); YAZ_EXPORT int zebra_record_encoding (ZebraHandle zh, const char *encoding); +YAZ_EXPORT +int zebra_record_encoding (ZebraHandle zh, const char *encoding); + +YAZ_EXPORT +int zebra_octet_term_encoding(ZebraHandle zh, const char *encoding); + /* Resources */ YAZ_EXPORT int zebra_set_resource(ZebraHandle zh, const char *name, const char *value); @@ -272,12 +276,19 @@ typedef struct { int score; } ZebraMetaRecord; -YAZ_EXPORT ZebraMetaRecord *zebra_meta_records_create (ZebraHandle zh, - const char *name, - int num, - zint *positions); +YAZ_EXPORT +ZebraMetaRecord *zebra_meta_records_create (ZebraHandle zh, + const char *name, + int num, zint *positions); + -YAZ_EXPORT void zebra_meta_records_destroy (ZebraHandle zh, - ZebraMetaRecord *records, int num); +YAZ_EXPORT +ZebraMetaRecord *zebra_meta_records_create_range (ZebraHandle zh, + const char *name, + zint start, int num); + +YAZ_EXPORT +void zebra_meta_records_destroy (ZebraHandle zh, ZebraMetaRecord *records, + int num); YAZ_END_CDECL #endif