aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:24:42 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:34:59 -0400
commit25b0dced344133548d3e1a62766358eb9659d20f (patch)
tree34943a581379208578d7baa34c33ba6ab0463a1f /src
parentecore-xcb: Add implementation for missing API function (diff)
downloadefl-25b0dced344133548d3e1a62766358eb9659d20f.tar.gz
ecore-xcb: Add implementation for missing API function
This patch adds an xcb implementation for missing API function ecore_x_randr_edid_dpms_standby_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.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/lib/ecore_x/xcb/ecore_xcb_randr.c b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
index 58f1b888c9..ad50ddaab2 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_randr.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
@@ -2997,7 +2997,7 @@ ecore_x_randr_edid_info_has_valid_checksum(unsigned char *edid, unsigned long ed
if (edid_length < 128) return EINA_FALSE;
version = ecore_x_randr_edid_version_get(edid, edid_length);
- if (version < RANDR_EDID_VERSION_13) return EINA_FALSE;
+ if (version < ECORE_X_RANDR_EDID_VERSION_13) return EINA_FALSE;
for (i = 0; i < 128; i++)
sum += edid[i];
@@ -3059,7 +3059,7 @@ ecore_x_randr_edid_manufacturer_model_get(unsigned char *edid, unsigned long edi
(ecore_x_randr_edid_has_valid_header(edid, edid_length)))
return (int)(edid[0x0a] + (edid[0x0b] << 8));
#endif
- return ECORE_X_RANDR_EDID_UKNOWN_VALUE;
+ return ECORE_X_RANDR_EDID_UNKNOWN_VALUE;
}
EAPI int
@@ -3093,7 +3093,7 @@ ecore_x_randr_edid_dpms_available_get(unsigned char *edid, unsigned long edid_le
int version = 0;
version = ecore_x_randr_edid_version_get(edid, edid_length);
- if (version < RANDR_EDID_VERSION_13) return EINA_FALSE;
+ if (version < ECORE_X_RANDR_EDID_VERSION_13) return EINA_FALSE;
return !!(edid[0x18] & 0xE0);
#else
@@ -3101,7 +3101,22 @@ ecore_x_randr_edid_dpms_available_get(unsigned char *edid, unsigned long edid_le
#endif
}
+EAPI Eina_Bool
+ecore_x_randr_edid_dpms_standby_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 < ECORE_X_RANDR_EDID_VERSION_13) return EINA_FALSE;
+
+ if (edid[0x18] & 0xE0) return !!(edid[0x18] & 0x80);
+#endif
+ return EINA_FALSE;
+}
/* local functions */
static Eina_Bool