X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fd1_attset.h;h=93e6ec7d34f71f9b47efedb1b3bb2eef131f054a;hp=42bf4b47b9a54d4542290c96bc563e2226c67811;hb=8de81d57ebf189d37a160fe66df667b50ba7cb86;hpb=2004bbd9b3bbce5eb8ecc49520255b3d0bf578b9 diff --git a/include/d1_attset.h b/include/d1_attset.h index 42bf4b4..93e6ec7 100644 --- a/include/d1_attset.h +++ b/include/d1_attset.h @@ -30,6 +30,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /* * This structure describes a attset, perhaps made up by inclusion * (supersetting) of other attribute sets. When indexing and searching, @@ -41,12 +45,18 @@ 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