summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-16 15:03:09 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-16 12:23:08 -0400
commita3d0af0069dfdd66fd97d8bea90e6150625430e6 (patch)
tree28b7b639c71d12065eccf1499b7ec6054fcb9784 /src/lib/ecore_drm2
parentad0aae8f8d8bb1b13ea68ba2103b9e8f4608a2f0 (diff)
ecore-drm2: add ecore_drm2_output_subpixel_get()
@feature
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h9
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c7
2 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 8dfe4aa815..f5768e3584 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -818,6 +818,15 @@ EAPI void ecore_drm2_output_user_data_set(Ecore_Drm2_Output *o, void *data);
818EAPI void ecore_drm2_output_release_handler_set(Ecore_Drm2_Output *output, Ecore_Drm2_Release_Handler handler, void *data); 818EAPI void ecore_drm2_output_release_handler_set(Ecore_Drm2_Output *output, Ecore_Drm2_Release_Handler handler, void *data);
819 819
820/** 820/**
821 * Get the subpixel state of the output
822 * @param output the output
823 * @return The state value
824 * @ingroup Ecore_Drm2_Output_Group
825 * @since 1.20
826 */
827EAPI unsigned int ecore_drm2_output_subpixel_get(const Ecore_Drm2_Output *output);
828
829/**
821 * @defgroup Ecore_Drm2_Fb_Group Drm framebuffer functions 830 * @defgroup Ecore_Drm2_Fb_Group Drm framebuffer functions
822 * 831 *
823 * Functions that deal with setup of framebuffers 832 * Functions that deal with setup of framebuffers
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index 89a6767133..afddc1fb6c 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -1584,3 +1584,10 @@ err:
1584 1584
1585 return ret; 1585 return ret;
1586} 1586}
1587
1588EAPI unsigned int
1589ecore_drm2_output_subpixel_get(const Ecore_Drm2_Output *output)
1590{
1591 EINA_SAFETY_ON_NULL_RETURN_VAL(output, 0);
1592 return output->subpixel;
1593}