Include <stdlib.h> to fix ISan build.
[platform/upstream/at-spi2-core.git] / idl / device.didl
1
2 namespace org.freestandards.atspi {
3
4         enum <uint32> EventType {
5                 KEY_PRESSED_EVENT=0,
6                 KEY_RELEASED_EVENT,
7                 BUTTON_PRESSED_EVENT,
8                 BUTTON_RELEASED_EVENT
9         }
10
11         enum <uint32> ModifierType {
12                 MODIFIER_SHIFT=0,
13                 MODIFIER_SHIFTLOCK,
14                 MODIFIER_CONTROL,
15                 MODIFIER_ALT,
16                 MODIFIER_META,
17                 MODIFIER_META2,
18                 MODIFIER_META3,
19                 MODIFIER_NUMLOCK
20         }
21
22         struct DeviceEvent {
23                 EventType    type;
24                 /* An identifier for the event, corresponds to XEvent serial number. */
25                 int32        stream_id;
26                 /* A numeric code identifying the hardware or button on which the event occured. */
27                 int16        hw_code;   
28                 ModifierType modifiers;
29                 int32        timestamp;
30                 string       event_string;
31                 boolean      is_text;
32         }
33 }