summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-02 11:26:44 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-27 11:57:53 -0400
commit4e38aabdc09df1ef4ad630caa7fe754433a35d7d (patch)
tree3044c5c6dfdd93ed44a1bb64b96d71226fa0cfd9 /src/lib/ecore_drm2/ecore_drm2.c
parent9c7b6572875d5245ae69300936d1cb942bfd0498 (diff)
ecore-drm2: Add API functions to work with outputs
This patch adds support for creating, destroying, and otherwise working with outputs via exposed API functions. Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2.c b/src/lib/ecore_drm2/ecore_drm2.c
index 32b6781..a4096f2 100644
--- a/src/lib/ecore_drm2/ecore_drm2.c
+++ b/src/lib/ecore_drm2/ecore_drm2.c
@@ -4,6 +4,8 @@ static int _ecore_drm2_init_count = 0;
4 4
5int _ecore_drm2_log_dom = -1; 5int _ecore_drm2_log_dom = -1;
6 6
7EAPI int ECORE_DRM2_EVENT_OUTPUT_CHANGED = -1;
8
7EAPI int 9EAPI int
8ecore_drm2_init(void) 10ecore_drm2_init(void)
9{ 11{
@@ -37,6 +39,8 @@ ecore_drm2_init(void)
37 goto log_err; 39 goto log_err;
38 } 40 }
39 41
42 ECORE_DRM2_EVENT_OUTPUT_CHANGED = ecore_event_type_new();
43
40 return _ecore_drm2_init_count; 44 return _ecore_drm2_init_count;
41 45
42log_err: 46log_err:
@@ -62,6 +66,8 @@ ecore_drm2_shutdown(void)
62 66
63 if (--_ecore_drm2_init_count != 0) return _ecore_drm2_init_count; 67 if (--_ecore_drm2_init_count != 0) return _ecore_drm2_init_count;
64 68
69 ECORE_DRM2_EVENT_OUTPUT_CHANGED = -1;
70
65 eina_log_domain_unregister(_ecore_drm2_log_dom); 71 eina_log_domain_unregister(_ecore_drm2_log_dom);
66 _ecore_drm2_log_dom = -1; 72 _ecore_drm2_log_dom = -1;
67 73