From: Dennis Schafroth Date: Tue, 20 Jul 2010 15:56:59 +0000 (+0200) Subject: ZOOM Facet API changes X-Git-Tag: v4.0.12~33 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=544bbfdbc1da539b17542d740d25b154ebb4c182;p=yaz-moved-to-github.git ZOOM Facet API changes ZOOM_resultset_facets returns a CONST array for interating over all facets. ZOOM_resultset_facets_names returns a constant array of names (char *) of the available facets returned in the search. --- diff --git a/include/yaz/zoom.h b/include/yaz/zoom.h index c450adf..3551a77 100644 --- a/include/yaz/zoom.h +++ b/include/yaz/zoom.h @@ -215,15 +215,17 @@ ZOOM_resultset_get_facet_field(ZOOM_resultset r, const char *facet_name); ZOOM_API(ZOOM_facet_field) ZOOM_resultset_get_facet_field_by_index(ZOOM_resultset r, int pos); -/* Optional API ? */ /* return number of facets available */ ZOOM_API(size_t) -ZOOM_resultset_facet_size(ZOOM_resultset r); +ZOOM_resultset_facets_size(ZOOM_resultset r); /* retrieve (array of pointers to) facet fields */ -ZOOM_API(void) -ZOOM_resultset_facets(ZOOM_resultset r, ZOOM_facet_field *recs, - size_t start, size_t count); +ZOOM_API(ZOOM_facet_field *) +ZOOM_resultset_facets(ZOOM_resultset r); + +/* retrieve (array of pointers to) facet fields */ +ZOOM_API(const char **) +ZOOM_resultset_facets_names(ZOOM_resultset r);