X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=include%2Fyaz%2Fzoom.h;h=c7df143f82d79d3f6066ded198ea863f8c321131;hb=fd2f1538cdb20385c2c267d318c59d567eb3d242;hp=baa1084e49f46d8bd60131f875d41fc2e55a0478;hpb=d00666d5391066b1acba398090170d3766ec7e4f;p=yaz-moved-to-github.git diff --git a/include/yaz/zoom.h b/include/yaz/zoom.h index baa1084..c7df143 100644 --- a/include/yaz/zoom.h +++ b/include/yaz/zoom.h @@ -1,15 +1,8 @@ /* * Public header for ZOOM C. - * $Id: zoom.h,v 1.4 2001-11-15 08:58:29 adam Exp $ + * $Id: zoom.h,v 1.6 2001-11-16 09:52:39 adam Exp $ */ -/* 1. Renamed type Z3950_search to Z3950_query and the functions - that manipulate it.. - Changed positions/sizes to be of type size_t rather than int. - 2. Deleted Z3950_resultset_get. Added Z3950_record_dup. Record - reference(s) returned by Z350_resultset_records and - Z3950_resultset_record are "owned" by result set. -*/ #include #define ZOOM_EXPORT YAZ_EXPORT @@ -49,13 +42,13 @@ void Z3950_connection_connect(Z3950_connection c, const char *host, ZOOM_EXPORT void Z3950_connection_destroy (Z3950_connection c); -/* set option for connection */ +/* get/set option for connection */ ZOOM_EXPORT -const char *Z3950_connection_option (Z3950_connection c, const char *key, - const char *val); -/* return host for connection */ +const char *Z3950_connection_option_get (Z3950_connection c, const char *key); + ZOOM_EXPORT -const char *Z3950_connection_host (Z3950_connection c); +void Z3950_connection_option_set (Z3950_connection c, const char *key, + const char *val); /* return error code (0 == success, failure otherwise). cp holds error string on failure, addinfo holds addititional info (if any) @@ -100,8 +93,10 @@ void Z3950_resultset_destroy(Z3950_resultset r); /* result set option */ ZOOM_EXPORT -const char *Z3950_resultset_option (Z3950_resultset r, const char *key, - const char *val); +const char *Z3950_resultset_option_get (Z3950_resultset r, const char *key); +ZOOM_EXPORT +void Z3950_resultset_option_set (Z3950_resultset r, const char *key, const char *val); + /* return size of result set (alias hit count AKA result count) */ ZOOM_EXPORT size_t Z3950_resultset_size (Z3950_resultset r);