summaryrefslogtreecommitdiff
path: root/src/lib/elput/Elput.h
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-04-07 09:00:18 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-13 14:16:17 -0400
commit6c85fe751488c344f1c0cff8e9f3dd013bf5f66d (patch)
treeb84b98b7eda667a9b99a2befea05b75413e48847 /src/lib/elput/Elput.h
parent6a7589bf7805b31b532cd6acf972a3f87f65366f (diff)
elput: Add event which can be raised when devices get added or removed
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/elput/Elput.h')
-rw-r--r--src/lib/elput/Elput.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h
index f8808ceee8..385ea4eb24 100644
--- a/src/lib/elput/Elput.h
+++ b/src/lib/elput/Elput.h
@@ -74,10 +74,24 @@ typedef struct _Elput_Event_Modifiers_Send
74 unsigned int group; 74 unsigned int group;
75} Elput_Event_Modifiers_Send; 75} Elput_Event_Modifiers_Send;
76 76
77typedef enum _Elput_Device_Change_Type
78{
79 ELPUT_DEVICE_ADDED,
80 ELPUT_DEVICE_REMOVED,
81} Elput_Device_Change_Type;
82
83/* structure to represent event for device being added or removed */
84typedef struct _Elput_Event_Device_Change
85{
86 Elput_Device *device;
87 Elput_Device_Change_Type type;
88} Elput_Event_Device_Change;
89
77EAPI extern int ELPUT_EVENT_SEAT_CAPS; 90EAPI extern int ELPUT_EVENT_SEAT_CAPS;
78EAPI extern int ELPUT_EVENT_SEAT_FRAME; 91EAPI extern int ELPUT_EVENT_SEAT_FRAME;
79EAPI extern int ELPUT_EVENT_KEYMAP_SEND; 92EAPI extern int ELPUT_EVENT_KEYMAP_SEND;
80EAPI extern int ELPUT_EVENT_MODIFIERS_SEND; 93EAPI extern int ELPUT_EVENT_MODIFIERS_SEND;
94EAPI extern int ELPUT_EVENT_DEVICE_CHANGE;
81 95
82/** 96/**
83 * @file 97 * @file