X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.h;h=5d073faf91982dc05858412017e094ed10db4244;hb=b5b9a40216a338472c3410c8e2554a7a8a900a60;hp=0bc5099daedeed785e8395161c5e63a7d8a6c7ea;hpb=2b1851bd5565e3d21f9cf9a37661a584c063b75f;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.h b/index/zebraapi.h index 0bc5099..5d073fa 100644 --- a/index/zebraapi.h +++ b/index/zebraapi.h @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: zebraapi.h,v 1.14 2002-04-04 14:14:13 adam Exp $ - */ +/* $Id: zebraapi.h,v 1.20 2002-09-03 11:44:54 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ZEBRAAPI_H #define ZEBRAAPI_H @@ -17,17 +33,18 @@ YAZ_BEGIN_CDECL struct recordGroup { - char *groupName; - char *databaseName; - char *path; - char *recordId; - char *recordType; - int flagStoreData; - int flagStoreKeys; - int flagRw; - int fileVerboseLimit; - int databaseNamePath; - int explainDatabase; + char *groupName; + char *databaseName; + char *path; + char *recordId; + char *recordType; + int flagStoreData; + int flagStoreKeys; + int flagRw; + int fileVerboseLimit; + int databaseNamePath; + int explainDatabase; + int followLinks; }; /* Retrieval Record Descriptor */ @@ -130,9 +147,10 @@ YAZ_EXPORT void zebra_set_group (ZebraHandle zh, struct recordGroup *rg); YAZ_EXPORT void zebra_result (ZebraHandle zh, int *code, char **addinfo); -YAZ_EXPORT const char *zebra_resultSetTerms (ZebraHandle zh, - const char *setname, - int no, int *count, int *no_max); + +YAZ_EXPORT int zebra_resultSetTerms (ZebraHandle zh, const char *setname, + int no, int *count, + int *type, char *out, size_t *len); YAZ_EXPORT void zebra_sort (ZebraHandle zh, ODR stream, int num_input_setnames, @@ -149,7 +167,14 @@ int zebra_select_databases (ZebraHandle zh, int num_bases, YAZ_EXPORT int zebra_select_database (ZebraHandle zh, const char *basename); +YAZ_EXPORT +void zebra_shadow_enable (ZebraHandle zh, int value); +YAZ_EXPORT +void zebra_register_statistics (ZebraHandle zh, int dumpdict); + +YAZ_EXPORT +int zebra_record_encoding (ZebraHandle zh, const char *encoding); YAZ_END_CDECL #endif