![]() |
| Home |
|
|
Function http_add_post_functionsThis function is used to supply a list of Form Action Post names that should be mapped to C/C++ functions of the application.
struct post_function_entry
{
char * function_name;
void (*function_ptr)(PIO_CONTEXT io_context, long len);
};
void http_add_post_functions(struct post_function_entry * post_functions);
Parameterspost_functionsPointer to an array of struct post_function_entry records. Each record associates a Form Action Post name with a C/C++ function name to handle the Post function. The last entry of the array should specify END_OF_TABLE for the C/C++ function name. Example:
static struct post_function_entry my_post_functions[] =
{
{"form_demo.fn", form_demo },
{"", END_OF_TABLE}
};
...
http_add_post_functions(my_post_functions);
Several post function tables can be passed to the server through this function. They are parsed in the reverse order of their respective http_add_post_functions calls.
|