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