From bd4ea696fa932a215d18268afd1850035f7ebd05 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 30 Jan 2014 13:24:40 +0100 Subject: [PATCH] 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. --- include/yaz/zoom.h | 8 +++++--- src/zoom-p.h | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) 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 */ }; -- 1.7.10.4