blob: 22668fd72599c12a1898e6930fb6b1e49d00dd7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id:
*
* Copyright (C) 2002 Henrik Backe
*
* All files in this archive are subject to the GNU General Public License.
* See the file COPYING in the source tree root for full license agreement.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#ifndef _FILEHANDLE_H_
#define _FILEHANDLE_H_
#include <stdbool.h>
#include <tree.h>
#include <menu.h>
int filetype_get_attr(char*);
#ifdef HAVE_LCD_BITMAP
char* filetype_get_icon(int);
#else
int filetype_get_icon(int);
#endif
char* filetype_get_plugin(struct entry*);
void filetype_init(void);
bool filetype_supported(int);
int filetype_load_menu(struct menu_item*, int);
int filetype_load_plugin(char*,char*);
struct file_type {
#ifdef HAVE_LCD_BITMAP
unsigned char* icon; /* the icon which shall be used for it, NULL if unknown */
#else
int icon; /* the icon which shall be used for it, -1 if unknown */
#endif
char* plugin; /* Which plugin to use, NULL if unknown */
bool no_extension;
};
struct ext_type {
char* extension; /* extension for which the file type is recognized */
struct file_type* type;
};
#endif
|