From bf76b8c582ed9c541438ebe90fc6415fb82f2ed3 Mon Sep 17 00:00:00 2001 From: bpc2003 Date: Tue, 20 May 2025 14:40:47 -0400 Subject: Add Formatting --- src/include/xml/xml.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/include/xml/xml.h') 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 - 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); -- cgit v1.2.3