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

Functions

static char * strdupnull (const char *src)
 
static char * config_GetConfigFile (vlc_object_t *obj)
 Get the user's configuration file. More...
 
static FILE * config_OpenConfigFile (vlc_object_t *p_obj)
 
static int64_t vlc_strtoi (const char *str)
 
int config_LoadConfigFile (vlc_object_t *p_this)
 
static int config_CreateDir (vlc_object_t *p_this, char *psz_dirname)
 
static int config_Write (FILE *file, const char *desc, const char *type, bool comment, const char *name, const char *fmt,...)
 
static int config_PrepareDir (vlc_object_t *obj)
 
int config_SaveConfigFile (vlc_object_t *p_this)
 Saves the in-memory configuration into a file. More...
 
int config_AutoSaveConfigFile (vlc_object_t *p_this)
 

Function Documentation

◆ config_AutoSaveConfigFile()

int config_AutoSaveConfigFile ( vlc_object_t p_this)

◆ config_CreateDir()

static int config_CreateDir ( vlc_object_t p_this,
char *  psz_dirname 
)
static

◆ config_GetConfigFile()

static char* config_GetConfigFile ( vlc_object_t obj)
static

Get the user's configuration file.

References asprintf(), CONFIG_FILE, config_GetUserDir(), DIR_SEP, var_InheritString(), and VLC_CONFIG_DIR.

Referenced by config_OpenConfigFile(), and config_SaveConfigFile().

◆ config_LoadConfigFile()

int config_LoadConfigFile ( vlc_object_t p_this)

◆ config_OpenConfigFile()

static FILE* config_OpenConfigFile ( vlc_object_t p_obj)
static

◆ config_PrepareDir()

static int config_PrepareDir ( vlc_object_t obj)
static

◆ config_Write()

static int config_Write ( FILE *  file,
const char *  desc,
const char *  type,
bool  comment,
const char *  name,
const char *  fmt,
  ... 
)
static

References name, and vlc_gettext().

Referenced by config_SaveConfigFile().

◆ strdupnull()

static char* strdupnull ( const char *  src)
inlinestatic

References strdup().

Referenced by config_LoadConfigFile().

◆ vlc_strtoi()

static int64_t vlc_strtoi ( const char *  str)
static

References strtoll().

Referenced by config_LoadConfigFile().