GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
configfile.c File Reference
#include <gpac/config_file.h>
#include <gpac/list.h>
+ Include dependency graph for configfile.c:

Data Structures

struct  IniKey
 
struct  IniSection
 
struct  GF_Config
 

Macros

#define MAX_INI_LINE   2046
 

Functions

static void DelSection (IniSection *ptr)
 
static void gf_cfg_clear (GF_Config *iniFile)
 Clear the structure. More...
 
GF_Err gf_cfg_parse_config_file (GF_Config *tmp, const char *filePath, const char *file_name)
 Parses the config file if any and clears the existing structure. More...
 
GF_Config * gf_cfg_force_new (const char *filePath, const char *file_name)
 alternative configuration file constructor More...
 
GF_Config * gf_cfg_new (const char *filePath, const char *file_name)
 configuration file constructor More...
 
char * gf_cfg_get_filename (GF_Config *iniFile)
 
GF_Err gf_cfg_save (GF_Config *iniFile)
 configuration saving More...
 
void gf_cfg_del (GF_Config *iniFile)
 configuration file destructor More...
 
void gf_cfg_remove (GF_Config *iniFile)
 configuration file destructor More...
 
const char * gf_cfg_get_key (GF_Config *iniFile, const char *secName, const char *keyName)
 key value query More...
 
const char * gf_cfg_get_ikey (GF_Config *iniFile, const char *secName, const char *keyName)
 key value query ignoring case More...
 
GF_Err gf_cfg_set_key (GF_Config *iniFile, const char *secName, const char *keyName, const char *keyValue)
 key value update More...
 
u32 gf_cfg_get_section_count (GF_Config *iniFile)
 section count query More...
 
const char * gf_cfg_get_section_name (GF_Config *iniFile, u32 secIndex)
 section name query More...
 
u32 gf_cfg_get_key_count (GF_Config *iniFile, const char *secName)
 key count query More...
 
const char * gf_cfg_get_key_name (GF_Config *iniFile, const char *secName, u32 keyIndex)
 key count query More...
 
void gf_cfg_del_section (GF_Config *iniFile, const char *secName)
 section destrouction More...
 
GF_Err gf_cfg_insert_key (GF_Config *iniFile, const char *secName, const char *keyName, const char *keyValue, u32 index)
 key insertion More...
 
const char * gf_cfg_get_sub_key (GF_Config *iniFile, const char *secName, const char *keyName, u32 sub_index)
 
GF_Err gf_cfg_set_filename (GF_Config *iniFile, const char *fileName)
 

Data Structure Documentation

struct IniKey
+ Collaboration diagram for IniKey:
Data Fields
char * name
char * value
struct IniSection
+ Collaboration diagram for IniSection:
Data Fields
char * section_name
GF_List * keys
struct __tag_config
+ Collaboration diagram for GF_Config:
Data Fields
char * fileName
GF_List * sections
Bool hasChanged

Macro Definition Documentation

#define MAX_INI_LINE   2046

Function Documentation

static void DelSection ( IniSection ptr)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_cfg_clear ( GF_Config *  iniFile)
static
Parameters
iniFileThe structure to clear

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_cfg_parse_config_file ( GF_Config *  tmp,
const char *  filePath,
const char *  file_name 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: