summaryrefslogtreecommitdiff
path: root/src/include/xml/xml.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/xml/xml.h')
-rw-r--r--src/include/xml/xml.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/include/xml/xml.h b/src/include/xml/xml.h
index c812005..eb250e3 100644
--- a/src/include/xml/xml.h
+++ b/src/include/xml/xml.h
@@ -17,14 +17,11 @@ typedef struct {
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);
+map_t *decode(char *xml);
/* encode: encodes the provided map_t into a xml statement */
-char *encode(map_t *map, int len);
+char *encode(map_t *map);
/* freemap: frees a map and its children */
void freemap(map_t *map);