Change signature of menu_entry_action

This commit is contained in:
Twinaphex 2015-05-15 04:41:57 +02:00
parent 83f3847b30
commit e75c061bce
3 changed files with 4 additions and 3 deletions

View File

@ -447,7 +447,7 @@ int menu_entry_iterate(unsigned action)
return -1;
}
int menu_entry_action(menu_entry_t *entry, unsigned i, unsigned action)
int menu_entry_action(menu_entry_t *entry, unsigned i, enum menu_action action)
{
menu_navigation_t *nav = menu_navigation_get_ptr();
menu_handle_t *menu = menu_driver_get_ptr();

View File

@ -116,7 +116,8 @@ int menu_entry_iterate(unsigned action);
int menu_entry_select(uint32_t i);
int menu_entry_action(menu_entry_t *entry, unsigned i, unsigned action);
int menu_entry_action(menu_entry_t *entry,
unsigned i, enum menu_action action);
#ifdef __cplusplus
}

View File

@ -24,7 +24,7 @@
extern "C" {
#endif
typedef enum
typedef enum menu_action
{
MENU_ACTION_UP,
MENU_ACTION_DOWN,