big dialogs: dlg_format_text: no need to pass the term.
[elinks.git] / src / formhist / formhist.h
blob7dcd7adc795fdd8958aec3b3b14d6651ce2884e4
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 LIST_OF(struct submitted_value) *submit;
16 struct listbox_item *box_item;
18 /* Whether to save this form or not. */
19 unsigned int dontsave:1;
21 /* <action> URI for this form. Must be at end of struct. */
22 unsigned char url[1];
25 /* Look up @name form of @url document in the form history. Returns the saved
26 * value if present, NULL upon an error. */
27 unsigned char *get_form_history_value(unsigned char *url, unsigned char *name);
29 void memorize_form(struct session *ses,
30 LIST_OF(struct submitted_value) *submit,
31 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 */