|
Modules | |
| Utilities | |
| Utilities. | |
| Macro variables | |
| These variables can be used in the <vlc> macros and in the RPN evaluator. | |
| Sets | |
| Sets are an application of the macro variables. | |
| RPN Evaluator | |
| <vlc> Macros Handling | |
| A macro is a code snippet in the HTML page looking like <vlc id="macro_id" param1="value1" param2="value2"> Macros string ids are mapped to macro types, and specific handling code must be written for each macro type. | |
Data Structures | |
| struct | httpd_file_sys_t |
| struct | http_association_t |
| struct | httpd_handler_sys_t |
| struct | intf_sys_t |
| Per-interface private state. More... | |
Defines | |
| #define | MAX_DIR_SIZE 2560 |
| #define | STACK_MAX 100 |
Functions | |
| int | HttpCallback (httpd_file_sys_t *p_args, httpd_file_t *, uint8_t *p_request, uint8_t **pp_data, int *pi_data) |
| This function is the main HTTPD Callback used by the HTTP Interface. | |
| int | HandlerCallback (httpd_handler_sys_t *p_args, httpd_handler_t *p_handler, char *_p_url, uint8_t *_p_request, int i_type, uint8_t *_p_in, int i_in, char *psz_remote_addr, char *psz_remote_host, uint8_t **_pp_data, int *pi_data) |
| This function is the HTTPD Callback used for CGIs. | |
It is fully customizable by writing HTML pages using custom <vlc> tags.
These tags use so-called macros.
These macros can manipulate variables. For more complex operations, a custom RPN evaluator with many built-in functions is provided.
| #define MAX_DIR_SIZE 2560 |
Referenced by Execute(), and ParseDirectory().
| #define STACK_MAX 100 |
Referenced by SSPush().
| int HandlerCallback | ( | httpd_handler_sys_t * | p_args, | |
| httpd_handler_t * | p_handler, | |||
| char * | _p_url, | |||
| uint8_t * | _p_request, | |||
| int | i_type, | |||
| uint8_t * | _p_in, | |||
| int | i_in, | |||
| char * | psz_remote_addr, | |||
| char * | psz_remote_host, | |||
| uint8_t ** | _pp_data, | |||
| int * | pi_data | |||
| ) |
This function is the HTTPD Callback used for CGIs.
References asprintf(), Callback404(), DIR_SEP_CHAR, httpd_file_sys_t::file, httpd_handler_sys_t::file, getenv(), HTTPD_MSG_GET, HTTPD_MSG_HEAD, HTTPD_MSG_POST, http_association_t::i_argc, intf_sys_t::i_port, httpd_handler_sys_t::p_association, httpd_file_sys_t::p_intf, ParseExecute(), http_association_t::ppsz_argv, intf_sys_t::psz_address, strdup(), strncasecmp(), TAB_APPEND, TAB_REMOVE, vlc_execve, VLC_SUCCESS, and VLC_UNUSED.
Referenced by ParseDirectory().
| int HttpCallback | ( | httpd_file_sys_t * | p_args, | |
| httpd_file_t * | , | |||
| uint8_t * | p_request, | |||
| uint8_t ** | pp_data, | |||
| int * | pi_data | |||
| ) |
This function is the main HTTPD Callback used by the HTTP Interface.
1.5.6