Functions

dirs_xdg.c File Reference

Include dependency graph for dirs_xdg.c:

Functions

char * config_GetDataDirDefault (void)
 Determines the shared data directory.
const char * config_GetLibDir (void)
 Determines the architecture-dependent data directory.
const char * config_GetConfDir (void)
 Determines the system configuration directory.
static char * config_GetHomeDir (void)
static char * config_GetAppDir (const char *xdg_name, const char *xdg_default)
static char * config_GetTypeDir (const char *xdg_name)
char * config_GetUserDir (vlc_userdir_t type)

Function Documentation

static char* config_GetAppDir ( const char *  xdg_name,
const char *  xdg_default 
) [static]
const char* config_GetConfDir ( void   ) 

Determines the system configuration directory.

Returns:
a string (always succeeds).
char* config_GetDataDirDefault ( void   ) 

Determines the shared data directory.

Returns:
a nul-terminated string or NULL. Use free() to release it.

References strdup().

static char* config_GetHomeDir ( void   )  [static]

References FromLocaleDup(), and getenv().

Referenced by config_GetAppDir(), and config_GetUserDir().

const char* config_GetLibDir ( void   ) 

Determines the architecture-dependent data directory.

Returns:
a string (always succeeds).
static char* config_GetTypeDir ( const char *  xdg_name  )  [static]
char* config_GetUserDir ( vlc_userdir_t  type  ) 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines