diff --git a/menu/cbs/menu_cbs_contentlist_switch.c b/menu/cbs/menu_cbs_contentlist_switch.c index 26e7da0e9f..bdee2463a5 100644 --- a/menu/cbs/menu_cbs_contentlist_switch.c +++ b/menu/cbs/menu_cbs_contentlist_switch.c @@ -22,6 +22,14 @@ cbs->action_content_list_switch_ident = #name; #endif +static int deferred_push_content_list(void *data, void *userdata, + const char *path, + const char *label, unsigned type) +{ + file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0); + return action_refresh_default((file_list_t*)data, selection_buf); +} + int menu_cbs_init_bind_content_list_switch(menu_file_list_cbs_t *cbs, const char *path, const char *label, unsigned type, size_t idx, const char *elem0, const char *elem1, diff --git a/menu/cbs/menu_cbs_deferred_push.c b/menu/cbs/menu_cbs_deferred_push.c index 817fda4c1f..cd45aa4594 100644 --- a/menu/cbs/menu_cbs_deferred_push.c +++ b/menu/cbs/menu_cbs_deferred_push.c @@ -508,13 +508,6 @@ static int deferred_push_history_list(menu_displaylist_info_t *info) return deferred_push_dlist(info, DISPLAYLIST_HISTORY); } -int deferred_push_content_list(void *data, void *userdata, const char *path, - const char *label, unsigned type) -{ - file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0); - return action_refresh_default((file_list_t*)data, selection_buf); -} - static int deferred_push_database_manager_list(menu_displaylist_info_t *info) { return deferred_push_dlist(info, DISPLAYLIST_DATABASES); diff --git a/menu/menu_cbs.h b/menu/menu_cbs.h index c2c835eb74..d48142412b 100644 --- a/menu/menu_cbs.h +++ b/menu/menu_cbs.h @@ -190,9 +190,6 @@ int menu_cbs_init_bind_title(menu_file_list_cbs_t *cbs, const char *elem0, const char *elem1, uint32_t label_hash, uint32_t menu_label_hash); -int deferred_push_content_list(void *data, void *userdata, - const char *path, const char *label, unsigned type); - #ifdef HAVE_LIBRETRODB int action_scan_directory(const char *path, const char *label, unsigned type, size_t idx);