aboutsummaryrefslogtreecommitdiff
path: root/libtxt/inc/html.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtxt/inc/html.h')
-rw-r--r--libtxt/inc/html.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/libtxt/inc/html.h b/libtxt/inc/html.h
index dd2b59f..c1b29f2 100644
--- a/libtxt/inc/html.h
+++ b/libtxt/inc/html.h
@@ -4,6 +4,23 @@
#ifndef HTML_H
#define HTML_H
-int html_self_closing(const char *tag);
+#include <def.h>
+#include <list.h>
+
+struct dom {
+ char *tag;
+ char *content;
+ struct dom *parent;
+ struct list *children;
+};
+
+struct html_element {
+ u32 x_offset;
+ u32 y_offset;
+ struct dom *dom;
+ struct element *obj;
+};
+
+int html_render(struct element *container, char *data, u32 length);
#endif