VLC  3.0.15
Functions
dirs.c File Reference
Include dependency graph for dirs.c:

Functions

char * config_GetDataDir (void)
 Determines the shared data directory. More...
 
char * config_GetLibDir (void)
 Determines the architecture-dependent data directory. More...
 
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

◆ config_GetAppDir()

static char* config_GetAppDir ( const char *  xdg_name,
const char *  xdg_default 
)
static

References asprintf(), config_GetHomeDir(), and getenv().

Referenced by config_GetUserDir().

◆ config_GetDataDir()

char* config_GetDataDir ( void  )

Determines the shared data directory.

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

References getenv(), and strdup().

◆ config_GetHomeDir()

static char* config_GetHomeDir ( void  )
static

References getenv(), and strdup().

Referenced by config_GetAppDir(), and config_GetUserDir().

◆ config_GetLibDir()

char* config_GetLibDir ( void  )

Determines the architecture-dependent data directory.

Returns
a string (always succeeds).

References strdup().

◆ config_GetTypeDir()

static char* config_GetTypeDir ( const char *  xdg_name)
static

References asprintf(), getenv(), getline(), and strdup().

Referenced by config_GetUserDir().

◆ config_GetUserDir()

char* config_GetUserDir ( vlc_userdir_t  type)