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

Function store_presets

gtk/src/presets.c:1947–1959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1945}
1946
1947static void
1948store_presets (void)
1949{
1950 gchar *config, *path;
1951 hb_value_t *presets;
1952
1953 config = ghb_get_user_config_dir(NULL);
1954 path = g_strdup_printf ("%s/%s", config, "presets.json");
1955 presets = hb_presets_get();
1956 hb_presets_write_json(presets, path);
1957 g_free(config);
1958 g_free(path);
1959}
1960
1961static void
1962store_prefs(void)

Callers 11

presets_add_config_fileFunction · 0.85
ghb_presets_loadFunction · 0.85
settings_saveFunction · 0.85
preset_write_responseFunction · 0.85
presets_reload_action_cbFunction · 0.85
preset_remove_action_cbFunction · 0.85
presets_drop_cbFunction · 0.85
presets_row_expanded_cbFunction · 0.85
preset_default_action_cbFunction · 0.85
preset_edited_cbFunction · 0.85

Calls 3

ghb_get_user_config_dirFunction · 0.85
hb_presets_getFunction · 0.85
hb_presets_write_jsonFunction · 0.85

Tested by

no test coverage detected