ecore-drm: add ecore_drm_devices_get to get the list of drm devices 97/36997/3 accepted/tizen/common/20150319.090616 accepted/tizen/mobile/20150320.005832 accepted/tizen/tv/20150320.005600 accepted/tizen/wearable/20150319.095359 submit/tizen/20150318.130107
authorBoram Park <boram1288.park@samsung.com>
Tue, 17 Mar 2015 13:30:59 +0000 (09:30 -0400)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 18 Mar 2015 04:02:39 +0000 (21:02 -0700)
commit2d8979b6bfba837f2f5e2b2d585d8c82432db106
tree18529424b7165199196c438c30053415f91c9c3b
parent47a23f0e4e63199d861ada78d7f863863fc1b3bd
ecore-drm: add ecore_drm_devices_get to get the list of drm devices

Summary:
    when enlightenment is working as wayland display server, enlightenment
    changes KDSETMODE to KD_GRAPHICS in _ecore_drm_tty_setup(). However,
    when enlightenment is killed by SIGSEGV, it doesn't changes KDSETMODE
    to KD_TEXT because englightenment process doesn't call ecore_drm_tty_close().
    To make possible enlightenment call ecore_drm_tty_close(), drm devices
    should be exposed.
    When enlightenment is killed by SIGSEGV, it will get drm devices with
    ecore_drm_device_get_list(), and will call ecore_drm_launcher_disconnect(),
    and ecore_drm_launcher_disconnect will call ecore_drm_tty_close() internally.

@feature

Reviewers: zmike, cedric, raster, gwanglim, devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2159

Change-Id: Ie32b6eb02831bd95fd23d6a4f1dae372f999f4cc
src/lib/ecore_drm/Ecore_Drm.h
src/lib/ecore_drm/ecore_drm_device.c