2 * ROX-Filer, filer for the ROX desktop project
3 * By Thomas Leonard, <tal197@users.sourceforge.net>.
11 extern MIME_type
*text_plain
; /* Often used as a default type */
12 extern MIME_type
*inode_directory
;
13 extern MIME_type
*inode_mountpoint
;
14 extern MIME_type
*inode_pipe
;
15 extern MIME_type
*inode_socket
;
16 extern MIME_type
*inode_block_dev
;
17 extern MIME_type
*inode_char_dev
;
18 extern MIME_type
*application_executable
;
19 extern MIME_type
*inode_unknown
;
20 extern MIME_type
*inode_door
;
26 MaskedPixmap
*image
; /* NULL => not loaded yet */
27 time_t image_time
; /* When we loaded the image */
29 /* Private: use mime_type_comment() instead */
30 char *comment
; /* Name in local language */
35 const char *basetype_name(DirItem
*item
);
36 MIME_type
*type_get_type(const guchar
*path
);
38 MIME_type
*type_from_path(const char *path
);
39 MIME_type
*mime_type_from_contents(const char *path
);
40 gboolean
type_open(const char *path
, MIME_type
*type
);
41 MaskedPixmap
*type_to_icon(MIME_type
*type
);
42 GdkAtom
type_to_atom(MIME_type
*type
);
43 MIME_type
*mime_type_from_base_type(int base_type
);
44 int mode_to_base_type(int st_mode
);
45 void type_set_handler_dialog(MIME_type
*type
);
46 gboolean
can_set_run_action(DirItem
*item
);
47 gchar
*describe_current_command(MIME_type
*type
);
48 GdkColor
*type_get_colour(DirItem
*item
, GdkColor
*normal
);
49 void reread_mime_files(void);
50 extern const char *mime_type_comment(MIME_type
*type
);
51 extern MIME_type
*mime_type_lookup(const char *type
);
52 extern GList
*mime_type_name_list(void);