summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:44:29 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:45:20 -0400
commita19756be38b1635d0eb3612011796876bd5c15bc (patch)
treed528f31357d6e7576ee7e5eac52493840f28673e /src/lib/ecore_x
parent760fb0326cece1a3bc024a0c5db7c54119316bb5 (diff)
ecore-xcb: Add implementation for missing API function
This patch adds an xcb implementation for missing ecore_x_randr_edid_dpms_standby_available_get function @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.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/lib/ecore_x/xcb/ecore_xcb_randr.c b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
index 8cef0eecbd..f83aa04187 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_randr.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
@@ -1,6 +1,5 @@
1/* TODO: List of missing functions 1/* TODO: List of missing functions
2 * 2 *
3 * ecore_x_randr_edid_dpms_suspend_available_get
4 * ecore_x_randr_edid_dpms_off_available_get 3 * ecore_x_randr_edid_dpms_off_available_get
5 * ecore_x_randr_edid_display_aspect_ratio_preferred_get 4 * ecore_x_randr_edid_display_aspect_ratio_preferred_get
6 * ecore_x_randr_edid_display_aspect_ratios_get 5 * ecore_x_randr_edid_display_aspect_ratios_get
@@ -3179,6 +3178,23 @@ ecore_x_randr_edid_dpms_standby_available_get(unsigned char *edid, unsigned long
3179 return EINA_FALSE; 3178 return EINA_FALSE;
3180} 3179}
3181 3180
3181EAPI Eina_Bool
3182ecore_x_randr_edid_dpms_suspend_available_get(unsigned char *edid, unsigned long edid_length)
3183{
3184 LOGFN(__FILE__, __LINE__, __FUNCTION__);
3185 CHECK_XCB_CONN;
3186
3187#ifdef ECORE_XCB_RANDR
3188 int version = 0;
3189
3190 version = ecore_x_randr_edid_version_get(edid, edid_length);
3191 if (version < ECORE_X_RANDR_EDID_VERSION_13) return EINA_FALSE;
3192
3193 if (edid[0x18] & 0xE0) return !!(edid[0x18] & 0x40);
3194#endif
3195 return EINA_FALSE;
3196}
3197
3182/* local functions */ 3198/* local functions */
3183static Eina_Bool 3199static Eina_Bool
3184_ecore_xcb_randr_output_validate(Ecore_X_Window root, 3200_ecore_xcb_randr_output_validate(Ecore_X_Window root,