Home |
Function http_find_string_value Function http_add_get_functions Function http_add_post_functions Function http_set_browser_list Function http_set_put_function |
Function http_add_get_functionsThis function is used to supply a list of CGI function names that should be mapped to C/C++ functions of the application. struct get_function_entry { char * function_name; void (*function_ptr)(PIO_CONTEXT io_context, char * param); }; void http_add_get_functions(struct get_function_entry * get_functions); Parametersget_functionsPointer to an array of struct get_function_entry records. Each record associates a CGI name with a C/C++ function name to handle the respective CGI function. The last entry of the array should specify END_OF_TABLE for the C/C++ function name. Example:static struct get_function_entry my_get_functions[] = { {"cgi_demo.fn", cgi_demo }, {"cgi_demo2.c", cgi_demo2 }, {"push_demo.fn", push_demo }, {"", END_OF_TABLE} }; ... http_add_get_functions(my_get_functions); Several get function tables can be passed to the server through this function. They are parsed in the reverse order of their respective http_add_get_functions calls. Function http_add_post_functions
|