From 828984393e82fe30b1d2a29a47e806cc827070a4 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Fri, 22 Mar 2019 12:41:21 -0400 Subject: ecore-drm2: Add API function to return output rotation Summary: Small patch to add an API function which can be used to return a given output's rotation value ref T7690 @feature Depends on D8113 Reviewers: raster, cedric, zmike, stefan_schmidt, bu5hm4n Reviewed By: cedric Subscribers: cedric Tags: #efl, #do_not_merge Maniphest Tasks: T7690 Differential Revision: https://phab.enlightenment.org/D8114 --- 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 7642025ef4..c7540236f5 100644 --- a/src/lib/ecore_drm2/ecore_drm2_outputs.c +++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c @@ -1576,6 +1576,13 @@ err: return ret; } +EAPI int +ecore_drm2_output_rotation_get(Ecore_Drm2_Output *output) +{ + EINA_SAFETY_ON_NULL_RETURN_VAL(output, -1); + return output->rotation; +} + EAPI unsigned int ecore_drm2_output_subpixel_get(const Ecore_Drm2_Output *output) { -- cgit v1.2.1