51 lines
1.6 KiB
C
Raw Normal View History

2012-04-21 23:13:50 +02:00
/* RetroArch - A frontend for libretro.
2012-01-08 02:30:32 +01:00
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
*
2012-04-21 23:13:50 +02:00
* RetroArch is free software: you can redistribute it and/or modify it under the terms
2012-01-08 02:30:32 +01:00
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
2012-04-21 23:13:50 +02:00
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
2012-01-08 02:30:32 +01:00
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
2012-04-21 23:31:57 +02:00
* You should have received a copy of the GNU General Public License along with RetroArch.
2012-01-08 02:30:32 +01:00
* If not, see <http://www.gnu.org/licenses/>.
*/
2012-05-06 04:04:33 +02:00
#ifndef RGUI_LIST_H__
#define RGUI_LIST_H__
2012-01-08 00:57:44 +01:00
2012-05-06 04:04:33 +02:00
#include "rgui.h"
2012-01-08 00:57:44 +01:00
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
2012-05-06 04:04:33 +02:00
typedef struct rgui_list rgui_list_t;
2012-01-08 00:57:44 +01:00
2012-05-06 04:04:33 +02:00
rgui_list_t *rgui_list_new(void);
void rgui_list_free(rgui_list_t *list);
2012-01-08 00:57:44 +01:00
void rgui_list_push(rgui_list_t *list,
const char *path, rgui_file_type_t type, size_t directory_ptr);
2012-05-06 04:04:33 +02:00
void rgui_list_pop(rgui_list_t *list);
void rgui_list_clear(rgui_list_t *list);
2012-01-08 00:57:44 +01:00
2012-05-06 04:04:33 +02:00
bool rgui_list_empty(const rgui_list_t *list);
void rgui_list_back(const rgui_list_t *list,
const char **path, rgui_file_type_t *type, size_t *directory_ptr);
2012-01-08 00:57:44 +01:00
2012-05-06 04:04:33 +02:00
size_t rgui_list_size(const rgui_list_t *list);
void rgui_list_at(const rgui_list_t *list, size_t index,
const char **path, rgui_file_type_t *type, size_t *directory_ptr);
2012-01-08 00:57:44 +01:00
2012-05-06 04:04:33 +02:00
void rgui_list_sort(rgui_list_t *list);
2012-01-08 00:57:44 +01:00
#ifdef __cplusplus
}
#endif
#endif