summaryrefslogtreecommitdiff
path: root/source/kit/xml.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/kit/xml.h')
-rw-r--r--source/kit/xml.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/source/kit/xml.h b/source/kit/xml.h
index 0bd5744..fdc9536 100644
--- a/source/kit/xml.h
+++ b/source/kit/xml.h
@@ -1,7 +1,6 @@
#ifndef KIT_XML_H
#define KIT_XML_H
-#include "status.h"
#include "string_builder.h"
#include "input_stream.h"
@@ -29,12 +28,12 @@ struct kit_xml_ {
};
typedef struct {
- kit_status_t status;
- kit_xml_t xml;
+ s32 status;
+ kit_xml_t xml;
} kit_xml_parse_result_t;
typedef struct {
- kit_status_t status;
+ s32 status;
kit_str_builder_t text;
} kit_xml_text_t;
@@ -43,6 +42,8 @@ kit_xml_parse_result_t kit_xml_parse(kit_is_handle_t is,
kit_xml_text_t kit_xml_print(kit_xml_t *xml, kit_allocator_t *alloc);
kit_xml_text_t kit_xml_full_text(kit_xml_t *xml,
kit_allocator_t *alloc);
+b8 kit_xml_has_property(kit_xml_t *xml, kit_str_t name);
+kit_str_t kit_xml_property(kit_xml_t *xml, kit_str_t name);
void kit_xml_destroy(kit_xml_t *xml);
#ifdef __cplusplus
@@ -50,14 +51,16 @@ void kit_xml_destroy(kit_xml_t *xml);
#endif
#ifndef KIT_DISABLE_SHORT_NAMES
-# define xml_parse kit_xml_parse
-# define xml_print kit_xml_print
-# define xml_full_text kit_xml_full_text
-# define xml_destroy kit_xml_destroy
# define xml_t kit_xml_t
# define xml_property_t kit_xml_property_t
# define xml_parse_result_t kit_xml_parse_result_t
# define xml_text_t kit_xml_text_t
+# define xml_parse kit_xml_parse
+# define xml_print kit_xml_print
+# define xml_full_text kit_xml_full_text
+# define xml_has_property kit_xml_has_property
+# define xml_property kit_xml_property
+# define xml_destroy kit_xml_destroy
#endif
#endif