1 /* 2 * Copyright (C) 2000-2009 the xine project 3 * 4 * This file is part of xine, a unix video player. 5 * 6 * xine is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * xine is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 19 * 20 */ 21 22 #ifndef __FILE_BROWSER_H__ 23 #define __FILE_BROWSER_H__ 24 25 typedef struct filebrowser_s filebrowser_t; 26 27 typedef void (*filebrowser_callback_t)(filebrowser_t *); 28 typedef int (*hidden_file_toggle_t)(int action, int value); 29 30 typedef struct { 31 char *label; 32 filebrowser_callback_t callback; 33 int need_a_file; 34 } filebrowser_callback_button_t; 35 36 37 filebrowser_t *create_filebrowser(char *, char *, hidden_file_toggle_t, 38 filebrowser_callback_button_t *, 39 filebrowser_callback_button_t *, 40 filebrowser_callback_button_t *); 41 42 void filebrowser_raise_window(filebrowser_t *); 43 void filebrowser_end(filebrowser_t *); 44 char *filebrowser_get_current_dir(filebrowser_t *); 45 char *filebrowser_get_current_filename(filebrowser_t *); 46 char *filebrowser_get_full_filename(filebrowser_t *); 47 char **filebrowser_get_all_files(filebrowser_t *); 48 49 50 #endif 51