summaryrefslogtreecommitdiff
path: root/render/form.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-11 17:11:59 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-11 17:11:59 +0000
commitd9ce975822296ffe1483448733f43a5ec3598203 (patch)
tree5b4803a9121f4654898fe3df951d6bafb5cb962d /render/form.c
parent3e4f5737aab18858dd80c7b57e5aaa3eecaf21c7 (diff)
downloadnetsurf-d9ce975822296ffe1483448733f43a5ec3598203.tar.gz
netsurf-d9ce975822296ffe1483448733f43a5ec3598203.tar.bz2
Make most of the form API internal to the html renderer.
Very little of the form API needed exposing outside of the renderer. This makes the form API that may be used by frontends obvious and limited.
Diffstat (limited to 'render/form.c')
-rw-r--r--render/form.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/render/form.c b/render/form.c
index b8656bca9..66c875a00 100644
--- a/render/form.c
+++ b/render/form.c
@@ -54,7 +54,7 @@
#include "render/box.h"
#include "render/font.h"
-#include "render/form.h"
+#include "render/form_internal.h"
#include "render/html.h"
#include "render/html_internal.h"
#include "render/layout.h"
@@ -96,18 +96,7 @@ static void form_select_menu_clicked(struct form_control *control,
static void form_select_menu_scroll_callback(void *client_data,
struct scrollbar_msg_data *scrollbar_data);
-/**
- * Create a struct form.
- *
- * \param node DOM node associated with form
- * \param action URL to submit form to, or NULL for default
- * \param target Target frame of form, or NULL for default
- * \param method method and enctype
- * \param charset acceptable encodings for form submission, or NULL
- * \param doc_charset encoding of containing document, or NULL
- * \param html HTML content containing form
- * \return a new structure, or NULL on memory exhaustion
- */
+/* exported interface documented in render/form_internal.h */
struct form *form_new(void *node, const char *action, const char *target,
form_method method, const char *charset,
const char *doc_charset)
@@ -186,13 +175,7 @@ void form_free(struct form *form)
free(form);
}
-/**
- * Create a struct form_control.
- *
- * \param node Associated DOM node
- * \param type control type
- * \return a new structure, or NULL on memory exhaustion
- */
+/* exported interface documented in render/form_internal.h */
struct form_control *form_new_control(void *node, form_control_type type)
{
struct form_control *control;