diff options
Diffstat (limited to 'src/include/xml/xml.h')
-rw-r--r-- | src/include/xml/xml.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/include/xml/xml.h b/src/include/xml/xml.h index ff64796..c812005 100644 --- a/src/include/xml/xml.h +++ b/src/include/xml/xml.h @@ -3,21 +3,22 @@ #include <stdio.h> - typedef struct { - char *id; - char *value; + char *id; + char *value; } attr_t; typedef struct { - char *tag; - void *payload; - size_t size; - int n; - attr_t *attrs; - int n_attrs; + char *tag; + void *payload; + size_t size; + int n; + attr_t *attrs; + int n_attrs; } map_t; +// TODO: make encode more reliant on helpers +// to make function more private /* decode: decodes the provided xml statement into a map_t */ map_t *decode(char *xml, int *pos, int *len); |