aboutsummaryrefslogtreecommitdiff
path: root/src/form.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/form.hh')
-rw-r--r--src/form.hh31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/form.hh b/src/form.hh
index 291bfd75..af7ff6f4 100644
--- a/src/form.hh
+++ b/src/form.hh
@@ -1,6 +1,8 @@
#ifndef __FORM_HH__
#define __FORM_HH__
+#include "url.h"
+
/*
* Typedefs
*/
@@ -21,5 +23,34 @@ typedef enum {
*/
class DilloHtmlForm;
+class DilloHtml;
+
+/*
+ * Form API
+ */
+
+DilloHtmlForm *a_Html_form_new(DilloHtml *html,
+ DilloHtmlMethod method,
+ const DilloUrl *action,
+ DilloHtmlEnc enc,
+ const char *charset);
+
+void a_Html_form_delete(DilloHtmlForm* form);
+
+/*
+ * Form parsing functions
+ */
+
+void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_close_form(DilloHtml *html, int TagIdx);
+void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_open_isindex(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_open_textarea(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_close_textarea(DilloHtml *html, int TagIdx);
+void Html_tag_open_select(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_close_select(DilloHtml *html, int TagIdx);
+void Html_tag_open_option(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_open_button(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_close_button(DilloHtml *html, int TagIdx);
#endif /* __FORM_HH__ */