aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
parentecore-xcb: Add implementation for missing API function (diff)
downloadefl-4d048e5725e40e9f379a70cfbcd7435559bf7539.tar.gz
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')
-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 @@
*
* ecore_x_randr_edid_display_ascii_get
* ecore_x_randr_edid_display_serial_get
- * ecore_x_randr_edid_manufacturer_serial_number_get
- * ecore_x_randr_edid_dpms_available_get
* ecore_x_randr_edid_dpms_standby_available_get
* ecore_x_randr_edid_dpms_suspend_available_get
* ecore_x_randr_edid_dpms_off_available_get
@@ -3085,6 +3083,26 @@ ecore_x_randr_edid_manufacturer_serial_number_get(unsigned char *edid, unsigned
return ECORE_X_RANDR_EDID_UNKNOWN_VALUE;
}
+EAPI Eina_Bool
+ecore_x_randr_edid_dpms_available_get(unsigned char *edid, unsigned long edid_length)
+{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ CHECK_XCB_CONN;
+
+#ifdef ECORE_XCB_RANDR
+ int version = 0;
+
+ version = ecore_x_randr_edid_version_get(edid, edid_length);
+ if (version < RANDR_EDID_VERSION_13) return EINA_FALSE;
+
+ return !!(edid[0x18] & 0xE0);
+#else
+ return EINA_FALSE;
+#endif
+}
+
+
+
/* local functions */
static Eina_Bool
_ecore_xcb_randr_output_validate(Ecore_X_Window root,