Create menu_list_get_last and menu_list_get_last_stack

This commit is contained in:
twinaphex 2014-10-17 22:41:20 +02:00
parent 25efe98704
commit 43d330fa47
2 changed files with 24 additions and 0 deletions

View File

@ -53,6 +53,22 @@ size_t menu_list_get_size(void)
return file_list_get_size(driver.menu->selection_buf);
}
void menu_list_get_last(const file_list_t *list,
const char **path, const char **label,
unsigned *file_type)
{
if (list)
file_list_get_last(list, path, label, file_type);
}
void menu_list_get_last_stack(const file_list_t *list,
const char **path, const char **label,
unsigned *file_type)
{
if (list)
file_list_get_last(list, path, label, file_type);
}
void menu_list_flush_stack(file_list_t *list,
unsigned final_type)
{

View File

@ -42,6 +42,14 @@ size_t menu_list_get_stack_size(void);
size_t menu_list_get_size(void);
void menu_list_get_last(const file_list_t *list,
const char **path, const char **label,
unsigned *file_type);
void menu_list_get_last_stack(const file_list_t *list,
const char **path, const char **label,
unsigned *file_type);
void menu_list_clear(file_list_t *list);
void menu_list_push(file_list_t *list,