chiark / gitweb /
add missing header files
[elogind.git] / manager.h
index 793a55fb454190d1cb2879a35b9bb60eaa0481bb..723e42dd1b065a7cb0c303448e0ff19311d54ec8 100644 (file)
--- a/manager.h
+++ b/manager.h
@@ -13,9 +13,11 @@ typedef struct Watch Watch;
 
 enum WatchType {
         WATCH_INVALID,
-        WATCH_SIGNAL_FD,
+        WATCH_SIGNAL,
         WATCH_FD,
-        WATCH_TIMER
+        WATCH_TIMER,
+        WATCH_MOUNT,
+        WATCH_UDEV
 };
 
 struct Watch {
@@ -48,6 +50,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 +73,14 @@ struct Manager {
 
         Watch signal_watch;
 
+        /* Data specific to the device subsystem */
         struct udev* udev;
+        struct udev_monitor* udev_monitor;
+        Watch udev_watch;
+
+        /* Data specific to the mount subsystem */
+        FILE *proc_self_mountinfo;
+        Watch mount_watch;
 };
 
 Manager* manager_new(void);