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>
This commit is contained in:
Chris Michael 2016-04-05 09:16:49 -04:00
parent 7c2e5a0c3e
commit 6ce9ab87e8
1 changed files with 14 additions and 0 deletions

View File

@ -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,