[systemd-devel] [PATCH] logind: export *IgnoreInhibited settings to DBus

Mantas Mikulėnas grawity at gmail.com
Sat Apr 5 05:38:07 PDT 2014


---
 src/login/logind-dbus.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 0af6714..0e58955 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -1922,6 +1922,10 @@ const sd_bus_vtable manager_vtable[] = {
         SD_BUS_PROPERTY("HandleSuspendKey", "s", property_get_handle_action, offsetof(Manager, handle_suspend_key), SD_BUS_VTABLE_PROPERTY_CONST),
         SD_BUS_PROPERTY("HandleHibernateKey", "s", property_get_handle_action, offsetof(Manager, handle_hibernate_key), SD_BUS_VTABLE_PROPERTY_CONST),
         SD_BUS_PROPERTY("HandleLidSwitch", "s", property_get_handle_action, offsetof(Manager, handle_lid_switch), SD_BUS_VTABLE_PROPERTY_CONST),
+        SD_BUS_PROPERTY("PowerKeyIgnoreInhibited", "b", NULL, offsetof(Manager, power_key_ignore_inhibited), SD_BUS_VTABLE_PROPERTY_CONST),
+        SD_BUS_PROPERTY("SuspendKeyIgnoreInhibited", "b", NULL, offsetof(Manager, suspend_key_ignore_inhibited), SD_BUS_VTABLE_PROPERTY_CONST),
+        SD_BUS_PROPERTY("HibernateKeyIgnoreInhibited", "b", NULL, offsetof(Manager, hibernate_key_ignore_inhibited), SD_BUS_VTABLE_PROPERTY_CONST),
+        SD_BUS_PROPERTY("LidSwitchIgnoreInhibited", "b", NULL, offsetof(Manager, lid_switch_ignore_inhibited), SD_BUS_VTABLE_PROPERTY_CONST),
         SD_BUS_PROPERTY("IdleAction", "s", property_get_handle_action, offsetof(Manager, idle_action), SD_BUS_VTABLE_PROPERTY_CONST),
         SD_BUS_PROPERTY("IdleActionUSec", "t", NULL, offsetof(Manager, idle_action_usec), SD_BUS_VTABLE_PROPERTY_CONST),
         SD_BUS_PROPERTY("PreparingForShutdown", "b", property_get_preparing, 0, 0),
-- 
1.9.1.377.g96e67c8



More information about the systemd-devel mailing list