summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-09 12:47:02 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-27 11:57:53 -0400
commit3c332e1f88881b918abb1c2d042ca8d391f8d588 (patch)
treebb30ddcb9d01b5fc9fff4fef60ff8a01949f2620 /src/lib/ecore_drm2/ecore_drm2.c
parent296d233f64327d87d318093b2504b58834c5bc85 (diff)
ecore-drm2: Add drm2 event for session activation
This patch adds a new Ecore_Drm2_Event_Activate that can be raised to inform Enlightenment that a session has been activated or suspended so that rendering can be paused/resumed 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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2.c b/src/lib/ecore_drm2/ecore_drm2.c
index a4096f2..339362a 100644
--- a/src/lib/ecore_drm2/ecore_drm2.c
+++ b/src/lib/ecore_drm2/ecore_drm2.c
@@ -5,6 +5,7 @@ static int _ecore_drm2_init_count = 0;
5int _ecore_drm2_log_dom = -1; 5int _ecore_drm2_log_dom = -1;
6 6
7EAPI int ECORE_DRM2_EVENT_OUTPUT_CHANGED = -1; 7EAPI int ECORE_DRM2_EVENT_OUTPUT_CHANGED = -1;
8EAPI int ECORE_DRM2_EVENT_ACTIVATE = -1;
8 9
9EAPI int 10EAPI int
10ecore_drm2_init(void) 11ecore_drm2_init(void)
@@ -40,6 +41,7 @@ ecore_drm2_init(void)
40 } 41 }
41 42
42 ECORE_DRM2_EVENT_OUTPUT_CHANGED = ecore_event_type_new(); 43 ECORE_DRM2_EVENT_OUTPUT_CHANGED = ecore_event_type_new();
44 ECORE_DRM2_EVENT_ACTIVATE = ecore_event_type_new();
43 45
44 return _ecore_drm2_init_count; 46 return _ecore_drm2_init_count;
45 47
@@ -67,6 +69,7 @@ ecore_drm2_shutdown(void)
67 if (--_ecore_drm2_init_count != 0) return _ecore_drm2_init_count; 69 if (--_ecore_drm2_init_count != 0) return _ecore_drm2_init_count;
68 70
69 ECORE_DRM2_EVENT_OUTPUT_CHANGED = -1; 71 ECORE_DRM2_EVENT_OUTPUT_CHANGED = -1;
72 ECORE_DRM2_EVENT_ACTIVATE = -1;
70 73
71 eina_log_domain_unregister(_ecore_drm2_log_dom); 74 eina_log_domain_unregister(_ecore_drm2_log_dom);
72 _ecore_drm2_log_dom = -1; 75 _ecore_drm2_log_dom = -1;