util.c File Reference

Include dependency graph for util.c:


Defines

#define POSITION_ABSOLUTE   12
#define POSITION_REL_FOR   13
#define POSITION_REL_BACK   11
#define VL_TIME_ABSOLUTE   0
#define VL_TIME_REL_FOR   1
#define VL_TIME_REL_BACK   -1

Functions

static char * FileToUrl (const char *name, bool *pb_index)
int FileLoad (FILE *f, char **pp_data, int *pi_data)
 This function loads a file into a buffer.
int ParseDirectory (intf_thread_t *p_intf, char *psz_root, char *psz_dir)
 This function recursively parses a directory and adds all files.
void PlaylistListNode (intf_thread_t *p_intf, playlist_t *p_pl, playlist_item_t *p_node, char *name, mvar_t *s, int i_depth)
 This function converts the listing of a playlist node into a mvar set.
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.
int TestURIParam (char *psz_uri, const char *psz_name)
static const char * FindURIValue (const char *psz_uri, const char *restrict psz_name, size_t *restrict p_len)
const char * ExtractURIValue (const char *restrict psz_uri, const char *restrict psz_name, char *restrict psz_buf, size_t bufsize)
 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)
char * FirstWord (char *psz, char *new)
 Return the first word from a string (works in-place).
static char * FirstOption (char *psz, char *new)
input_item_tMRLParse (intf_thread_t *p_intf, const char *mrl, char *psz_name)
 This function parses a MRL.
char * RealPath (const char *psz_src)
 This function returns the real path of a file or directory.

Define Documentation

#define POSITION_ABSOLUTE   12

Referenced by HandleSeek().

#define POSITION_REL_BACK   11

Referenced by HandleSeek().

#define POSITION_REL_FOR   13

Referenced by HandleSeek().

#define VL_TIME_ABSOLUTE   0

Referenced by HandleSeek().

#define VL_TIME_REL_BACK   -1

Referenced by HandleSeek().

#define VL_TIME_REL_FOR   1

Referenced by HandleSeek().


Function Documentation

static char* FileToUrl ( const char *  name,
bool *  pb_index 
) [static]

References DIR_SEP, DIR_SEP_CHAR, and unlikely.

Referenced by ParseDirectory().

static const char* FindURIValue ( const char *  psz_uri,
const char *restrict  psz_name,
size_t *restrict  p_len 
) [static]

static char* FirstOption ( char *  psz,
char *  new 
) [static]

References c.

Referenced by MRLParse().


Generated on Tue May 25 08:05:16 2010 for VLC by  doxygen 1.5.6