chiark / gitweb /
util: optimize strstrip() a bit
[elogind.git] / src / logind.h
index 309541415d2336c927f5ab8619b245cd7a5bd69c..fd668a2c19cc7863dd0260afb326e3c731852239 100644 (file)
 #include "hashmap.h"
 #include "cgroup-util.h"
 
-/* TODO:
- *
- * spawn user systemd
- * direct client API
- * add configuration file
- * D-Bus method: AttachDevices(seat, devices[]);
- * use named pipes to detect when a session dies
- * verify access to SetIdleHint
- * drop redundant udev_device_get_is_initialized() use as soon as libudev is fixed
- * properly escape/remove : and . from seat names in udev rules
- * use device_has_tag() as soon as it is available
- * trigger based on libudev if available
- * enumerate recursively with libudev when triggering
- * make sure IMPORT{parent}="ID_SEAT" works between usb hub and sound card
- *
- * non-local X11 server
- * reboot/shutdown halt management
- */
-
 typedef struct Manager Manager;
 
 #include "logind-device.h"
@@ -85,7 +66,7 @@ struct Manager {
         Seat *vtconsole;
 
         char *cgroup_path;
-        char **controllers;
+        char **controllers, **reset_controllers;
 
         char **kill_only_users, **kill_exclude_users;
 
@@ -94,7 +75,7 @@ struct Manager {
         unsigned long session_counter;
 
         Hashmap *cgroups;
-        Hashmap *pipe_fds;
+        Hashmap *fifo_fds;
 };
 
 enum {
@@ -102,7 +83,7 @@ enum {
         FD_VCSA_UDEV,
         FD_CONSOLE,
         FD_BUS,
-        FD_PIPE_BASE
+        FD_FIFO_BASE
 };
 
 Manager *manager_new(void);
@@ -131,7 +112,7 @@ int manager_spawn_autovt(Manager *m, int vtnr);
 
 void manager_cgroup_notify_empty(Manager *m, const char *cgroup);
 
-void manager_gc(Manager *m);
+void manager_gc(Manager *m, bool drop_not_started);
 
 int manager_get_idle_hint(Manager *m, dual_timestamp *t);
 
@@ -141,4 +122,7 @@ DBusHandlerResult bus_message_filter(DBusConnection *c, DBusMessage *message, vo
 
 int manager_send_changed(Manager *manager, const char *properties);
 
+/* gperf lookup function */
+const struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length);
+
 #endif