path: root/src/lib/ecore_drm2/Ecore_Drm2.h
diff options
authorChris Michael <cp.michael@samsung.com>2018-02-20 10:33:51 -0500
committerChris Michael <cp.michael@samsung.com>2018-02-27 09:31:33 -0500
commitccf064f5ae663245f2c07113ca325b2095998a5a (patch)
tree739601133f59330aaaa25ac84b00bf050acd3b33 /src/lib/ecore_drm2/Ecore_Drm2.h
parentecore-drm2: Free stringshare for relative output during output_free (diff)
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 <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/Ecore_Drm2.h')
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 8b987b920f..fb1884be2d 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -793,6 +793,18 @@ EAPI Eina_Bool ecore_drm2_output_rotation_set(Ecore_Drm2_Output *output, int rot
EAPI void ecore_drm2_output_user_data_set(Ecore_Drm2_Output *o, void *data);
+ * Get the user data for a given output
+ *
+ * @param output The output to get user data for
+ *
+ * @return The user data associated with given output
+ *
+ * @ingroup Ecore_Drm2_Output_Group
+ * @since 1.21
+ */
+EAPI void *ecore_drm2_output_user_data_get(Ecore_Drm2_Output *output);
* Get the subpixel state of the output
* @param output the output
* @return The state value