chiark / gitweb /
first attempt in implementinging execution logic
[elogind.git] / mount.h
diff --git a/mount.h b/mount.h
new file mode 100644 (file)
index 0000000..b437b2e
--- /dev/null
+++ b/mount.h
@@ -0,0 +1,28 @@
+/*-*- Mode: C; c-basic-offset: 8 -*-*/
+
+#ifndef foomounthfoo
+#define foomounthfoo
+
+typedef struct Mount Mount;
+
+#include "name.h"
+
+typedef enum MountState {
+        MOUNT_DEAD,
+        MOUNT_MOUNTING,
+        MOUNT_MOUNTED,
+        MOUNT_UNMOUNTING,
+        MOUNT_MAINTAINANCE,
+        _MOUNT_STATE_MAX
+} MountState;
+
+struct Mount {
+        Meta meta;
+
+        MountState state;
+        char *path;
+};
+
+extern const NameVTable mount_vtable;
+
+#endif