devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6ce9ab87e8a014f511ecbf3b34f4e481473a43c8

commit 6ce9ab87e8a014f511ecbf3b34f4e481473a43c8
Author: Chris Michael <cpmich...@osg.samsung.com>
Date:   Tue Apr 5 09:16:49 2016 -0400

    ecore-xcb: Add implementation for missing API function
    
    This patch adds an xcb implementation for
    ecore_x_randr_edid_manufacturer_model_get function
    
    @fix
    
    Signed-off-by: Chris Michael <cpmich...@osg.samsung.com>
---
 src/lib/ecore_x/xcb/ecore_xcb_randr.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/lib/ecore_x/xcb/ecore_xcb_randr.c 
b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
index 0532cd2..c03bfec 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_randr.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
@@ -3052,6 +3052,20 @@ ecore_x_randr_edid_manufacturer_name_get(unsigned char 
*edid, unsigned long edid
    return NULL;
 }
 
+EAPI int
+ecore_x_randr_edid_manufacturer_model_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[0x0a] + (edid[0x0b] << 8));
+#endif
+   return ECORE_X_RANDR_EDID_UKNOWN_VALUE;
+}
+
 /* local functions */
 static Eina_Bool
 _ecore_xcb_randr_output_validate(Ecore_X_Window       root,

-- 


Reply via email to