diff options
author | bpc2003 <wpesfriendnva@gmail.com> | 2025-05-21 11:07:50 -0400 |
---|---|---|
committer | bpc2003 <wpesfriendnva@gmail.com> | 2025-05-21 11:07:50 -0400 |
commit | a08b44e1c6fbd8b56011a969f8c11bcc630e1ee0 (patch) | |
tree | 5a4337c8993f1bee673d4de819a5b64fe0aa1f95 /src/include/xml/xml.h | |
parent | 3c07894d658c3fa75f1cd1fd524e7464d9d95f1d (diff) |
Decrease visibilty in encode and decode functions
Diffstat (limited to 'src/include/xml/xml.h')
-rw-r--r-- | src/include/xml/xml.h | 7 |
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); |