summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:16:49 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:16:49 -0400
commit6ce9ab87e8a014f511ecbf3b34f4e481473a43c8 (patch)
treee75325f6b27c598e0f35f7f427672b9c572af523 /src
parent7c2e5a0c3ebdca4f0326ef4102790a37630cf798 (diff)
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 <cpmichael@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_x/xcb/ecore_xcb_randr.c14
1 files changed, 14 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 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
3052 return NULL; 3052 return NULL;
3053} 3053}
3054 3054
3055EAPI int
3056ecore_x_randr_edid_manufacturer_model_get(unsigned char *edid, unsigned long edid_length)
3057{
3058 LOGFN(__FILE__, __LINE__, __FUNCTION__);
3059 CHECK_XCB_CONN;
3060
3061#ifdef ECORE_XCB_RANDR
3062 if ((edid_length > _ECORE_X_RANDR_EDID_MANUFACTURER + 1) &&
3063 (ecore_x_randr_edid_has_valid_header(edid, edid_length)))
3064 return (int)(edid[0x0a] + (edid[0x0b] << 8));
3065#endif
3066 return ECORE_X_RANDR_EDID_UKNOWN_VALUE;
3067}
3068
3055/* local functions */ 3069/* local functions */
3056static Eina_Bool 3070static Eina_Bool
3057_ecore_xcb_randr_output_validate(Ecore_X_Window root, 3071_ecore_xcb_randr_output_validate(Ecore_X_Window root,