*** empty log message ***
[yaz-moved-to-github.git] / include / d1_attset.h
index 42bf4b4..93e6ec7 100644 (file)
 
 #include <oid.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * This structure describes a attset, perhaps made up by inclusion
  * (supersetting) of other attribute sets. When indexing and searching,
 
 struct data1_attset;
 
+typedef struct data1_local_attribute
+{
+    int local;
+    struct data1_local_attribute *next;
+} data1_local_attribute;
+
 typedef struct data1_att
 {
     struct data1_attset *parent;   /* attribute set */
-    char *name;                    /* symbolic name of this tag */
-    int value;                     /* tag value */
-    int local;                     /* local index value */
+    char *name;                    /* symbolic name of this attribute */
+    int value;                     /* attribute value */
+    data1_local_attribute *locals; /* local index values */
     struct data1_att *next;
 } data1_att;
 
@@ -60,7 +70,14 @@ typedef struct data1_attset
     struct data1_attset *next;       /* sibling */
 } data1_attset;
 
-data1_att *data1_getattbyname(data1_attset *s, char *name);
-data1_attset *data1_read_attset(char *file);
+typedef struct data1_handle_info *data1_handle;
+
+YAZ_EXPORT data1_att *data1_getattbyname(data1_handle dh, data1_attset *s,
+                                        char *name);
+YAZ_EXPORT data1_attset *data1_read_attset(data1_handle dh, char *file);
+
+#ifdef __cplusplus
+}
+#endif
 
 #endif