NetBurner 3.1
serial/SerialBurner/src/formtools.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
5
#ifndef _FORM_TOOL_H_
6
#define _FORM_TOOL_H_
7
8
void
ShowIP2Sock(
int
sock,
IPADDR
ip);
9
10
/* -----------------------------------------------------------------------------
11
* Functions to manage HTML form creation.
12
* -------------------------------------------------------------------------- */
13
14
// Output a selection
15
// Item 1 = First selection item!
16
void
FormOutputSelect(
int
sock,
const
char
*name,
int
selnum,
const
char
**list);
17
void
FormOutputSelectValueOnClick(
int
sock,
18
const
char
*name,
19
int
selnum,
20
const
char
**labellist,
21
const
char
**valuelist,
22
const
char
**onclicklist);
23
24
// Output a check box
25
void
FormOutputCheckbox(
int
sock,
const
char
*name, BOOL checked);
26
27
// Output an input box
28
void
FormOutputInput(
int
sock,
const
char
*name,
int
siz,
const
char
*val);
29
30
// Output an input box for numbers
31
void
FormOutputNumInput(
int
sock,
const
char
*name,
int
siz,
int
val);
32
33
// Output an input box for IP addresses
34
void
FormOutputIPInput(
int
sock,
const
char
*name,
IPADDR
ip);
35
36
/* -----------------------------------------------------------------------------
37
* Functions to manage HTML data extraction.
38
*--------------------------------------------------------------------------- */
39
40
// Extract an IP address from the post data
41
IPADDR
FormExtractIP(
const
char
*name,
char
*pData,
IPADDR
def_val);
42
43
// Extract a number from the post data
44
long
FormExtractNum(
const
char
*name,
char
*pData,
long
def_val);
45
46
// Extract a check box state from the post data
47
BOOL FormExtractCheck(
const
char
*name,
char
*pData, BOOL def_val);
48
49
// Extract a selection from a select box
50
// Item 1 = First selection item!
51
int
FormExtractSel(
const
char
*name,
char
*pdata,
const
char
**pList,
int
defsel);
52
53
#endif
/* _FORM_TOOL_H_ */
IPADDR6
Used to hold and manipulate IPv4 and IPv6 addresses in dual stack mode.
Definition:
ipv6_addr.h:28
examples
serial
SerialBurner
src
formtools.h
Generated by
1.8.14