summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x
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/lib/ecore_x
parent4d048e5725e40e9f379a70cfbcd7435559bf7539 (diff)
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/lib/ecore_x')
-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
2997 if (edid_length < 128) return EINA_FALSE; 2997 if (edid_length < 128) return EINA_FALSE;
2998 2998
2999 version = ecore_x_randr_edid_version_get(edid, edid_length); 2999 version = ecore_x_randr_edid_version_get(edid, edid_length);
3000 if (version < RANDR_EDID_VERSION_13) return EINA_FALSE; 3000 if (version < ECORE_X_RANDR_EDID_VERSION_13) return EINA_FALSE;
3001 3001
3002 for (i = 0; i < 128; i++) 3002 for (i = 0; i < 128; i++)
3003 sum += edid[i]; 3003 sum += edid[i];
@@ -3059,7 +3059,7 @@ ecore_x_randr_edid_manufacturer_model_get(unsigned char *edid, unsigned long edi
3059 (ecore_x_randr_edid_has_valid_header(edid, edid_length))) 3059 (ecore_x_randr_edid_has_valid_header(edid, edid_length)))
3060 return (int)(edid[0x0a] + (edid[0x0b] << 8)); 3060 return (int)(edid[0x0a] + (edid[0x0b] << 8));
3061#endif 3061#endif
3062 return ECORE_X_RANDR_EDID_UKNOWN_VALUE; 3062 return ECORE_X_RANDR_EDID_UNKNOWN_VALUE;
3063} 3063}
3064 3064
3065EAPI int 3065EAPI int
@@ -3093,7 +3093,7 @@ ecore_x_randr_edid_dpms_available_get(unsigned char *edid, unsigned long edid_le
3093 int version = 0; 3093 int version = 0;
3094 3094
3095 version = ecore_x_randr_edid_version_get(edid, edid_length); 3095 version = ecore_x_randr_edid_version_get(edid, edid_length);
3096 if (version < RANDR_EDID_VERSION_13) return EINA_FALSE; 3096 if (version < ECORE_X_RANDR_EDID_VERSION_13) return EINA_FALSE;
3097 3097
3098 return !!(edid[0x18] & 0xE0); 3098 return !!(edid[0x18] & 0xE0);
3099#else 3099#else
@@ -3101,7 +3101,22 @@ ecore_x_randr_edid_dpms_available_get(unsigned char *edid, unsigned long edid_le
3101#endif 3101#endif
3102} 3102}
3103 3103
3104EAPI Eina_Bool
3105ecore_x_randr_edid_dpms_standby_available_get(unsigned char *edid, unsigned long edid_length)
3106{
3107 LOGFN(__FILE__, __LINE__, __FUNCTION__);
3108 CHECK_XCB_CONN;
3104 3109
3110#ifdef ECORE_XCB_RANDR
3111 int version = 0;
3112
3113 version = ecore_x_randr_edid_version_get(edid, edid_length);
3114 if (version < ECORE_X_RANDR_EDID_VERSION_13) return EINA_FALSE;
3115
3116 if (edid[0x18] & 0xE0) return !!(edid[0x18] & 0x80);
3117#endif
3118 return EINA_FALSE;
3119}
3105 3120
3106/* local functions */ 3121/* local functions */
3107static Eina_Bool 3122static Eina_Bool