summaryrefslogtreecommitdiff
path: root/src/lib/elput/Elput.h
diff options
context:
space:
mode:
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