r40: Changed MIME system slightly - now uses MIME-open, MIME-icons, etc.
[rox-filer.git] / ROX-Filer / src / type.h
blobf33647ca8a1a560b74fdb5f741b2ccbc2dde03c9
1 /* vi: set cindent:
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;
13 #include "pixmaps.h"
14 #include "filer.h"
16 struct _MIME_type
18 char *name;
19 MaskedPixmap *image; /* NULL => not loaded yet */
22 /* Prototypes */
23 void type_init();
24 char *basetype_name(FileItem *item);
26 MIME_type *type_from_path(char *path);
27 gboolean type_open(char *path, MIME_type *type);
28 MaskedPixmap *type_to_icon(GtkWidget *window, MIME_type *type);
30 #endif /* _TYPE_H */