| 863 | } |
| 864 | |
| 865 | static GhbValue* |
| 866 | read_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 | |
| 882 | GhbValue* |
| 883 | ghb_read_settings_file(const gchar *path) |
no test coverage detected