summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x
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/lib/ecore_x
parent66b8698be284a8ccabeab7ecd2c80a617a641c1a (diff)
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/lib/ecore_x')
-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 @@
2 * 2 *
3 * ecore_x_randr_edid_display_ascii_get 3 * ecore_x_randr_edid_display_ascii_get
4 * ecore_x_randr_edid_display_serial_get 4 * ecore_x_randr_edid_display_serial_get
5 * ecore_x_randr_edid_model_get
6 * ecore_x_randr_edid_manufacturer_serial_number_get 5 * ecore_x_randr_edid_manufacturer_serial_number_get
7 * ecore_x_randr_edid_manufacturer_model_get
8 * ecore_x_randr_edid_dpms_available_get 6 * ecore_x_randr_edid_dpms_available_get
9 * ecore_x_randr_edid_dpms_standby_available_get 7 * ecore_x_randr_edid_dpms_standby_available_get
10 * ecore_x_randr_edid_dpms_suspend_available_get 8 * 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)
3072 return ecore_x_randr_edid_manufacturer_model_get(edid, edid_length); 3070 return ecore_x_randr_edid_manufacturer_model_get(edid, edid_length);
3073} 3071}
3074 3072
3073EAPI int
3074ecore_x_randr_edid_manufacturer_serial_number_get(unsigned char *edid, unsigned long edid_length)
3075{
3076 LOGFN(__FILE__, __LINE__, __FUNCTION__);
3077 CHECK_XCB_CONN;
3078
3079#ifdef ECORE_XCB_RANDR
3080 if ((edid_length > _ECORE_X_RANDR_EDID_MANUFACTURER + 1) &&
3081 (ecore_x_randr_edid_has_valid_header(edid, edid_length)))
3082 return (int)(edid[0x0c] + (edid[0x0d] << 8) +
3083 (edid[0x0e] << 16) + (edid[0x0f] << 24));
3084#endif
3085 return ECORE_X_RANDR_EDID_UNKNOWN_VALUE;
3086}
3087
3075/* local functions */ 3088/* local functions */
3076static Eina_Bool 3089static Eina_Bool
3077_ecore_xcb_randr_output_validate(Ecore_X_Window root, 3090_ecore_xcb_randr_output_validate(Ecore_X_Window root,