From a08b44e1c6fbd8b56011a969f8c11bcc630e1ee0 Mon Sep 17 00:00:00 2001 From: bpc2003 Date: Wed, 21 May 2025 11:07:50 -0400 Subject: Decrease visibilty in encode and decode functions --- src/include/xml/xml.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/include/xml/xml.h') 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); -- cgit v1.2.3