From: Adam Dickmeiss Date: Thu, 30 Jan 2014 12:24:40 +0000 (+0100) Subject: Deprecate ZOOM_resultset_facets_names X-Git-Tag: v5.0.13~27 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=bd4ea696fa932a215d18268afd1850035f7ebd05;p=yaz-moved-to-github.git Deprecate ZOOM_resultset_facets_names We can use ZOOM_resultset_facets to get list of facets, followed by ZOOM_facet_field_name for each facet. --- diff --git a/include/yaz/zoom.h b/include/yaz/zoom.h index e460704..69e7e5a 100644 --- a/include/yaz/zoom.h +++ b/include/yaz/zoom.h @@ -229,9 +229,11 @@ ZOOM_resultset_facets(ZOOM_resultset r); /* retrieve (array of pointers to) facet fields */ ZOOM_API(const char **) -ZOOM_resultset_facets_names(ZOOM_resultset r); - - +ZOOM_resultset_facets_names(ZOOM_resultset r) +#ifdef __GNUC__ + __attribute__ ((deprecated)) +#endif + ; /* ----------------------------------------------------------- */ /* records */ diff --git a/src/zoom-p.h b/src/zoom-p.h index 27b1c85..bad6acf 100644 --- a/src/zoom-p.h +++ b/src/zoom-p.h @@ -141,7 +141,7 @@ struct ZOOM_resultset_p { ZOOM_resultset next; ZOOM_facet_field *facets; int num_facets; - char **facets_names; + char **facets_names; /* redundant. For ZOOM_resultset_facets_names only */ WRBUF mc_key; int live_set; /* 0=no hit count, 1=cached hit, 2=hits + real set */ };