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

Functions

static bool config_isBundle ()
 
static char * config_getLibraryDirReal (const char *fallback)
 
static char * config_getDataDirReal (const char *fallback)
 
char * config_GetLibDir (void)
 Gets the arch-specific installation directory. More...
 
char * config_GetSysPath (vlc_sysdir_t type, const char *filename)
 Gets an installation directory. More...
 
static char * config_GetHomeDir (void)
 
static char * getAppDependentDir (vlc_userdir_t type)
 
char * config_GetUserDir (vlc_userdir_t type)
 

Function Documentation

◆ config_getDataDirReal()

static char* config_getDataDirReal ( const char *  fallback)
static

References config_isBundle(), getenv(), and strdup().

Referenced by config_GetSysPath().

◆ config_GetHomeDir()

static char* config_GetHomeDir ( void  )
static

References getenv(), and strdup().

Referenced by config_GetUserDir(), and getAppDependentDir().

◆ 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

◆ config_getLibraryDirReal()

static char* config_getLibraryDirReal ( const char *  fallback)
static

◆ config_isBundle()

static bool config_isBundle ( )
static

◆ getAppDependentDir()

static char* getAppDependentDir ( vlc_userdir_t  type)
static