VLC 4.0.0-dev
Loading...
Searching...
No Matches
file.c File Reference
Include dependency graph for file.c:

Functions

static char * config_GetConfigFile (libvlc_int_t *obj)
 Get the user's configuration file.
 
static FILE * config_OpenConfigFile (libvlc_int_t *p_obj)
 
static int64_t vlc_strtoi (const char *str)
 
int config_LoadConfigFile (libvlc_int_t *p_this)
 
static int config_CreateDir (libvlc_int_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 (libvlc_int_t *obj)
 
int() config_SaveConfigFile (libvlc_int_t *p_this)
 Saves the in-memory configuration into a file.
 

Function Documentation

◆ config_CreateDir()

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

◆ config_GetConfigFile()

static char * config_GetConfigFile ( libvlc_int_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()

◆ config_OpenConfigFile()

static FILE * config_OpenConfigFile ( libvlc_int_t p_obj)
static

◆ config_PrepareDir()

static int config_PrepareDir ( libvlc_int_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().

◆ vlc_strtoi()

static int64_t vlc_strtoi ( const char *  str)
static

References strtoll().

Referenced by config_LoadConfigFile().