Clear some compiler warnings by commenting some functions, adding others to headers.
[blender.git] / source / blender / editors / space_file / filelist.h
1 /**
2  * $Id$
3  *
4  * ***** BEGIN GPL LICENSE BLOCK *****
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version. The Blender
10  * Foundation also sells licenses for use in proprietary software under
11  * the Blender License.  See http://www.blender.org/BL/ for information
12  * about this.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22  *
23  * The Original Code is Copyright (C) 2007 Blender Foundation.
24  * All rights reserved.
25  *
26  * The Original Code is: all of this file.
27  *
28  * Contributor(s): none yet.
29  *
30  * ***** END GPL LICENSE BLOCK *****
31  */
32
33 #ifndef FILELIST_H
34 #define FILELIST_H
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 struct FileList;
41 struct FolderList;
42 struct direntry;
43 struct BlendHandle;
44 struct Scene;
45 struct Main;
46 struct rcti;
47 struct ReportList;
48
49 struct FileList *       filelist_new(short type);
50 void                            filelist_init_icons(void);
51 void                            filelist_free_icons(void);
52 int                                     filelist_find(struct FileList* filelist, char *file);
53 void                            filelist_free(struct FileList* filelist);
54 void                            filelist_sort(struct FileList* filelist, short sort);
55 int                                     filelist_numfiles(struct FileList* filelist);
56 const char *            filelist_dir(struct FileList* filelist);
57 void                            filelist_setdir(struct FileList* filelist, const char *dir);
58 struct direntry *       filelist_file(struct FileList* filelist, int index);
59 void                            filelist_hidedot(struct FileList* filelist, short hide);
60 void                            filelist_setfilter(struct FileList* filelist, unsigned int filter);
61 void                            filelist_setfilter_types(struct FileList* filelist, const char *filter_glob);
62 void                            filelist_filter(struct FileList* filelist);
63 void                            filelist_swapselect(struct FileList* filelist);
64 void                            filelist_imgsize(struct FileList* filelist, short w, short h);
65 struct ImBuf *          filelist_getimage(struct FileList* filelist, int index);
66 struct ImBuf *          filelist_geticon(struct FileList* filelist, int index);
67 short                           filelist_changed(struct FileList* filelist);
68 void                            filelist_readdir(struct FileList* filelist);
69
70 int                                     filelist_empty(struct FileList* filelist);
71 void                            filelist_parent(struct FileList* filelist);
72
73 struct BlendHandle *filelist_lib(struct FileList* filelist);
74 int                                     filelist_islibrary (struct FileList* filelist, char* dir, char* group);
75 void                            filelist_from_main(struct FileList* filelist);
76 void                            filelist_from_library(struct FileList* filelist);
77 void                            filelist_freelib(struct FileList* filelist);
78 void                            filelist_hideparent(struct FileList* filelist, short hide);
79
80 struct ListBase *       folderlist_new(void);
81 void                            folderlist_free(struct ListBase* folderlist);
82 struct ListBase *       folderlist_duplicate(ListBase* folderlist);
83 void                            folderlist_popdir(struct ListBase* folderlist, char *dir);
84 void                            folderlist_pushdir(struct ListBase* folderlist, const char *dir);
85 int                                     folderlist_clear_next(struct SpaceFile* sfile);
86
87 void                            thumbnails_stop(struct FileList* filelist, const struct bContext* C);
88 void                            thumbnails_start(struct FileList* filelist, const struct bContext* C);
89 int                                     thumbnails_running(struct FileList* filelist, const struct bContext* C);
90
91 #ifdef __cplusplus
92 }
93 #endif
94
95 #endif
96