Remove empty lines in start of header files
[elinks.git] / src / formhist / formhist.h
blob37a7cbe0e13adad11d93f5976a60b06c55106863
1 #ifndef EL__FORMHIST_FORMHIST_H
2 #define EL__FORMHIST_FORMHIST_H
4 #include "document/forms.h"
5 #include "main/module.h"
6 #include "main/object.h"
7 #include "session/session.h"
8 #include "util/lists.h"
10 struct formhist_data {
11 OBJECT_HEAD(struct formhist_data);
13 /* List of submitted_values for this form */
14 struct list_head *submit;
16 /* This is indeed maintained by formhist.c, not dialogs.c; much easier
17 * and simpler. */
18 struct listbox_item *box_item;
20 /* Whether to save this form or not. */
21 unsigned int dontsave:1;
23 /* <action> URI for this form. Must be at end of struct. */
24 unsigned char url[1];
27 /* Look up @name form of @url document in the form history. Returns the saved
28 * value if present, NULL upon an error. */
29 unsigned char *get_form_history_value(unsigned char *url, unsigned char *name);
31 void memorize_form(struct session *ses, struct list_head *submit, struct form *forminfo);
33 int save_formhist_to_file(void);
34 void delete_formhist_item(struct formhist_data *form);
35 int load_formhist_from_file(void);
37 extern struct module forms_history_module;
39 #endif /* EL__FORMHIST_FORMHIST_H */