/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2013 - Hans-Kristian Arntzen * Copyright (C) 2011-2013 - Daniel De Matteis * * RetroArch is free software: you can redistribute it and/or modify it under the terms * 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. * * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with RetroArch. * If not, see . */ #ifndef FILEBROWSER_H_ #define FILEBROWSER_H_ #include "../../general.h" typedef struct { size_t ptr; char directory_path[PATH_MAX]; char extensions[PATH_MAX]; char root_dir[PATH_MAX]; char path[PATH_MAX]; } filebrowser_dir_type_t; typedef struct { struct string_list *list; filebrowser_dir_type_t current_dir; filebrowser_dir_type_t prev_dir; } filebrowser_t; void filebrowser_set_root_and_ext(void *data, const char *ext, const char *root_dir); bool filebrowser_iterate(void *data, unsigned action); void filebrowser_free(void *data); bool filebrowser_is_current_entry_dir(void *data); bool filebrowser_reset_current_dir(void *data); #endif /* FILEBROWSER_H_ */