X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fd1_attset.h;h=6989b82940436f17a81731dddd81a5578cb475e0;hb=9a2b41f58cf220c9583b654ff77776a18e958b44;hp=42bf4b47b9a54d4542290c96bc563e2226c67811;hpb=2004bbd9b3bbce5eb8ecc49520255b3d0bf578b9;p=yaz-moved-to-github.git diff --git a/include/d1_attset.h b/include/d1_attset.h index 42bf4b4..6989b82 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,11 @@ 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); +YAZ_EXPORT data1_att *data1_getattbyname(data1_attset *s, char *name); +YAZ_EXPORT data1_attset *data1_read_attset(char *file); + +#ifdef __cplusplus +} +#endif #endif