Converted README to markdown
[rox-filer.git] / ROX-Filer / src / mount.h
blobc5b07f10daa28c8f5762794804a68834475e3392
1 /*
2 * ROX-Filer, filer for the ROX desktop project
3 * By Thomas Leonard, <tal197@users.sourceforge.net>.
4 */
6 #ifndef _MOUNT_H
7 #define _MOUNT_H
9 # if defined(HAVE_MNTENT_H) || defined(HAVE_SYS_UCRED_H) || \
10 defined(HAVE_SYS_MNTENT_H)
11 # define DO_MOUNT_POINTS
12 # endif
14 extern GHashTable *fstab_mounts;
16 typedef struct _MountPoint MountPoint;
18 struct _MountPoint
20 char *name; /* eg: /dev/hda4 */
21 char *dir; /* eg: /home */
24 /* Prototypes */
25 void mount_init(void);
26 void mount_update(gboolean force);
27 void mount_user_mount(const char *path);
28 gboolean mount_is_user_mounted(const gchar *path);
29 gboolean mount_is_mounted(const guchar *path, struct stat *info,
30 struct stat *parent);
31 gchar *mount_get_fs_size(const gchar *dir);
33 #endif /* _MOUNT_H */