|
Functions | |
| int | ParseDirectory (intf_thread_t *p_intf, char *psz_root, char *psz_dir) |
| This function recursively parses a directory and adds all files. | |
| int | FileLoad (FILE *f, char **pp_data, int *pi_data) |
| This function loads a file into a buffer. | |
| char * | FileToUrl (char *name, bool *pb_index) |
| This function creates a suitable URL for a filename. | |
| char * | RealPath (const char *psz_src) |
| This function returns the real path of a file or directory. | |
| void | HandleSeek (intf_thread_t *p_intf, char *p_value) |
| This command parses the "seek" command for the HTTP interface and performs the requested action. | |
| const char * | ExtractURIValue (const char *restrict psz_uri, const char *restrict psz_name, char *restrict psz_value, size_t i_value_max) |
| This function extracts the value for a given argument name from an HTTP request. | |
| char * | ExtractURIString (const char *restrict psz_uri, const char *restrict psz_name) |
| int | TestURIParam (char *psz_uri, const char *psz_name) |
| input_item_t * | MRLParse (intf_thread_t *, const char *psz, char *psz_name) |
| This function parses a MRL. | |
| char * | FirstWord (char *psz, char *new) |
| Return the first word from a string (works in-place). | |
| char* ExtractURIString | ( | const char *restrict | psz_uri, | |
| const char *restrict | psz_name | |||
| ) |
| const char* ExtractURIValue | ( | const char *restrict | psz_uri, | |
| const char *restrict | psz_name, | |||
| char *restrict | psz_value, | |||
| size_t | i_value_max | |||
| ) |
This function extracts the value for a given argument name from an HTTP request.
References FindURIValue(), and psz_value.
Referenced by ArtCallback(), and MacroDo().
| int FileLoad | ( | FILE * | f, | |
| char ** | pp_data, | |||
| int * | pi_data | |||
| ) |
This function loads a file into a buffer.
References VLC_SUCCESS.
Referenced by ArtCallback(), Execute(), and HttpCallback().
| char* FileToUrl | ( | char * | name, | |
| bool * | pb_index | |||
| ) |
| char* FirstWord | ( | char * | psz, | |
| char * | new | |||
| ) |
| void HandleSeek | ( | intf_thread_t * | p_intf, | |
| char * | p_value | |||
| ) |
This command parses the "seek" command for the HTTP interface and performs the requested action.
References __MAX, __MIN, vlc_value_t::f_float, vlc_value_t::i_time, i_value, msg_Dbg, intf_sys_t::p_input, intf_thread_t::p_sys, p_sys, POSITION_ABSOLUTE, POSITION_REL_BACK, POSITION_REL_FOR, var_Get, var_Set, VL_TIME_ABSOLUTE, VL_TIME_REL_BACK, and VL_TIME_REL_FOR.
Referenced by EvaluateRPN(), and MacroDo().
| input_item_t* MRLParse | ( | intf_thread_t * | , | |
| const char * | psz, | |||
| char * | psz_name | |||
| ) |
This function parses a MRL.
References FirstOption(), input_item_AddOption(), input_item_New, strdup(), and VLC_INPUT_OPTION_TRUSTED.
Referenced by EvaluateRPN(), and MacroDo().
| int ParseDirectory | ( | intf_thread_t * | p_intf, | |
| char * | psz_root, | |||
| char * | psz_dir | |||
| ) |
This function recursively parses a directory and adds all files.
References ACL_Create, ACL_Destroy(), ACL_LoadFile(), asprintf(), httpd_file_sys_t::b_handler, httpd_file_sys_t::b_html, closedir, DIR_SEP, httpd_file_sys_t::file, FileToUrl(), HandlerCallback(), HttpCallback(), httpd_FileNew(), httpd_HandlerNew(), httpd_RedirectNew(), i, intf_sys_t::i_files, intf_sys_t::i_handlers, gen_builder::line, MAX_DIR_SIZE, msg_Dbg, msg_Err, msg_Warn, httpd_file_sys_t::name, httpd_handler_sys_t::p_association, httpd_file_sys_t::p_file, httpd_handler_sys_t::p_handler, intf_sys_t::p_httpd_host, httpd_file_sys_t::p_intf, httpd_file_sys_t::p_redir, httpd_file_sys_t::p_redir2, intf_thread_t::p_sys, p_sys, ParseDirectory(), intf_sys_t::pp_files, intf_sys_t::pp_handlers, http_association_t::psz_ext, psz_ext, psz_name, psz_type, strdup(), TAB_APPEND, utf8_fopen(), utf8_opendir(), utf8_readdir(), utf8_stat(), VLC_EGENERIC, VLC_ENOMEM, and VLC_SUCCESS.
Referenced by ParseDirectory().
| char* RealPath | ( | const char * | psz_src | ) |
This function returns the real path of a file or directory.
References asprintf(), config_GetUserDir(), DIR_SEP_CHAR, and VLC_HOME_DIR.
Referenced by EvaluateRPN(), and mvar_FileSetNew().
| int TestURIParam | ( | char * | psz_uri, | |
| const char * | psz_name | |||
| ) |
1.5.6