MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / read_config_file

Function read_config_file

gtk/src/presets.c:865–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865static GhbValue*
866read_config_file(const gchar *name)
867{
868 gchar *config, *path;
869 GhbValue *gval = NULL;
870
871 config = ghb_get_user_config_dir(NULL);
872 path = g_strdup_printf ("%s/%s", config, name);
873 g_free(config);
874 if (g_file_test(path, G_FILE_TEST_IS_REGULAR))
875 {
876 gval = ghb_json_parse_file(path);
877 }
878 g_free(path);
879 return gval;
880}
881
882GhbValue*
883ghb_read_settings_file(const gchar *path)

Callers 2

ghb_prefs_loadFunction · 0.85
ghb_load_old_queueFunction · 0.85

Calls 1

ghb_get_user_config_dirFunction · 0.85

Tested by

no test coverage detected