X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fidzebra%2Fapi.h;h=6b53295ed86b315e10a52b2315393212b35a2fb4;hb=39cb125e7755c6058a93dada8d5172804213cf8e;hp=c11e08dd913bf6f5c252b38cd8077bcf7b022b12;hpb=ec214819d7b9e2f5c362584d8e38f83e13aae600;p=idzebra-moved-to-github.git diff --git a/include/idzebra/api.h b/include/idzebra/api.h index c11e08d..6b53295 100644 --- a/include/idzebra/api.h +++ b/include/idzebra/api.h @@ -1,4 +1,4 @@ -/* $Id: api.h,v 1.1 2004-08-25 09:23:36 adam Exp $ +/* $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 @@ -89,6 +89,10 @@ YAZ_EXPORT ZebraService zebra_start_res (const char *configName, /* Close the whole Zebra */ YAZ_EXPORT int zebra_stop (ZebraService zs); +/* Report name of each record class (filter) */ +YAZ_EXPORT void zebra_filter_info(ZebraService zs, void *cd, + void (*cb)(void *cd, const char *name)); + /* Open a ZebraHandle */ /* There should be one handle for each thred doing something */ @@ -261,5 +265,19 @@ const char *zebra_get_resource(ZebraHandle zh, YAZ_EXPORT void zebra_pidfname(ZebraService zs, char *path); +typedef struct { + char *term; + char *db; + zint sysno; + int score; +} ZebraMetaRecord; + +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_END_CDECL #endif