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

Functions

static char * config_GetLibDirRaw (void)
 
static void config_GetLibDirOnce (void)
 
char * config_GetLibDir (void)
 Gets the arch-specific installation directory. More...
 

Variables

static char cached_path [PATH_MAX] = LIBDIR
 

Function Documentation

◆ 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 cached_path, config_GetLibDirOnce(), and strdup().

Referenced by config_GetDataDir(), config_GetHomeDir(), config_GetLibDir(), config_GetLibDirRaw(), and config_GetSysPath().

◆ config_GetLibDirOnce()

static void config_GetLibDirOnce ( void  )
static

References cached_path, config_GetLibDirRaw(), and likely.

Referenced by config_GetLibDir().

◆ config_GetLibDirRaw()

static char* config_GetLibDirRaw ( void  )
static

References config_GetLibDir(), getline(), and strdup().

Referenced by config_GetLibDirOnce().

Variable Documentation

◆ cached_path

char cached_path[PATH_MAX] = LIBDIR
static