From ccf064f5ae663245f2c07113ca325b2095998a5a Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 20 Feb 2018 10:33:51 -0500 Subject: ecore-drm2: Add API function to retrieve output user data With the rework of Ecore_Evas drm engine, we need to get the ecore_evas itself in the pageflip callback so we have to reassign output->user_data to the ecore_evas which we can then use to retrieve via this function This is needed as the pageflip callback will pass us the output on which the pageflip completed. @feature Signed-off-by: Chris Michael --- src/lib/ecore_drm2/ecore_drm2_outputs.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/ecore_drm2/ecore_drm2_outputs.c') diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c index a27826ee1e..e39f26a6da 100644 --- a/src/lib/ecore_drm2/ecore_drm2_outputs.c +++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c @@ -1456,6 +1456,13 @@ ecore_drm2_output_user_data_set(Ecore_Drm2_Output *o, void *data) o->user_data = data; } +EAPI void * +ecore_drm2_output_user_data_get(Ecore_Drm2_Output *output) +{ + EINA_SAFETY_ON_NULL_RETURN_VAL(output, NULL); + return output->user_data; +} + EAPI void ecore_drm2_output_gamma_set(Ecore_Drm2_Output *output, uint16_t size, uint16_t *red, uint16_t *green, uint16_t *blue) { -- cgit v1.2.1