Functions | Variables

darwin_dirs.c File Reference

Include dependency graph for darwin_dirs.c:

Functions

static void init_dirs (void)
const char * config_GetConfDir (void)
 Determines the system configuration directory.
static char * config_GetLibPath (void)
char * config_GetLibDir (void)
char * config_GetDataDir (void)
 Determines the shared data directory.
static char * config_GetHomeDir (void)
static char * getAppDependentDir (vlc_userdir_t type)
char * config_GetUserDir (vlc_userdir_t type)

Variables

static char * configdir = NULL
static pthread_once_t once = PTHREAD_ONCE_INIT

Function Documentation

const char* config_GetConfDir ( void   ) 

Determines the system configuration directory.

Returns:
a string (always succeeds).

References configdir, init_dirs(), and once.

char* config_GetDataDir ( void   ) 

Determines the shared data directory.

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

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

static char* config_GetHomeDir ( void   )  [static]

References getenv(), and strdup().

Referenced by config_GetUserDir(), and getAppDependentDir().

char* config_GetLibDir ( void   ) 

References config_GetLibPath().

static char* config_GetLibPath ( void   )  [static]

References strdup(), and system_Init().

Referenced by config_GetLibDir().

char* config_GetUserDir ( vlc_userdir_t  type  ) 
static char* getAppDependentDir ( vlc_userdir_t  type  )  [static]
static void init_dirs ( void   )  [static]

Variable Documentation

char* configdir = NULL [static]

Referenced by config_GetConfDir(), and init_dirs().

pthread_once_t once = PTHREAD_ONCE_INIT [static]

Referenced by config_GetConfDir(), and vlc_CPU().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines