Rename menu_list_get_last to menu_entries_get_last

This commit is contained in:
twinaphex 2015-10-19 06:47:45 +02:00
parent a6bec4f10b
commit 69b95728bf
3 changed files with 7 additions and 7 deletions

View File

@ -912,7 +912,7 @@ static int generic_action_ok_file_load(const char *path,
(void)id;
menu_list_get_last(menu_stack, &menu_path, NULL, NULL, NULL);
menu_entries_get_last(menu_stack, &menu_path, NULL, NULL, NULL);
fill_pathname_join(new_path, menu_path, path,
sizeof(new_path));
@ -962,7 +962,7 @@ static int action_ok_file_load(const char *path,
menu_handle_t *menu = menu_driver_get_ptr();
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr();
menu_list_get_last(menu_stack, &menu_path, &menu_label, NULL, NULL);
menu_entries_get_last(menu_stack, &menu_path, &menu_label, NULL, NULL);
strlcpy(menu_path_new, menu_path, sizeof(menu_path_new));

View File

@ -106,7 +106,7 @@ void menu_entries_get_at_offset(const file_list_t *list, size_t idx,
file_list_get_alt_at_offset(list, idx, alt);
}
void menu_list_get_last(const file_list_t *list,
void menu_entries_get_last(const file_list_t *list,
const char **path, const char **label,
unsigned *file_type, size_t *entry_idx)
{
@ -174,7 +174,7 @@ static void menu_list_flush_stack(menu_list_t *list,
return;
menu_entries_set_refresh(false);
menu_list_get_last(list->menu_stack,
menu_entries_get_last(list->menu_stack,
&path, &label, &type, &entry_idx);
while (menu_list_flush_stack_type(
@ -189,7 +189,7 @@ static void menu_list_flush_stack(menu_list_t *list,
menu_navigation_ctl(MENU_NAVIGATION_CTL_SET_SELECTION, &new_selection_ptr);
menu_list_get_last(list->menu_stack,
menu_entries_get_last(list->menu_stack,
&path, &label, &type, &entry_idx);
}
}
@ -611,7 +611,7 @@ void menu_entries_get_last_stack(const char **path, const char **label,
{
menu_list_t *menu_list = menu_list_get_ptr();
if (menu_list)
menu_list_get_last(menu_list->menu_stack, path, label, file_type, entry_idx);
menu_entries_get_last(menu_list->menu_stack, path, label, file_type, entry_idx);
}
void menu_entries_flush_stack(const char *needle, unsigned final_type)

View File

@ -159,7 +159,7 @@ void *menu_list_get_userdata_at_offset(const file_list_t *list, size_t idx);
menu_file_list_cbs_t *menu_list_get_actiondata_at_offset(const file_list_t *list, size_t idx);
void menu_list_get_last(const file_list_t *list,
void menu_entries_get_last(const file_list_t *list,
const char **path, const char **label,
unsigned *file_type, size_t *entry_idx);