summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_private.h
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-02 18:23:45 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-02 18:23:42 -0400
commit4c7c613e768febdec27324527ccd320c4aa090db (patch)
treecd33c8589ccd4ae19fe664e4d6f47eac97d04468 /src/lib/elput/elput_private.h
parent539c2169b57518fa361c87961c98014dfeba40ff (diff)
elput: add refcounting for seats/devices
ensure lifetimes persist through events @fix
Diffstat (limited to 'src/lib/elput/elput_private.h')
-rw-r--r--src/lib/elput/elput_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/elput/elput_private.h b/src/lib/elput/elput_private.h
index 202c52bbef..a5263f7720 100644
--- a/src/lib/elput/elput_private.h
+++ b/src/lib/elput/elput_private.h
@@ -189,6 +189,7 @@ struct _Elput_Touch
189 189
190struct _Elput_Seat 190struct _Elput_Seat
191{ 191{
192 int refs; //for events
192 const char *name; 193 const char *name;
193 194
194 struct 195 struct
@@ -209,6 +210,7 @@ struct _Elput_Seat
209struct _Elput_Device 210struct _Elput_Device
210{ 211{
211 Elput_Seat *seat; 212 Elput_Seat *seat;
213 int refs; //for events
212 214
213 uint32_t ow, oh; 215 uint32_t ow, oh;
214 216
@@ -289,4 +291,6 @@ extern Elput_Interface _logind_interface;
289void _keyboard_keymap_update(Elput_Seat *seat); 291void _keyboard_keymap_update(Elput_Seat *seat);
290void _keyboard_group_update(Elput_Seat *seat); 292void _keyboard_group_update(Elput_Seat *seat);
291 293
294
295void _udev_seat_destroy(Elput_Seat *eseat);
292#endif 296#endif