devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=84149511daebb9795409b5809390a41adf32ba7c

commit 84149511daebb9795409b5809390a41adf32ba7c
Author: Chris Michael <cpmich...@osg.samsung.com>
Date:   Tue Apr 5 09:20:53 2016 -0400

    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 <cpmich...@osg.samsung.com>
---
 src/lib/ecore_x/xcb/ecore_xcb_randr.c | 17 +++++++++++++++--
 1 file 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 acc21f8..2081e31 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,

-- 


Reply via email to