X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fzoom.h;h=d1037ea6541363afef1bc29c5330b8954616af99;hb=14f4eaaffa771604e1cbb54edc51d6f213a3e30c;hp=f9329c1f7652a75d4709427ddeb1bbe0a28b50a0;hpb=3b10b3e056bb684b8f33123a79410f771adbee0a;p=yaz-moved-to-github.git diff --git a/include/yaz/zoom.h b/include/yaz/zoom.h index f9329c1..d1037ea 100644 --- a/include/yaz/zoom.h +++ b/include/yaz/zoom.h @@ -1,8 +1,15 @@ /* - * Public header for ZOOM C. - * $Id: zoom.h,v 1.18 2003-04-28 11:04:52 adam Exp $ + * Copyright (c) 2000-2004, Index Data + * See the file LICENSE for details. + * + * $Id: zoom.h,v 1.24 2004-10-15 00:18:59 adam Exp $ + */ +/** + * \file zoom.h + * \brief Header for ZOOM */ +#include #include #define ZOOM_BEGIN_CDECL YAZ_BEGIN_CDECL @@ -59,6 +66,10 @@ ZOOM_API(void) ZOOM_connection_option_set (ZOOM_connection c, const char *key, const char *val); +ZOOM_API(void) +ZOOM_connection_option_setl (ZOOM_connection c, const char *key, + const char *val, int len); + /* return error code (0 == success, failure otherwise). cp holds error string on failure, addinfo holds addititional info (if any) */ @@ -94,6 +105,7 @@ ZOOM_diag_str (int error); #define ZOOM_ERROR_TIMEOUT 10007 #define ZOOM_ERROR_UNSUPPORTED_PROTOCOL 10008 #define ZOOM_ERROR_UNSUPPORTED_QUERY 10009 +#define ZOOM_ERROR_INVALID_QUERY 10010 ZOOM_API(int) ZOOM_connection_last_event(ZOOM_connection cs); @@ -146,6 +158,10 @@ ZOOM_resultset_record (ZOOM_resultset s, size_t pos); ZOOM_API(ZOOM_record) ZOOM_resultset_record_immediate (ZOOM_resultset s, size_t pos); +/* reset record cache for result set */ +ZOOM_API(void) +ZOOM_resultset_cache_reset(ZOOM_resultset r); + /* ----------------------------------------------------------- */ /* records */ @@ -189,6 +205,10 @@ ZOOM_API(const char *) ZOOM_scanset_term(ZOOM_scanset scan, size_t pos, int *occ, int *len); +ZOOM_API(const char *) +ZOOM_scanset_display_term(ZOOM_scanset scan, size_t pos, + int *occ, int *len); + ZOOM_API(size_t) ZOOM_scanset_size(ZOOM_scanset scan); @@ -221,6 +241,12 @@ ZOOM_API(void) const char *val); /* ----------------------------------------------------------- */ +/* Sort */ +ZOOM_API(void) + ZOOM_resultset_sort(ZOOM_resultset r, + const char *sort_type, const char *sort_spec); + +/* ----------------------------------------------------------- */ /* options */ ZOOM_API(ZOOM_options_callback)