diff options
Diffstat (limited to 'spi-common/event-types.h')
-rw-r--r-- | spi-common/event-types.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/spi-common/event-types.h b/spi-common/event-types.h new file mode 100644 index 0000000..ac0c059 --- /dev/null +++ b/spi-common/event-types.h @@ -0,0 +1,61 @@ +/* + * AT-SPI - Assistive Technology Service Provider Interface + * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap) + * + * Copyright 2001, 2002 Sun Microsystems Inc., + * Copyright 2001, 2002 Ximian, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef EVENT_TYPES_H_ +#define EVENT_TYPES_H_ + +#include <dbus/dbus.h> + +typedef unsigned long Accessibility_ControllerEventMask; + +// TODO: auto-generate the below structs +typedef struct _Accessibility_DeviceEvent Accessibility_DeviceEvent; +struct _Accessibility_DeviceEvent +{ + Accessibility_EventType type; + dbus_uint32_t id; + dbus_uint16_t hw_code; + dbus_uint16_t modifiers; + dbus_uint32_t timestamp; + char * event_string; + dbus_bool_t is_text; +}; + +typedef struct _Accessibility_EventListenerMode Accessibility_EventListenerMode; +struct _Accessibility_EventListenerMode +{ + dbus_bool_t synchronous; + dbus_bool_t preemptive; + dbus_bool_t global; +}; + +typedef struct _Accessibility_KeyDefinition Accessibility_KeyDefinition; +struct _Accessibility_KeyDefinition +{ + dbus_int32_t keycode; + dbus_int32_t keysym; + char *keystring; + dbus_int32_t unused; +}; + +#endif /* EVENT_TYPES_H_ */ |