summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:23:22 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:23:22 -0400
commit4d048e5725e40e9f379a70cfbcd7435559bf7539 (patch)
tree3c1a06784ef6c0897a490cc507cf27f8e0e69bbe /src/lib/ecore_x
parent84149511daebb9795409b5809390a41adf32ba7c (diff)
ecore-xcb: Add implementation for missing API function
This patch adds an xcb implementation for missing function ecore_x_randr_edid_dpms_available_get @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_x')
-rw-r--r--src/lib/ecore_x/xcb/ecore_xcb_randr.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/lib/ecore_x/xcb/ecore_xcb_randr.c b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
index 2081e31b3e..58f1b888c9 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_randr.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
@@ -2,8 +2,6 @@
2 * 2 *
3 * ecore_x_randr_edid_display_ascii_get 3 * ecore_x_randr_edid_display_ascii_get
4 * ecore_x_randr_edid_display_serial_get 4 * ecore_x_randr_edid_display_serial_get
5 * ecore_x_randr_edid_manufacturer_serial_number_get
6 * ecore_x_randr_edid_dpms_available_get
7 * ecore_x_randr_edid_dpms_standby_available_get 5 * ecore_x_randr_edid_dpms_standby_available_get
8 * ecore_x_randr_edid_dpms_suspend_available_get 6 * ecore_x_randr_edid_dpms_suspend_available_get
9 * ecore_x_randr_edid_dpms_off_available_get 7 * ecore_x_randr_edid_dpms_off_available_get
@@ -3085,6 +3083,26 @@ ecore_x_randr_edid_manufacturer_serial_number_get(unsigned char *edid, unsigned
3085 return ECORE_X_RANDR_EDID_UNKNOWN_VALUE; 3083 return ECORE_X_RANDR_EDID_UNKNOWN_VALUE;
3086} 3084}
3087 3085
3086EAPI Eina_Bool
3087ecore_x_randr_edid_dpms_available_get(unsigned char *edid, unsigned long edid_length)
3088{
3089 LOGFN(__FILE__, __LINE__, __FUNCTION__);
3090 CHECK_XCB_CONN;
3091
3092#ifdef ECORE_XCB_RANDR
3093 int version = 0;
3094
3095 version = ecore_x_randr_edid_version_get(edid, edid_length);
3096 if (version < RANDR_EDID_VERSION_13) return EINA_FALSE;
3097
3098 return !!(edid[0x18] & 0xE0);
3099#else
3100 return EINA_FALSE;
3101#endif
3102}
3103
3104
3105
3088/* local functions */ 3106/* local functions */
3089static Eina_Bool 3107static Eina_Bool
3090_ecore_xcb_randr_output_validate(Ecore_X_Window root, 3108_ecore_xcb_randr_output_validate(Ecore_X_Window root,