diff options
author | John Stebbins <[email protected]> | 2015-10-07 10:52:22 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-10-09 13:48:30 -0700 |
commit | 71ec27786fb8f2d455b5b7317b9384d6dc3b058f (patch) | |
tree | 8e4e5ebe85106f4f8eb53abbbf7a3e0a4adb2cbf /libhb/preset.h | |
parent | 305d591def7d9bb32f3dd3020c511970f3363960 (diff) |
presets: add result to indicate if preset import modified presets
This information is useful to the frontends in creation of preset
backups.
Diffstat (limited to 'libhb/preset.h')
-rw-r--r-- | libhb/preset.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/preset.h b/libhb/preset.h index 62ce3d361..63eaf1cde 100644 --- a/libhb/preset.h +++ b/libhb/preset.h @@ -84,11 +84,11 @@ char * hb_presets_clean_json(const char *json); // Import a preset. Sanitizes and converts old key/value pairs // to new key/value pairs. This is applied for you by hb_presets_add(), // hb_presets_add_json(), hb_presets_add_file(), and hb_presets_add_path() -void hb_presets_import(hb_value_t *preset); +int hb_presets_import(hb_value_t *preset); // Import a json preset. Sanitizes and converts old key/value pairs // to new key/value pairs. -char * hb_presets_import_json(const char *json); +int hb_presets_import_json(const char *in, char **out); // Register new presets with libhb from json string int hb_presets_add_json(const char *json); |