/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
return attributes;
}
+Z_AttributeList *zget_AttributeList_use_string(ODR o, const char *name)
+{
+ Odr_int attr_list[2];
+ char *attr_clist[1];
+ Odr_oid *attr_set[1];
+
+ attr_list[0] = 1;
+ attr_list[1] = 0; /* not used */
+ attr_clist[0] = odr_strdup(o, name);
+ attr_set[0] = 0;
+ return get_attributeList(o, 1, attr_list, attr_clist, attr_set);
+}
+
Z_Term *z_Term_create(ODR o, int term_type, const char *buf, size_t len)
{
Z_Term *term = (Z_Term *)odr_malloc(o, sizeof(*term));
{
YAZ_PQF_Parser pqf_parser = yaz_pqf_create();
struct yaz_pqf_parser *li = pqf_parser;
- Odr_oid *attributeSetId;
+ Odr_oid *attributeSetId = 0;
Z_FacetField *facet_field = 0;
Z_AttributeList *attribute_list;