chiark / gitweb /
add infrastructure for special units
[elogind.git] / manager.h
index 303201b74d910eceb2c841f0082c3da397b37458..0c923fcc792106ac6cd3e4f348c3fd9708314afe 100644 (file)
--- a/manager.h
+++ b/manager.h
@@ -30,6 +30,13 @@ struct Watch {
 #include "list.h"
 #include "set.h"
 
+typedef enum SpecialUnit {
+        SPECIAL_SYSLOG_SERVICE,
+        SPECIAL_DBUS_SERVICE,
+        SPECIAL_LOGGER_SOCKET,
+        _SPECIAL_UNIT_MAX
+} SpecialUnit;
+
 struct Manager {
         uint32_t current_job_id;
 
@@ -59,6 +66,8 @@ struct Manager {
         int epoll_fd;
 
         Watch signal_watch;
+
+        Unit *special_units[_SPECIAL_UNIT_MAX]; /* some special units */
 };
 
 Manager* manager_new(void);