Change signature of menu_displaylist_parse_settings

This commit is contained in:
twinaphex 2016-03-04 07:20:37 +01:00
parent 418c5cbb76
commit 280431114e
2 changed files with 17 additions and 5 deletions

View File

@ -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,

View File

@ -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
}