summaryrefslogtreecommitdiff
path: root/src/include/xml/xml.h
diff options
context:
space:
mode:
authorbpc2003 <wpesfriendnva@gmail.com>2025-05-20 14:40:47 -0400
committerbpc2003 <wpesfriendnva@gmail.com>2025-05-20 14:40:47 -0400
commitbf76b8c582ed9c541438ebe90fc6415fb82f2ed3 (patch)
treea5cd3d6e77c21867784c34d0728046d202a08d34 /src/include/xml/xml.h
parent1abda4d6d97c3386694f85fe5f7cc6844ade67c2 (diff)
Add Formatting
Diffstat (limited to 'src/include/xml/xml.h')
-rw-r--r--src/include/xml/xml.h19
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);