5 #include <yaz/yconfig.h>
6 #include <yaz/z-core.h>
13 * Helper function for extracting facet values from the ASN structures.
17 /* A helper structure to extract all the attribute stuff
18 from one Z_AttributesList. The pointers will all be to
19 the Z-structures, or to constants, so there is no need to
20 worry about freeing them */
22 int errcode; /* set in case of errors */
23 char *errstring; /* opt */
24 const char *useattr; /* @attr 1, from a string attr */
25 /* or number converted to a string */
26 /* defaults to 'any' */
27 char useattrbuff[30]; /* for converting numbers to strings */
28 char *relation; /* @attr 2, defaults to '=' */
29 int limit; /* for facet attributes */
33 /* Use attribute, @attr1, can be numeric or string */
35 void useattr ( Z_AttributeElement *ae, struct attrvalues *av );
38 void relationattr ( Z_AttributeElement *ae, struct attrvalues *av );
41 void limitattr ( Z_AttributeElement *ae, struct attrvalues *av );
44 void limitattr ( Z_AttributeElement *ae, struct attrvalues *av );
47 void facetattrs( Z_AttributeList *attributes, struct attrvalues *av );