2.31.1
[platform/upstream/at-spi2-core.git] / registryd / de-types.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2009  Codethink Ltd
6  * Copyright 2001, 2002 Sun Microsystems Inc.,
7  * Copyright 2001, 2002 Ximian, Inc.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Library General Public
11  * License as published by the Free Software Foundation; either
12  * version 2 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Library General Public License for more details.
18  *
19  * You should have received a copy of the GNU Library General Public
20  * License along with this library; if not, write to the
21  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22  * Boston, MA 02111-1307, USA.
23  */
24
25 #ifndef SPI_DE_TYPES_H_
26 #define SPI_DE_TYPES_H_
27
28 #include <dbus/dbus.h>
29
30 typedef unsigned long Accessibility_ControllerEventMask;
31
32 typedef enum {
33     Accessibility_KEY_PRESSED_EVENT,
34     Accessibility_KEY_RELEASED_EVENT,
35     Accessibility_BUTTON_PRESSED_EVENT,
36     Accessibility_BUTTON_RELEASED_EVENT,
37 } Accessibility_EventType;
38
39 typedef enum {
40     Accessibility_KEY_PRESSED,
41     Accessibility_KEY_RELEASED,
42 } Accessibility_KeyEventType;
43
44 typedef enum {
45     Accessibility_KEY_PRESS,
46     Accessibility_KEY_RELEASE,
47     Accessibility_KEY_PRESSRELEASE,
48     Accessibility_KEY_SYM,
49     Accessibility_KEY_STRING,
50     Accessibility_KEY_LOCKMODIFIERS,
51     Accessibility_KEY_UNLOCKMODIFIERS,
52 } Accessibility_KeySynthType;
53
54 typedef struct _Accessibility_DeviceEvent Accessibility_DeviceEvent;
55 struct _Accessibility_DeviceEvent
56 {
57   Accessibility_EventType type;
58   dbus_uint32_t id;
59   dbus_uint32_t hw_code;
60   dbus_uint32_t modifiers;
61   dbus_uint32_t timestamp;
62   char * event_string;
63   dbus_bool_t is_text;
64 };
65
66 typedef struct _Accessibility_EventListenerMode Accessibility_EventListenerMode;
67 struct _Accessibility_EventListenerMode
68 {
69   dbus_bool_t synchronous;
70   dbus_bool_t preemptive;
71   dbus_bool_t global;
72 };
73
74 typedef struct _Accessibility_KeyDefinition Accessibility_KeyDefinition;
75 struct _Accessibility_KeyDefinition
76 {
77   dbus_int32_t keycode;
78   dbus_int32_t keysym;
79   char *keystring;
80   dbus_int32_t unused;
81 };
82
83 #endif /* SPI_DE_TYPES_H_ */