aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
parentecore-xcb: Add implementation for missing API function (diff)
downloadefl-ca8e13712fdbe16c575558af86197a25249a19c1.tar.gz
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')
-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
return NULL;
}
+EAPI Ecore_X_Randr_Edid_Display_Interface_Type
+ecore_x_randr_edid_display_interface_type_get(unsigned char *edid, unsigned long edid_length)
+{
+#ifdef ECORE_XCB_RANDR
+ Ecore_X_Randr_Edid_Display_Interface_Type type;
+ int version = 0;
+
+ type = ECORE_X_RANDR_EDID_UNKNOWN_VALUE;
+
+ version = ecore_x_randr_edid_version_get(edid, edid_length);
+ if (version < ECORE_X_RANDR_EDID_VERSION_13) return type;
+
+ type = (edid[0x14] & 0x0f);
+ if (type > ECORE_X_RANDR_EDID_DISPLAY_INTERFACE_DISPLAY_PORT)
+ type = ECORE_X_RANDR_EDID_UNKNOWN_VALUE;
+
+ return type;
+#endif
+ return 0;
+}
+
EAPI Eina_Bool
ecore_x_randr_edid_has_valid_header(unsigned char *edid, unsigned long edid_length)
{