Ooops. Forgot to add Philippe Latulippe to the credits file.
[Rockbox.git] / apps / filetypes.h
blobd2556c1d954122f330f68b809e011ce05b94da5c
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id:
10 * Copyright (C) 2002 Henrik Backe
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef _FILEHANDLE_H_
20 #define _FILEHANDLE_H_
22 #include <stdbool.h>
23 #include <tree.h>
24 #include <menu.h>
25 /* init the filetypes structs.
26 uses audio buffer for storage, so call early in init... */
27 void filetype_init(void);
29 /* Return the attribute (TREE_ATTR_*) of the file */
30 int filetype_get_attr(const char* file);
31 ICON filetype_get_icon(int attr);
32 /* return the plugin filename associated with the file */
33 char* filetype_get_plugin(const struct entry* file);
35 /* returns true if the attr is supported */
36 bool filetype_supported(int attr);
38 /* List avialable viewers */
39 int filetype_list_viewers(const char* current_file);
41 /* start a plugin with file as the argument (called from onplay.c) */
42 int filetype_load_plugin(const char* plugin, char* file);
45 #endif