From: Dennis Schafroth Date: Wed, 6 Jun 2012 10:07:34 +0000 (+0200) Subject: Implement missing function. already declared in API X-Git-Tag: v4.2.34~3^2~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=301ebe26faf3818afe489ca21aefeabf1b238486;p=yaz-moved-to-github.git Implement missing function. already declared in API --- diff --git a/src/zoom-c.c b/src/zoom-c.c index c1dc652..87a340d 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -1021,6 +1021,15 @@ ZOOM_API(ZOOM_facet_field) return 0; } +ZOOM_API(ZOOM_facet_field) + ZOOM_resultset_get_facet_by_index(ZOOM_resultset r, int index) { + int num = r->num_facets; + ZOOM_facet_field *facets = r->facets; + if (index >= 0 && index < num) { + return facets[index]; + } + return 0; +} ZOOM_API(ZOOM_facet_field *) ZOOM_resultset_facets(ZOOM_resultset r)