mirror of
https://gitea.quitesimple.org/crtxcr/cgitsb
synced 2024-12-04 18:48:17 +01:00
e87e896333
This is a generic http-function. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
21 lines
673 B
C
21 lines
673 B
C
#ifndef HTML_H
|
|
#define HTML_H
|
|
|
|
extern int htmlfd;
|
|
|
|
extern void html(const char *txt);
|
|
extern void htmlf(const char *format,...);
|
|
extern void html_txt(char *txt);
|
|
extern void html_ntxt(int len, char *txt);
|
|
extern void html_attr(char *txt);
|
|
extern void html_hidden(char *name, char *value);
|
|
extern void html_option(char *value, char *text, char *selected_value);
|
|
extern void html_link_open(char *url, char *title, char *class);
|
|
extern void html_link_close(void);
|
|
extern void html_fileperm(unsigned short mode);
|
|
extern int html_include(const char *filename);
|
|
|
|
extern int http_parse_querystring(char *txt, void (*fn)(const char *name, const char *value));
|
|
|
|
#endif /* HTML_H */
|