(menu_displaylist.c) Turn this into enum with name

This commit is contained in:
twinaphex 2016-03-03 00:37:32 +01:00
parent 61faa0a04b
commit 7de6a0f005
2 changed files with 8 additions and 7 deletions

View File

@ -1775,8 +1775,11 @@ static int deferred_push_video_shader_parameters_common(
}
#endif
int menu_displaylist_parse_settings(void *data, menu_displaylist_info_t *info,
const char *info_label, unsigned parse_type, bool add_empty_entry)
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)
{
enum setting_type precond;
size_t count = 0;
@ -1784,7 +1787,6 @@ int menu_displaylist_parse_settings(void *data, menu_displaylist_info_t *info,
rarch_setting_t *setting = menu_setting_find(info_label);
uint64_t flags = menu_setting_get_flags(setting);
if (!setting)
return -1;

View File

@ -30,7 +30,7 @@ extern "C" {
#define COLLECTION_SIZE 99999
#endif
enum
enum menu_displaylist_parse_type
{
PARSE_NONE = (1 << 0),
PARSE_GROUP = (1 << 1),
@ -41,8 +41,7 @@ enum
PARSE_ONLY_FLOAT = (1 << 6),
PARSE_ONLY_BIND = (1 << 7),
PARSE_ONLY_GROUP = (1 << 8),
PARSE_ONLY_SUB_GROUP = (1 << 9),
PARSE_SUB_GROUP = (1 << 10)
PARSE_SUB_GROUP = (1 << 9)
};
enum menu_displaylist_ctl_state
@ -145,7 +144,7 @@ typedef struct menu_displaylist_ctx_entry
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, unsigned parse_type, bool add_empty_entry);
const char *info_label, enum menu_displaylist_parse_type parse_type, bool add_empty_entry);
#ifdef __cplusplus
}