static bool dpms_connected;
static GSource *wl_glib_data = NULL;
-static void dpms_handle_state(void *data, struct tizen_dpms_manager *tz_dpms, uint32_t mode, uint32_t error)
+static void dpms_handle_set_state(void *data, struct tizen_dpms_manager *tz_dpms, uint32_t mode, uint32_t error)
{
- _D("Dpms_state_cb - mode:%u, error:%u", mode, error);
+ _D("Dpms_state_cb set - mode:%u, error:%u", mode, error);
+ info->dpms_mode = mode;
+}
+
+static void dpms_handle_get_state(void *data, struct tizen_dpms_manager *tz_dpms, uint32_t mode, uint32_t error)
+{
+ _D("Dpms_state_cb get - mode:%u, error:%u", mode, error);
info->dpms_mode = mode;
}
}
static const struct tizen_dpms_manager_listener dpms_listener = {
- dpms_handle_state
+ dpms_handle_set_state,
+ dpms_handle_get_state
};
static void handle_global(void *data, struct wl_registry *registry,