summaryrefslogtreecommitdiffstats
path: root/libhb/preset.h
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-09-28 09:34:15 -0700
committerJohn Stebbins <[email protected]>2017-11-06 08:19:49 -0800
commit83c883338fc3151e6afa039fb2ba70ee2d2b4d87 (patch)
tree16118ae9c7cdf60e8dbf9eaf0ff6d34a4065937d /libhb/preset.h
parent637e9b814ab2a064db47a830564f263dad54fdc2 (diff)
LinGui: Add "Category" dropdown to preset save dialog
This replaces the "New Folder" option in the presets menu. It enforces the folder structure we have agreed to and hopefully helps the user keep things organized. Note that users are allowed to save a custom preset to the same "Category" as an official preset. When they do this, a new custom category is created with the same name and the preset is saved in that folder.
Diffstat (limited to 'libhb/preset.h')
-rw-r--r--libhb/preset.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/libhb/preset.h b/libhb/preset.h
index e797edeb6..61ffaf9b6 100644
--- a/libhb/preset.h
+++ b/libhb/preset.h
@@ -14,6 +14,10 @@
#define HB_MAX_PRESET_FOLDER_DEPTH 8
+#define HB_PRESET_TYPE_OFFICIAL 0
+#define HB_PRESET_TYPE_CUSTOM 1
+#define HB_PRESET_TYPE_ALL 2
+
typedef struct hb_preset_index_s hb_preset_index_t;
// A preset index is a list of indexes that specifies a path to a
@@ -160,9 +164,11 @@ void hb_sanitize_audio_settings(const hb_title_t * title,
// in the name will be performed.
//
// I assume that the actual preset name does not include any '/'
-hb_preset_index_t * hb_preset_search_index(const char *name, int recurse);
-hb_value_t * hb_preset_search(const char *name, int recurse);
-char * hb_preset_search_json(const char *name, int recurse);
+hb_preset_index_t * hb_preset_search_index(const char *name,
+ int recurse, int type);
+hb_value_t * hb_preset_search(const char *name, int recurse, int type);
+char * hb_preset_search_json(const char *name,
+ int recurs, int typee);
hb_value_t * hb_presets_get_folder_children(const hb_preset_index_t *path);
hb_value_t * hb_preset_get(const hb_preset_index_t *path);