projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for section/chapter indexing. Add safari filter.
[idzebra-moved-to-github.git]
/
include
/
idzebra
/
api.h
diff --git
a/include/idzebra/api.h
b/include/idzebra/api.h
index
c11e08d
..
6b53295
100644
(file)
--- 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
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);
/* 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 */
/* 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);
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
YAZ_END_CDECL
#endif