summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h12
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c7
2 files changed, 19 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
793EAPI void ecore_drm2_output_user_data_set(Ecore_Drm2_Output *o, void *data); 793EAPI void ecore_drm2_output_user_data_set(Ecore_Drm2_Output *o, void *data);
794 794
795/** 795/**
796 * Get the user data for a given output
797 *
798 * @param output The output to get user data for
799 *
800 * @return The user data associated with given output
801 *
802 * @ingroup Ecore_Drm2_Output_Group
803 * @since 1.21
804 */
805EAPI void *ecore_drm2_output_user_data_get(Ecore_Drm2_Output *output);
806
807/**
796 * Get the subpixel state of the output 808 * Get the subpixel state of the output
797 * @param output the output 809 * @param output the output
798 * @return The state value 810 * @return The state value
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)
1456 o->user_data = data; 1456 o->user_data = data;
1457} 1457}
1458 1458
1459EAPI void *
1460ecore_drm2_output_user_data_get(Ecore_Drm2_Output *output)
1461{
1462 EINA_SAFETY_ON_NULL_RETURN_VAL(output, NULL);
1463 return output->user_data;
1464}
1465
1459EAPI void 1466EAPI void
1460ecore_drm2_output_gamma_set(Ecore_Drm2_Output *output, uint16_t size, uint16_t *red, uint16_t *green, uint16_t *blue) 1467ecore_drm2_output_gamma_set(Ecore_Drm2_Output *output, uint16_t size, uint16_t *red, uint16_t *green, uint16_t *blue)
1461{ 1468{