Add new mutex create where mutex attribute can be set
[yaz-moved-to-github.git] / src / zoom-p.h
index 844badf..51125b5 100644 (file)
@@ -169,6 +169,9 @@ struct ZOOM_resultset_p {
 #else
     ZOOM_resultset next;
 #endif
+    ZOOM_facet_field *facets;
+    int num_facets;
+    char **facets_names;
 };
 
 struct ZOOM_record_p {
@@ -182,17 +185,24 @@ struct ZOOM_record_p {
     Z_NamePlusRecord *npr;
     const char *schema;
 
-#if YAZ_HAVE_XML2
-    xmlChar *xml_mem;
-    int xml_size;
-#endif
-
     const char *diag_uri;
     const char *diag_message;
     const char *diag_details;
     const char *diag_set;
 };
 
+struct facet_term_p {
+    char *term;
+    int frequency;
+};
+
+struct ZOOM_facet_field_p {
+    char *facet_name;
+    int num_terms;
+    struct facet_term_p *facet_terms;
+};
+
+
 struct ZOOM_record_cache_p {
     struct ZOOM_record_p rec;
     char *elementSetName;