chiark / gitweb /
logind: check whether newly created session is active
[elogind.git] / src / logind.h
index d8674e75116a5fed8d77bba1e9c06eb8f678bb30..5c513b4021028c2366e3f6d490c61ea428091114 100644 (file)
@@ -37,9 +37,9 @@
  * recreate VTs when disallocated
  * spawn user systemd
  * direct client API
- * subscribe to fd HUP
- * D-Bus method: AttachDevice(seat, device);
- * D-Bus method: PermitLinger(user, bool b);
+ * D-Bus method: AttachDevices(seat, devices[]);
+ * D-Bus method: SetLinger(user, bool b);
+ * kill cgroup immediately when fd is EOF.
  *
  * non-local X11 server
  * reboot/shutdown halt management
@@ -86,6 +86,14 @@ struct Manager {
         unsigned long session_counter;
 
         Hashmap *cgroups;
+        Hashmap *pipe_fds;
+};
+
+enum {
+        FD_UDEV,
+        FD_CONSOLE,
+        FD_BUS,
+        FD_PIPE_BASE
 };
 
 Manager *manager_new(void);