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

Functions

static const char * config_GetRelDir (const char *dir)
 
static const char * config_GetBaseDir (void)
 
static char * config_GetRealDir (const char *dir)
 
char * config_GetLibDir (void)
 Gets the arch-specific installation directory. More...
 
static char * config_GetLibExecDir (void)
 
static char * config_GetDataDir (void)
 Determines the shared data directory. More...
 
char * config_GetSysPath (vlc_sysdir_t type, const char *filename)
 Gets an installation directory. More...
 
static char * config_GetHomeDir (void)
 
char * config_GetUserDir (vlc_userdir_t type)
 

Function Documentation

◆ config_GetBaseDir()

static const char * config_GetBaseDir ( void  )
static

References system_Init().

Referenced by config_GetRealDir().

◆ config_GetDataDir()

static char * config_GetDataDir ( void  )
static

Determines the shared data directory.

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

References config_GetRealDir(), FromLocaleDup, and getenv().

Referenced by config_GetSysPath().

◆ config_GetHomeDir()

static char * config_GetHomeDir ( void  )
static

◆ config_GetLibDir()

char * config_GetLibDir ( void  )

Gets the arch-specific installation directory.

This function determines the directory containing the architecture-specific installed asset files (such as executable plugins and compiled byte code).

Returns
a heap-allocated string (use free() to release it), or NULL on error

References config_GetRealDir(), FromLocaleDup, and getenv().

◆ config_GetLibExecDir()

static char * config_GetLibExecDir ( void  )
static

◆ config_GetRealDir()

static char * config_GetRealDir ( const char *  dir)
static

◆ config_GetRelDir()

static const char * config_GetRelDir ( const char *  dir)
static

Referenced by config_GetRealDir().