ecore-drm: Move session and vt fields to store inside the
authorChris Michael <cp.michael@samsung.com>
Thu, 22 Jan 2015 17:42:52 +0000 (12:42 -0500)
committerChris Michael <cp.michael@samsung.com>
Mon, 26 Jan 2015 13:37:08 +0000 (08:37 -0500)
Ecore_Drm_Device

Summary: This moves storing the session name and VT fields inside the
device structure. This also adds a field so we can store the keyboard
mode of the tty, and restore it on close.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm/Ecore_Drm.h

index 7a65273..286aa20 100644 (file)
@@ -66,7 +66,9 @@ typedef struct _Ecore_Drm_Fb
 struct _Ecore_Drm_Device
 {
    int id;
+   unsigned int vt;
    const char *seat;
+   char *session;
 
    struct
      {
@@ -94,6 +96,7 @@ struct _Ecore_Drm_Device
    struct
      {
         int fd;
+        int kbd_mode;
         const char *name;
         Ecore_Event_Handler *event_hdlr;
         Ecore_Event_Handler *switch_hdlr;