From bacc082418a2a460f8e25ec6c7a0a797d40833c9 Mon Sep 17 00:00:00 2001 From: kabeer khan Date: Wed, 26 Nov 2014 09:07:46 -0500 Subject: [PATCH] ecore-drm: Sending Active to login1.Session Summary: Resolved TODO to set Active and State property of login1.Session Set Active = true and State = 'active' via eldbus_proxy_property_set @fix Signed-off-by: kabeer khan Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1696 --- src/lib/ecore_drm/ecore_drm_dbus.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_drm/ecore_drm_dbus.c b/src/lib/ecore_drm/ecore_drm_dbus.c index 83b48b3207..8a11f8f7e7 100644 --- a/src/lib/ecore_drm/ecore_drm_dbus.c +++ b/src/lib/ecore_drm/ecore_drm_dbus.c @@ -98,6 +98,15 @@ _cb_device_resumed(void *ctxt EINA_UNUSED, const Eldbus_Message *msg) } } +static void +_property_response_set(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED) +{ + const char *errname; + const char *errmsg; + if (eldbus_message_error_get(msg, &errname, &errmsg)) + ERR("Eldbus Message error %s - %s\n\n", errname, errmsg); +} + static void _cb_properties_changed(void *data EINA_UNUSED, Eldbus_Proxy *proxy EINA_UNUSED, void *event) { @@ -111,7 +120,8 @@ _cb_properties_changed(void *data EINA_UNUSED, Eldbus_Proxy *proxy EINA_UNUSED, if (!strcmp(ev->name, "Active")) { - /* TODO: Send 'Active' to login1.Session */ + eldbus_proxy_property_set(proxy, "Active", "b", (void *)EINA_TRUE, _property_response_set, NULL); + eldbus_proxy_property_set(proxy, "State", "s", &"active", _property_response_set, NULL); } } -- 2.34.1