summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-09-23 10:34:00 -0400
committerChris Michael <cp.michael@samsung.com>2014-09-23 15:31:12 -0400
commit16d8352ebef8dedb41dc4a31fa14f7ccf9a5bb90 (patch)
tree7fe7edb4477dcbcfadef87e8630a7fbf7c5d4470 /src/lib/ecore_drm/ecore_drm.c
parent9228a6ac6b3017fc4ee08bdffaa3efaf70430769 (diff)
ecore-drm: Remove references to udev functions and init Eeze during
startup Summary: This removes the variable & function calls to udev and adds code to initialize/shutdown Eeze. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/ecore_drm/ecore_drm.c b/src/lib/ecore_drm/ecore_drm.c
index 79d2b7888e..95a210365d 100644
--- a/src/lib/ecore_drm/ecore_drm.c
+++ b/src/lib/ecore_drm/ecore_drm.c
@@ -9,7 +9,6 @@ static int _ecore_drm_init_count = 0;
9static char *sid; 9static char *sid;
10 10
11/* external variables */ 11/* external variables */
12struct udev *udev;
13int _ecore_drm_log_dom = -1; 12int _ecore_drm_log_dom = -1;
14 13
15/** 14/**
@@ -72,13 +71,13 @@ ecore_drm_init(void)
72 /* try to init dbus */ 71 /* try to init dbus */
73 if (!_ecore_drm_dbus_init(sid)) goto dbus_err; 72 if (!_ecore_drm_dbus_init(sid)) goto dbus_err;
74 73
75 /* try to init udev */ 74 /* try to init eeze */
76 if (!(udev = udev_new())) goto udev_err; 75 if (!eeze_init()) goto eeze_err;
77 76
78 /* return init count */ 77 /* return init count */
79 return _ecore_drm_init_count; 78 return _ecore_drm_init_count;
80 79
81udev_err: 80eeze_err:
82 _ecore_drm_dbus_shutdown(); 81 _ecore_drm_dbus_shutdown();
83dbus_err: 82dbus_err:
84 free(sid); 83 free(sid);
@@ -106,8 +105,8 @@ ecore_drm_shutdown(void)
106 /* if we are still in use, decrement init count and get out */ 105 /* if we are still in use, decrement init count and get out */
107 if (--_ecore_drm_init_count != 0) return _ecore_drm_init_count; 106 if (--_ecore_drm_init_count != 0) return _ecore_drm_init_count;
108 107
109 /* close udev handle */ 108 /* close eeze */
110 if (udev) udev_unref(udev); 109 eeze_shutdown();
111 110
112 /* cleanup dbus */ 111 /* cleanup dbus */
113 _ecore_drm_dbus_shutdown(); 112 _ecore_drm_dbus_shutdown();