ELinks 0.18.0
forms.c File Reference

The document base functionality. More...

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "bfu/listmenu.h"
#include "document/document.h"
#include "document/forms.h"
#include "document/renderer.h"
#include "util/error.h"
#include "util/lists.h"
#include "util/memory.h"
Include dependency graph for forms.c:

Data Structures

struct  form_type_name

Macros

#define FORM_TYPE_COUNT   (sizeof(form_type2name)/sizeof(struct form_type_name))

Functions

enum form_type str2form_type (const char *s)
const char * form_type2str (enum form_type num)
struct forminit_form (void)
void done_form (struct form *form)
int has_form_submit (struct form *form)
int get_form_control_link (struct document *document, struct el_form_control *fc)
void done_form_control (struct el_form_control *fc)

Variables

static struct form_type_name form_type2name []

Detailed Description

The document base functionality.

Macro Definition Documentation

◆ FORM_TYPE_COUNT

#define FORM_TYPE_COUNT   (sizeof(form_type2name)/sizeof(struct form_type_name))

Function Documentation

◆ done_form()

void done_form ( struct form * form)

◆ done_form_control()

void done_form_control ( struct el_form_control * fc)

◆ form_type2str()

const char * form_type2str ( enum form_type num)

◆ get_form_control_link()

int get_form_control_link ( struct document * document,
struct el_form_control * fc )

◆ has_form_submit()

int has_form_submit ( struct form * form)

◆ init_form()

struct form * init_form ( void )

◆ str2form_type()

enum form_type str2form_type ( const char * s)

Variable Documentation

◆ form_type2name

struct form_type_name form_type2name[]
static
Initial value:
= {
{ FC_TEXT, "text" },
{ FC_PASSWORD, "password" },
{ FC_FILE, "file" },
{ FC_TEXTAREA, "textarea" },
{ FC_CHECKBOX, "checkbox" },
{ FC_RADIO, "radio" },
{ FC_SELECT, "select" },
{ FC_SUBMIT, "submit" },
{ FC_IMAGE, "image" },
{ FC_HIDDEN, "hidden" },
}
@ FC_IMAGE
Definition forms.h:70
@ FC_SELECT
Definition forms.h:68
@ FC_TEXT
Definition forms.h:62
@ FC_SUBMIT
Definition forms.h:69
@ FC_HIDDEN
Definition forms.h:73
@ FC_TEXTAREA
Definition forms.h:65
@ FC_RADIO
Definition forms.h:67
@ FC_PASSWORD
Definition forms.h:63
@ FC_CHECKBOX
Definition forms.h:66
@ FC_FILE
Definition forms.h:64