diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-24 20:41:56 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-24 20:41:56 +0200 |
commit | 1713813de365486617ab87899f950e9b6ec928ef (patch) | |
tree | f2c7c33d8b039935dbaea697f2432bdff601d370 /src/logind.h | |
parent | dec15e9263cadae02f4f51463860248af40475d0 (diff) |
logind: remove a session when its cgroup is gone
Diffstat (limited to 'src/logind.h')
-rw-r--r-- | src/logind.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/logind.h b/src/logind.h index 22eab55625..d8674e7511 100644 --- a/src/logind.h +++ b/src/logind.h @@ -37,7 +37,7 @@ * recreate VTs when disallocated * spawn user systemd * direct client API - * subscribe to cgroup changes, fd HUP + * subscribe to fd HUP * D-Bus method: AttachDevice(seat, device); * D-Bus method: PermitLinger(user, bool b); * @@ -84,6 +84,8 @@ struct Manager { bool kill_user_processes; unsigned long session_counter; + + Hashmap *cgroups; }; Manager *manager_new(void); @@ -109,6 +111,8 @@ int manager_startup(Manager *m); int manager_run(Manager *m); int manager_spawn_autovt(Manager *m, int vtnr); +void manager_cgroup_notify_empty(Manager *m, const char *cgroup); + void manager_gc(Manager *m); int manager_get_idle_hint(Manager *m, dual_timestamp *t); @@ -117,6 +121,8 @@ bool x11_display_is_local(const char *display); extern const DBusObjectPathVTable bus_manager_vtable; +DBusHandlerResult bus_message_filter(DBusConnection *c, DBusMessage *message, void *userdata); + int manager_send_changed(Manager *manager, const char *properties); #endif |