From 280431114e7e7d1912512e229d1ae754dab905d9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 4 Mar 2016 07:20:37 +0100 Subject: [PATCH] Change signature of menu_displaylist_parse_settings --- menu/menu_displaylist.c | 6 +++--- menu/menu_displaylist.h | 16 ++++++++++++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 6af74f11ff..b3ade6916d 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -1806,7 +1806,7 @@ static int deferred_push_video_shader_parameters_common( } #endif -int menu_displaylist_parse_settings(void *data, +bool menu_displaylist_parse_settings(void *data, menu_displaylist_info_t *info, const char *info_label, enum menu_displaylist_parse_type parse_type, @@ -1819,7 +1819,7 @@ int menu_displaylist_parse_settings(void *data, uint64_t flags = menu_setting_get_flags(setting); if (!setting) - return -1; + return false; switch (parse_type) { @@ -1946,7 +1946,7 @@ loop: menu_hash_to_str(MENU_LABEL_NO_SETTINGS_FOUND), 0, 0, 0); - return 0; + return true; } static int menu_displaylist_sort_playlist(const content_playlist_entry_t *a, diff --git a/menu/menu_displaylist.h b/menu/menu_displaylist.h index ff46de8105..9ab9fadb11 100644 --- a/menu/menu_displaylist.h +++ b/menu/menu_displaylist.h @@ -142,10 +142,22 @@ typedef struct menu_displaylist_ctx_entry file_list_t *list; } menu_displaylist_ctx_entry_t; +typedef struct menu_displaylist_ctx_parse_entry +{ + void *data; + menu_displaylist_info_t *info; + const char *info_label; + enum menu_displaylist_parse_type parse_type; + bool add_empty_entry; +} menu_displaylist_ctx_parse_entry_t; + bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data); -int menu_displaylist_parse_settings(void *data, menu_displaylist_info_t *info, - const char *info_label, enum menu_displaylist_parse_type parse_type, bool add_empty_entry); +bool menu_displaylist_parse_settings(void *data, + menu_displaylist_info_t *info, + const char *info_label, + enum menu_displaylist_parse_type parse_type, + bool add_empty_entry); #ifdef __cplusplus }