aboutsummaryrefslogtreecommitdiffstats
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
parentecore-drm: Fix comment to not mention udev (diff)
downloadefl-16d8352ebef8dedb41dc4a31fa14f7ccf9a5bb90.tar.gz
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>
-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;
static char *sid;
/* external variables */
-struct udev *udev;
int _ecore_drm_log_dom = -1;
/**
@@ -72,13 +71,13 @@ ecore_drm_init(void)
/* try to init dbus */
if (!_ecore_drm_dbus_init(sid)) goto dbus_err;
- /* try to init udev */
- if (!(udev = udev_new())) goto udev_err;
+ /* try to init eeze */
+ if (!eeze_init()) goto eeze_err;
/* return init count */
return _ecore_drm_init_count;
-udev_err:
+eeze_err:
_ecore_drm_dbus_shutdown();
dbus_err:
free(sid);
@@ -106,8 +105,8 @@ ecore_drm_shutdown(void)
/* if we are still in use, decrement init count and get out */
if (--_ecore_drm_init_count != 0) return _ecore_drm_init_count;
- /* close udev handle */
- if (udev) udev_unref(udev);
+ /* close eeze */
+ eeze_shutdown();
/* cleanup dbus */
_ecore_drm_dbus_shutdown();