Add action_cancel to callbacks

This commit is contained in:
twinaphex 2015-01-09 03:49:14 +01:00
parent 8ae9f9daf3
commit 82025586fe
2 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,8 @@ typedef struct menu_file_list_cbs
*path, const char *label, unsigned type);
int (*action_ok)(const char *path, const char *label, unsigned type,
size_t idx);
int (*action_cancel)(const char *path, const char *label, unsigned type,
size_t idx);
int (*action_start)(unsigned type, const char *label, unsigned action);
int (*action_content_list_switch)(void *data, void *userdata, const char
*path, const char *label, unsigned type);

View File

@ -85,6 +85,7 @@ enum setting_list_flags
typedef void (*change_handler_t )(void *data);
typedef int (*action_toggle_handler_t )(void *data, unsigned action);
typedef int (*action_start_handler_t )(void *data);
typedef int (*action_cancel_handler_t )(void *data, unsigned action);
typedef int (*action_ok_handler_t )(void *data, unsigned action);
typedef void (*get_string_representation_t )(void *data, char *buf, size_t sizeof_buf);
@ -124,6 +125,7 @@ typedef struct rarch_setting
change_handler_t read_handler;
action_start_handler_t action_start;
action_toggle_handler_t action_toggle;
action_cancel_handler_t action_cancel;
action_ok_handler_t action_ok;
get_string_representation_t get_string_representation;