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.
char * ExtractURIValue (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 (char *restrict psz_uri, const char *restrict psz_name)
int TestURIParam (char *psz_uri, const char *psz_name)
input_item_tMRLParse (intf_thread_t *, 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 ( char *restrict  psz_uri,
const char *restrict  psz_name 
)

char* ExtractURIValue ( 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.

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* FirstWord ( char *  psz,
char *  new 
)

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

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.

input_item_t* MRLParse ( intf_thread_t ,
char *  psz,
char *  psz_name 
)

This function parses a MRL.

int ParseDirectory ( intf_thread_t p_intf,
char *  psz_root,
char *  psz_dir 
)

This function recursively parses a directory and adds all files.

char* RealPath ( const char *  psz_src  ) 

This function returns the real path of a file or directory.

int TestURIParam ( char *  psz_uri,
const char *  psz_name 
)

Todo:
Describe this function


Generated on Wed Aug 13 08:05:55 2008 for VLC by  doxygen 1.5.1