VLC 4.0.0-dev
dirs.c File Reference
Include dependency graph for dirs.c:

Functions

char * config_GetLibDir (void)
 Determines the architecture-dependent data directory. More...
 
char * config_GetSysPath (vlc_sysdir_t type, const char *filename)
 Gets an installation 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(), getenv(), and var.

Referenced by config_GetUserDir().

◆ 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.

Gets the arch-specific installation 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().