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>
This commit is contained in:
Chris Michael 2014-09-23 10:34:00 -04:00
parent 9228a6ac6b
commit 16d8352ebe
1 changed files with 5 additions and 6 deletions

View File

@ -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();