aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:20:53 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:20:53 -0400
commit84149511daebb9795409b5809390a41adf32ba7c (patch)
tree5a0bb6375e56133e51b2c5aa9587314a613e171d /src
parentecore-xcb: Add implementation for missing Ecore_X API (diff)
downloadefl-84149511daebb9795409b5809390a41adf32ba7c.tar.gz
ecore-xcb: Add implementation for missing API function
This patch adds an xcb implementation for missing API function ecore_x_randr_edid_manufacturer_serial_number_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.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/lib/ecore_x/xcb/ecore_xcb_randr.c b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
index acc21f81d4..2081e31b3e 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_randr.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
@@ -2,9 +2,7 @@
*
* ecore_x_randr_edid_display_ascii_get
* ecore_x_randr_edid_display_serial_get
- * ecore_x_randr_edid_model_get
* ecore_x_randr_edid_manufacturer_serial_number_get
- * ecore_x_randr_edid_manufacturer_model_get
* ecore_x_randr_edid_dpms_available_get
* ecore_x_randr_edid_dpms_standby_available_get
* ecore_x_randr_edid_dpms_suspend_available_get
@@ -3072,6 +3070,21 @@ ecore_x_randr_edid_model_get(unsigned char *edid, unsigned long edid_length)
return ecore_x_randr_edid_manufacturer_model_get(edid, edid_length);
}
+EAPI int
+ecore_x_randr_edid_manufacturer_serial_number_get(unsigned char *edid, unsigned long edid_length)
+{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ CHECK_XCB_CONN;
+
+#ifdef ECORE_XCB_RANDR
+ if ((edid_length > _ECORE_X_RANDR_EDID_MANUFACTURER + 1) &&
+ (ecore_x_randr_edid_has_valid_header(edid, edid_length)))
+ return (int)(edid[0x0c] + (edid[0x0d] << 8) +
+ (edid[0x0e] << 16) + (edid[0x0f] << 24));
+#endif
+ return ECORE_X_RANDR_EDID_UNKNOWN_VALUE;
+}
+
/* local functions */
static Eina_Bool
_ecore_xcb_randr_output_validate(Ecore_X_Window root,