|
| static Bool | mod_enum (void *cbck, char *item_name, char *item_path, GF_FileEnumInfo *file_info) |
| |
| static Bool | check_file_exists (char *name, char *path, char *outPath) |
| |
| static Bool | get_default_install_path (char *file_path, u32 path_type) |
| |
| const char * | gf_get_default_cache_directory_ex (Bool do_create) |
| |
| GF_EXPORT void | gf_get_default_font_dir (char szPath[GF_MAX_PATH]) |
| |
| static GF_Config * | create_default_config (char *file_path, const char *profile) |
| |
| static void | check_modules_dir (GF_Config *cfg) |
| |
| static void | check_default_cred_file (GF_Config *cfg, char szPath[GF_MAX_PATH]) |
| |
| static GF_Config * | gf_cfg_init (const char *profile) |
| | configuration file initialization
|
| |
| GF_EXPORT Bool | gf_opts_default_shared_directory (char *path_buffer) |
| |
| void | gf_modules_new (GF_Config *config) |
| | module manager construtcor
|
| |
| void | gf_modules_del () |
| | module manager destructor
|
| |
| void | gf_init_global_config (const char *profile) |
| |
| void | gf_uninit_global_config (Bool discard_config) |
| |
| GF_Err | gf_cfg_set_key_internal (GF_Config *iniFile, const char *secName, const char *keyName, const char *keyValue, Bool is_restrict) |
| |
| GF_EXPORT const char * | gf_opts_get_key (const char *secName, const char *keyName) |
| |
| GF_EXPORT GF_Err | gf_opts_set_key (const char *secName, const char *keyName, const char *keyValue) |
| |
| GF_EXPORT void | gf_opts_del_section (const char *secName) |
| |
| GF_EXPORT u32 | gf_opts_get_section_count () |
| |
| GF_EXPORT const char * | gf_opts_get_section_name (u32 secIndex) |
| |
| GF_EXPORT u32 | gf_opts_get_key_count (const char *secName) |
| |
| GF_EXPORT const char * | gf_opts_get_key_name (const char *secName, u32 keyIndex) |
| |
| GF_EXPORT const char * | gf_opts_get_key_restricted (const char *secName, const char *keyName) |
| |
| GF_EXPORT const char * | gf_opts_get_filename () |
| |
| GF_EXPORT GF_Err | gf_opts_discard_changes () |
| |
| GF_EXPORT GF_Err | gf_opts_save () |
| |
| const GF_Config * | gf_sys_get_lang_file () |
| |
| GF_EXPORT const GF_GPACArg * | gf_sys_get_options () |
| |
| static const char * | gpac_opt_default (const char *argname) |
| |
| GF_EXPORT Bool | gf_opts_get_bool (const char *secName, const char *keyName) |
| |
| GF_EXPORT u32 | gf_opts_get_int (const char *secName, const char *keyName) |
| |
| GF_EXPORT Bool | gf_sys_set_cfg_option (const char *opt_string) |
| |
| void | gf_module_reload_dirs () |
| |
| Bool | gf_opts_load_option (const char *arg_name, const char *val, Bool *consumed_next, GF_Err *e) |
| |
| GF_EXPORT u32 | gf_sys_is_gpac_arg (const char *arg_name) |
| |
| GF_EXPORT void | gf_sys_print_arg (FILE *helpout, GF_SysPrintArgFlags flags, const GF_GPACArg *arg, const char *arg_subsystem) |
| |
| GF_EXPORT void | gf_sys_print_core_help (FILE *helpout, GF_SysPrintArgFlags flags, GF_SysArgMode mode, u32 subsystem_flags) |
| |
| void | gf_sys_cleanup_help () |
| |
| GF_EXPORT void | gf_sys_format_help (FILE *helpout, GF_SysPrintArgFlags flags, const char *fmt,...) |
| |
| GF_EXPORT Bool | gf_strnistr (const char *text, const char *subtext, u32 subtext_len) |
| | search string without case
|
| |
| GF_EXPORT Bool | gf_sys_word_match (const char *orig, const char *dst) |
| |
| static GF_Config * gf_cfg_init |
( |
const char * |
profile | ) |
|
|
static |
configuration file initialization
Constructs a configuration file from fileName. If fileName is NULL, the default GPAC configuration file is loaded with the proper module directory, font directory and other default options. If fileName is non-NULL no configuration file is found, a "light" default configuration file is created.
- Parameters
-
| profile | name or path to existing config file |
- Returns
- the configuration file object, NULL if the file could not be created