r23: Added code to detect and display mount points in /etc/fstab.
[rox-filer.git] / ROX-Filer / src / filer.h
blob475ff96863d17191cee8c256cd47842aed2a54b9
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 _FILER_H
9 #define _FILER_H
11 #include <gtk/gtk.h>
12 #include <collection.h>
13 #include "pixmaps.h"
14 #include <sys/types.h>
15 #include <dirent.h>
17 typedef struct _FilerWindow FilerWindow;
18 typedef struct _FileItem FileItem;
20 enum
22 ITEM_FLAG_SYMLINK = 0x1, /* Is a symlink */
23 ITEM_FLAG_APPDIR = 0x2, /* Contains /AppInfo */
24 ITEM_FLAG_MOUNT_POINT = 0x4, /* Is in /etc/fstab */
27 struct _FilerWindow
29 GtkWidget *window;
30 char *path; /* pathname */
31 Collection *collection;
33 /* Scanning */
34 DIR *dir;
35 gint idle_scan_id; /* (only if dir != NULL) */
38 struct _FileItem
40 char *leafname;
42 int base_type; /* (regular file, dir, pipe, etc) */
43 int flags;
45 int text_width;
46 int pix_width;
47 MaskedPixmap *image;
50 extern FilerWindow *window_with_focus;
51 extern GHashTable *child_to_filer;
53 /* Prototypes */
54 void filer_init();
55 void filer_opendir(char *path);
56 void scan_dir(FilerWindow *filer_window);
58 #endif /* _FILER_H */