From 2fcb8b8b8dcc1c713f1f87e02d7f420b9feb2e7f Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Tue, 28 May 2019 19:07:06 +0900 Subject: [PATCH] e_output: add e_output_dpms_async_check function check supporting async dpms set or not Change-Id: I4b8c496acf0604ae659c48b0e06986a028841948 Signed-off-by: Junkyeong Kim --- src/bin/e_output.c | 8 ++++++++ src/bin/e_output.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/bin/e_output.c b/src/bin/e_output.c index 3225cf2..2875855 100644 --- a/src/bin/e_output.c +++ b/src/bin/e_output.c @@ -2892,6 +2892,14 @@ e_output_dpms_get(E_Output *output) return output->dpms; } +EINTERN Eina_Bool +e_output_dpms_async_check(E_Output *output) +{ + EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE); + + return output->dpms_async; +} + EINTERN void e_output_size_get(E_Output *output, int *w, int *h) { diff --git a/src/bin/e_output.h b/src/bin/e_output.h index 53e7275..422e74f 100644 --- a/src/bin/e_output.h +++ b/src/bin/e_output.h @@ -180,6 +180,7 @@ EINTERN E_Output_Mode * e_output_current_mode_get(E_Output *output); EINTERN Eina_Bool e_output_connected(E_Output *output); E_API Eina_Bool e_output_dpms_set(E_Output *output, E_OUTPUT_DPMS val); E_API E_OUTPUT_DPMS e_output_dpms_get(E_Output *output); +EINTERN Eina_Bool e_output_dpms_async_check(E_Output *output); EINTERN void e_output_size_get(E_Output *output, int *w, int *h); EINTERN E_Plane * e_output_default_fb_target_get(E_Output *output); EINTERN Eina_Bool e_output_fake_config_set(E_Output *output, int w, int h); -- 2.7.4