eudev/mount.h

40 lines
753 B
C
Raw Normal View History

/*-*- Mode: C; c-basic-offset: 8 -*-*/
#ifndef foomounthfoo
#define foomounthfoo
typedef struct Mount Mount;
2010-01-27 03:39:06 +07:00
#include "unit.h"
typedef enum MountState {
MOUNT_DEAD,
MOUNT_MOUNTING,
MOUNT_MOUNTED,
MOUNT_UNMOUNTING,
MOUNT_MAINTAINANCE,
_MOUNT_STATE_MAX
} MountState;
struct Mount {
Meta meta;
MountState state;
2010-01-29 08:07:41 +07:00
char *what, *where;
2010-01-29 09:18:09 +07:00
bool from_etc_fstab:1;
bool from_proc_self_mountinfo:1;
2010-01-29 12:04:08 +07:00
/* Used while looking for mount points that vanished or got
* added from/to /proc/self/mountinfo */
bool still_exists:1;
bool just_created:1;
};
2010-01-27 03:39:06 +07:00
extern const UnitVTable mount_vtable;
2010-01-29 12:04:08 +07:00
void mount_fd_event(Manager *m, int events);
#endif