summaryrefslogtreecommitdiff
path: root/manager.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-29 06:04:08 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-29 06:04:08 +0100
commitef734fd6c2ec4e5602bbfe2a0d26dcf39c14d2bf (patch)
tree4fb6422913f35cd3fb925aaaae0b56c78c30e075 /manager.h
parent38a4d4f089df02ff79b5f560f2b11631e0a6a4f9 (diff)
watch mount status file
Diffstat (limited to 'manager.h')
-rw-r--r--manager.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/manager.h b/manager.h
index 793a55fb45..88b8509cfe 100644
--- a/manager.h
+++ b/manager.h
@@ -13,9 +13,10 @@ typedef struct Watch Watch;
enum WatchType {
WATCH_INVALID,
- WATCH_SIGNAL_FD,
+ WATCH_SIGNAL,
WATCH_FD,
- WATCH_TIMER
+ WATCH_TIMER,
+ WATCH_MOUNT
};
struct Watch {
@@ -48,6 +49,10 @@ struct Manager {
Hashmap *units; /* name string => Unit object n:1 */
Hashmap *jobs; /* job id => Job object 1:1 */
+ /* To make it easy to iterate through the units of a specific
+ * type we maintain a per type linked list */
+ LIST_HEAD(Meta, units_per_type[_UNIT_TYPE_MAX]);
+
/* Units that need to be loaded */
LIST_HEAD(Meta, load_queue); /* this is actually more a stack than a queue, but uh. */
@@ -67,7 +72,12 @@ struct Manager {
Watch signal_watch;
+ /* Data specific to the device subsystem */
struct udev* udev;
+
+ /* Data specific to the mount subsystem */
+ FILE *proc_self_mountinfo;
+ Watch mount_watch;
};
Manager* manager_new(void);