summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-04-05 10:14:19 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-05 10:14:19 -0400
commitca8e13712fdbe16c575558af86197a25249a19c1 (patch)
treef6783d22deb0a938ac8914be7f74196881d2a04e /src/lib/ecore_x
parentef15639e3313ef0ff66e057eedaa9957f276e27d (diff)
ecore-xcb: Add implementation for missing API function
This patch adds an xcb implementation for missing ecore_x_randr_edid_display_interface_type_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.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/ecore_x/xcb/ecore_xcb_randr.c b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
index 911c183751..ce14933fd7 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_randr.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
@@ -3046,6 +3046,27 @@ ecore_x_randr_edid_display_serial_get(unsigned char *edid, unsigned long edid_le
3046 return NULL; 3046 return NULL;
3047} 3047}
3048 3048
3049EAPI Ecore_X_Randr_Edid_Display_Interface_Type
3050ecore_x_randr_edid_display_interface_type_get(unsigned char *edid, unsigned long edid_length)
3051{
3052#ifdef ECORE_XCB_RANDR
3053 Ecore_X_Randr_Edid_Display_Interface_Type type;
3054 int version = 0;
3055
3056 type = ECORE_X_RANDR_EDID_UNKNOWN_VALUE;
3057
3058 version = ecore_x_randr_edid_version_get(edid, edid_length);
3059 if (version < ECORE_X_RANDR_EDID_VERSION_13) return type;
3060
3061 type = (edid[0x14] & 0x0f);
3062 if (type > ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_DISPLAY_PORT)
3063 type = ECORE_X_RANDR_EDID_UNKNOWN_VALUE;
3064
3065 return type;
3066#endif
3067 return 0;
3068}
3069
3049EAPI Eina_Bool 3070EAPI Eina_Bool
3050ecore_x_randr_edid_has_valid_header(unsigned char *edid, unsigned long edid_length) 3071ecore_x_randr_edid_has_valid_header(unsigned char *edid, unsigned long edid_length)
3051{ 3072{