devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b01666075d9c89dbba2ca279aa299f429784dec4

commit b01666075d9c89dbba2ca279aa299f429784dec4
Author: Chris Michael <cpmich...@osg.samsung.com>
Date:   Wed Apr 6 13:23:36 2016 -0400

    elput: Add event structures for keymap and modifier sending events
    
    Signed-off-by: Chris Michael <cpmich...@osg.samsung.com>
---
 src/lib/elput/Elput.h         | 18 ++++++++++++++++++
 src/lib/elput/elput.c         |  6 ++++++
 src/lib/elput/elput_private.h |  1 +
 3 files changed, 25 insertions(+)

diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h
index 97b184b..f8808ce 100644
--- a/src/lib/elput/Elput.h
+++ b/src/lib/elput/Elput.h
@@ -58,8 +58,26 @@ typedef struct _Elput_Event_Seat_Frame
    Elput_Seat *seat;
 } Elput_Event_Seat_Frame;
 
+/* structure to represent event for seat keymap changes */
+typedef struct _Elput_Event_Keymap_Send
+{
+   int fd, format;
+   size_t size;
+} Elput_Event_Keymap_Send;
+
+/* structure to represent event for seat modifiers changes */
+typedef struct _Elput_Event_Modifiers_Send
+{
+   unsigned int depressed;
+   unsigned int latched;
+   unsigned int locked;
+   unsigned int group;
+} Elput_Event_Modifiers_Send;
+
 EAPI extern int ELPUT_EVENT_SEAT_CAPS;
 EAPI extern int ELPUT_EVENT_SEAT_FRAME;
+EAPI extern int ELPUT_EVENT_KEYMAP_SEND;
+EAPI extern int ELPUT_EVENT_MODIFIERS_SEND;
 
 /**
  * @file
diff --git a/src/lib/elput/elput.c b/src/lib/elput/elput.c
index 9a673da..f65da98 100644
--- a/src/lib/elput/elput.c
+++ b/src/lib/elput/elput.c
@@ -8,6 +8,8 @@ int _elput_log_dom = -1;
 
 EAPI int ELPUT_EVENT_SEAT_CAPS = -1;
 EAPI int ELPUT_EVENT_SEAT_FRAME = -1;
+EAPI int ELPUT_EVENT_KEYMAP_SEND = -1;
+EAPI int ELPUT_EVENT_MODIFIERS_SEND = -1;
 
 EAPI int
 elput_init(void)
@@ -28,6 +30,8 @@ elput_init(void)
 
    ELPUT_EVENT_SEAT_CAPS = ecore_event_type_new();
    ELPUT_EVENT_SEAT_FRAME = ecore_event_type_new();
+   ELPUT_EVENT_KEYMAP_SEND = ecore_event_type_new();
+   ELPUT_EVENT_MODIFIERS_SEND = ecore_event_type_new();
 
    return _elput_init_count;
 
@@ -51,6 +55,8 @@ elput_shutdown(void)
 
    ELPUT_EVENT_SEAT_CAPS = -1;
    ELPUT_EVENT_SEAT_FRAME = -1;
+   ELPUT_EVENT_KEYMAP_SEND = -1;
+   ELPUT_EVENT_MODIFIERS_SEND = -1;
 
    eina_log_domain_unregister(_elput_log_dom);
    _elput_log_dom = -1;
diff --git a/src/lib/elput/elput_private.h b/src/lib/elput/elput_private.h
index 32ab797..4c1b7f1 100644
--- a/src/lib/elput/elput_private.h
+++ b/src/lib/elput/elput_private.h
@@ -12,6 +12,7 @@
 # include "Eldbus.h"
 # include <Elput.h>
 
+# include <ctype.h>
 # include <sys/mman.h>
 # include <fcntl.h>
 # include <unistd.h>

-- 


Reply via email to