projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ZOOM_record_get returns const char pointer instead of void.
[yaz-moved-to-github.git]
/
include
/
yaz
/
zoom.h
diff --git
a/include/yaz/zoom.h
b/include/yaz/zoom.h
index
e321fd0
..
b3c81a4
100644
(file)
--- a/
include/yaz/zoom.h
+++ b/
include/yaz/zoom.h
@@
-1,6
+1,6
@@
/*
* Public header for ZOOM C.
/*
* Public header for ZOOM C.
- * $Id: zoom.h,v 1.8 2001-12-30 22:21:11 adam Exp $
+ * $Id: zoom.h,v 1.11 2002-01-28 09:27:48 adam Exp $
*/
#include <yaz/yconfig.h>
*/
#include <yaz/yconfig.h>
@@
-132,7
+132,7
@@
ZOOM_record ZOOM_resultset_record_immediate (ZOOM_resultset s, size_t pos);
/* get record information, in a form given by type */
ZOOM_EXPORT
/* get record information, in a form given by type */
ZOOM_EXPORT
-void *ZOOM_record_get (ZOOM_record rec, const char *type, size_t *len);
+const char *ZOOM_record_get (ZOOM_record rec, const char *type, int *len);
/* destroy record */
ZOOM_EXPORT
/* destroy record */
ZOOM_EXPORT
@@
-164,13
+164,21
@@
ZOOM_EXPORT
ZOOM_scanset ZOOM_connection_scan (ZOOM_connection c, const char *startterm);
ZOOM_EXPORT
ZOOM_scanset ZOOM_connection_scan (ZOOM_connection c, const char *startterm);
ZOOM_EXPORT
-const char * ZOOM_scanset_term(ZOOM_scanset scan, size_t no, int *occ, size_t *len);
+const char * ZOOM_scanset_term(ZOOM_scanset scan, size_t pos,
+ int *occ, int *len);
ZOOM_EXPORT
size_t ZOOM_scanset_size(ZOOM_scanset scan);
ZOOM_EXPORT
void ZOOM_scanset_destroy (ZOOM_scanset scan);
ZOOM_EXPORT
size_t ZOOM_scanset_size(ZOOM_scanset scan);
ZOOM_EXPORT
void ZOOM_scanset_destroy (ZOOM_scanset scan);
+
+ZOOM_EXPORT
+const char *ZOOM_scanset_option_get (ZOOM_scanset scan, const char *key);
+
+ZOOM_EXPORT
+void ZOOM_scanset_option_set (ZOOM_scanset scan, const char *key,
+ const char *val);
/* ----------------------------------------------------------- */
/* options */
typedef const char *(*ZOOM_options_callback)(void *handle, const char *name);
/* ----------------------------------------------------------- */
/* options */
typedef const char *(*ZOOM_options_callback)(void *handle, const char *name);
@@
-201,6
+209,9
@@
ZOOM_EXPORT
int ZOOM_options_get_int (ZOOM_options opt, const char *name, int defa);
ZOOM_EXPORT
int ZOOM_options_get_int (ZOOM_options opt, const char *name, int defa);
ZOOM_EXPORT
+void ZOOM_options_set_int(ZOOM_options opt, const char *name, int value);
+
+ZOOM_EXPORT
void ZOOM_options_addref (ZOOM_options opt);
/* ----------------------------------------------------------- */
void ZOOM_options_addref (ZOOM_options opt);
/* ----------------------------------------------------------- */