r284: Moved most of the icons from pixmaps to MIME-icons (outside ROX-Filer).
[rox-filer.git] / ROX-Filer / src / type.h
blob16cde8f6aae3fa73d074c62935b7a5e1d1ceedbc
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@ecs.soton.ac.uk>.
6 */
8 #ifndef _TYPE_H
9 #define _TYPE_H
11 typedef struct _MIME_type MIME_type;
12 extern MIME_type text_plain; /* Often used as a default type */
13 extern MIME_type special_directory;
14 extern MIME_type special_pipe;
15 extern MIME_type special_socket;
16 extern MIME_type special_block_dev;
17 extern MIME_type special_char_dev;
18 extern MIME_type special_unknown;
20 #include "pixmaps.h"
21 #include "filer.h"
23 struct _MIME_type
25 char *media_type;
26 char *subtype;
27 MaskedPixmap *image; /* NULL => not loaded yet */
28 time_t image_time; /* When we loaded the image */
31 /* Prototypes */
32 void type_init();
33 char *basetype_name(DirItem *item);
35 MIME_type *type_from_path(char *path);
36 gboolean type_open(char *path, MIME_type *type);
37 MaskedPixmap *type_to_icon(MIME_type *type);
38 GdkAtom type_to_atom(MIME_type *type);
39 char *type_ask_which_action(guchar *media_type, guchar *subtype);
40 MIME_type *mime_type_from_base_type(int base_type);
42 #endif /* _TYPE_H */