Make yaz_use_attribute_create a public function
[yaz-moved-to-github.git] / include / yaz / proto.h
index 43441a7..a5115e8 100644 (file)
@@ -193,6 +193,14 @@ void yaz_set_esn(Z_RecordComposition **comp_p, const char *esn, NMEM nmem);
 YAZ_EXPORT
 Z_DefaultDiagFormat *yaz_decode_init_diag(int no, Z_InitResponse *initrs);
 
+/** \brief creates AttributeList with type=1(use) and string value
+    \param o ODR for encoding
+    \param name use-value
+    \returns attribute list with only one use-attribute
+*/
+YAZ_EXPORT
+Z_AttributeList *yaz_use_attribute_create(ODR o, const char *name);
+
 YAZ_END_CDECL
 
 #include <yaz/prt-ext.h>