diff --git a/menu/backend/menu_backend.h b/menu/backend/menu_backend.h index f922abb317..27f4f58a60 100644 --- a/menu/backend/menu_backend.h +++ b/menu/backend/menu_backend.h @@ -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); diff --git a/settings_list.h b/settings_list.h index 67f4135ea5..ff2ebb0e21 100644 --- a/settings_list.h +++ b/settings_list.h @@ -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;