1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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_
25 /* init the filetypes structs.
26 uses audio buffer for storage, so call early in init... */
27 void filetype_init(void);
28 void read_viewer_theme_file(void);
30 /* Return the attribute (TREE_ATTR_*) of the file */
31 int filetype_get_attr(const char* file
);
32 int filetype_get_icon(int attr
);
33 /* return the plugin filename associated with the file */
34 char* filetype_get_plugin(const struct entry
* file
);
36 /* returns true if the attr is supported */
37 bool filetype_supported(int attr
);
39 /* List avialable viewers */
40 int filetype_list_viewers(const char* current_file
);
42 /* start a plugin with file as the argument (called from onplay.c) */
43 int filetype_load_plugin(const char* plugin
, char* file
);