diff options
Diffstat (limited to 'src/include/xml/xml.h')
-rw-r--r-- | src/include/xml/xml.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/include/xml/xml.h b/src/include/xml/xml.h index c20f9d9..5668d12 100644 --- a/src/include/xml/xml.h +++ b/src/include/xml/xml.h @@ -3,16 +3,21 @@ #include <stdio.h> -struct map { + +typedef struct { + char *id; + char *value; +} attr_t; + +typedef struct { char *tag; void *payload; size_t size; size_t n; - struct map *attrs; - size_t n_attrs; -}; + attr_t *attrs; + int n_attrs; +} map_t; -typedef struct map map_t; /* decode: decodes the provided xml statement into a map_t */ map_t *decode(char *xml_str, int *len); |