mirror of
https://github.com/rkd77/elinks.git
synced 2025-10-21 19:54:04 -04:00
Initial commit of the HEAD branch of the ELinks CVS repository, as of
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this by grafting.
This commit is contained in:
41
src/formhist/formhist.h
Normal file
41
src/formhist/formhist.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/* $Id: formhist.h,v 1.37 2005/07/27 23:38:33 jonas Exp $ */
|
||||
|
||||
#ifndef EL__FORMHIST_FORMHIST_H
|
||||
#define EL__FORMHIST_FORMHIST_H
|
||||
|
||||
#include "document/forms.h"
|
||||
#include "main/module.h"
|
||||
#include "main/object.h"
|
||||
#include "session/session.h"
|
||||
#include "util/lists.h"
|
||||
|
||||
struct formhist_data {
|
||||
OBJECT_HEAD(struct formhist_data);
|
||||
|
||||
/* List of submitted_values for this form */
|
||||
struct list_head *submit;
|
||||
|
||||
/* This is indeed maintained by formhist.c, not dialogs.c; much easier
|
||||
* and simpler. */
|
||||
struct listbox_item *box_item;
|
||||
|
||||
/* Whether to save this form or not. */
|
||||
unsigned int dontsave:1;
|
||||
|
||||
/* <action> URI for this form. Must be at end of struct. */
|
||||
unsigned char url[1];
|
||||
};
|
||||
|
||||
/* Look up @name form of @url document in the form history. Returns the saved
|
||||
* value if present, NULL upon an error. */
|
||||
unsigned char *get_form_history_value(unsigned char *url, unsigned char *name);
|
||||
|
||||
void memorize_form(struct session *ses, struct list_head *submit, struct form *forminfo);
|
||||
|
||||
int save_formhist_to_file(void);
|
||||
void delete_formhist_item(struct formhist_data *form);
|
||||
int load_formhist_from_file(void);
|
||||
|
||||
extern struct module forms_history_module;
|
||||
|
||||
#endif /* EL__FORMHIST_FORMHIST_H */
|
||||
Reference in New Issue
Block a user