Utilities
[HTTP Interface]

Collaboration diagram for Utilities:
Utilities. More...

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_tMRLParse (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).

Detailed Description

Utilities.


Function Documentation

char* ExtractURIString ( const char *restrict  psz_uri,
const char *restrict  psz_name 
)

References FindURIValue(), and psz_value.

Referenced by EvaluateRPN().

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 
)

This function creates a suitable URL for a filename.

Referenced by ParseDirectory().

char* FirstWord ( char *  psz,
char *  new 
)

Return the first word from a string (works in-place).

References c.

Referenced by EvaluateRPN().

void HandleSeek ( intf_thread_t p_intf,
char *  p_value 
)

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 
)

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 
)

Todo:
Describe this function

Referenced by MacroDo().


Generated on Sat Nov 21 08:06:05 2009 for VLC by  doxygen 1.5.6