Functions | Variables

core.c File Reference

Include dependency graph for core.c:

Functions

static char * strdupnull (const char *src)
int config_GetType (vlc_object_t *p_this, const char *psz_name)
bool config_IsSafe (const char *name)
int64_t config_GetInt (vlc_object_t *p_this, const char *psz_name)
float config_GetFloat (vlc_object_t *p_this, const char *psz_name)
char * config_GetPsz (vlc_object_t *p_this, const char *psz_name)
void config_PutPsz (vlc_object_t *p_this, const char *psz_name, const char *psz_value)
void config_PutInt (vlc_object_t *p_this, const char *psz_name, int64_t i_value)
void config_PutFloat (vlc_object_t *p_this, const char *psz_name, float f_value)
static int confcmp (const void *a, const void *b)
static int confnamecmp (const void *key, const void *elem)
int config_SortConfig (void)
 Index the configuration items by name for faster lookups.
void config_UnsortConfig (void)
module_config_tconfig_FindConfig (vlc_object_t *p_this, const char *name)
void config_Free (module_config_t *config, size_t confsize)
 Destroys an array of configuration items.
void config_ResetAll (vlc_object_t *p_this)

Variables

vlc_rwlock_t config_lock = PTHREAD_RWLOCK_INITIALIZER
bool config_dirty = false
struct {
   module_config_t **   list
   size_t   count
config

Function Documentation

static int confcmp ( const void *  a,
const void *  b 
) [static]

Referenced by config_SortConfig().

module_config_t* config_FindConfig ( vlc_object_t p_this,
const char *  name 
)
void config_Free ( module_config_t config,
size_t  confsize 
)
float config_GetFloat ( vlc_object_t p_this,
const char *  psz_name 
)
int64_t config_GetInt ( vlc_object_t p_this,
const char *  psz_name 
)
char* config_GetPsz ( vlc_object_t p_this,
const char *  psz_name 
)
int config_GetType ( vlc_object_t p_this,
const char *  psz_name 
)
bool config_IsSafe ( const char *  name  ) 
void config_PutFloat ( vlc_object_t p_this,
const char *  psz_name,
float  f_value 
)
void config_PutInt ( vlc_object_t p_this,
const char *  psz_name,
int64_t  i_value 
)
void config_PutPsz ( vlc_object_t p_this,
const char *  psz_name,
const char *  psz_value 
)
void config_ResetAll ( vlc_object_t p_this  ) 
int config_SortConfig ( void   ) 

Index the configuration items by name for faster lookups.

References confcmp(), config, CONFIG_ITEM, module_t::confsize, module_config_t::i_type, module_list_free(), module_list_get(), module_t::p_config, and unlikely.

Referenced by module_InitBank(), and module_LoadPlugins().

void config_UnsortConfig ( void   ) 

References config.

Referenced by module_EndBank(), and module_LoadPlugins().

static int confnamecmp ( const void *  key,
const void *  elem 
) [static]

Referenced by config_FindConfig().

static char* strdupnull ( const char *  src  )  [inline, static]

References strdup().

Referenced by config_GetPsz(), and config_ResetAll().


Variable Documentation

struct { ... } config [static]
bool config_dirty = false
vlc_rwlock_t config_lock = PTHREAD_RWLOCK_INITIALIZER
size_t count
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines