2 * AT-SPI - Assistive Technology Service Provider Interface
3 * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
5 * Copyright 2002 Ximian, Inc.
6 * 2002 Sun Microsystems Inc.
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.
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.
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.
25 #ifndef _SPI_PRIVATE_H_
26 #define _SPI_PRIVATE_H_
28 /* Private internal implementation details of at-spi. */
30 #include "common/spi-dbus.h"
33 #include "cspi/cspi-lowlevel.h"
34 #include "cspi/spi-listener.h"
35 #include "dbind/dbind.h"
36 #include <glib-object.h>
37 #include "common/spi-stateset.h"
39 typedef struct _CSpiApplication CSpiApplication;
40 struct _CSpiApplication
63 #define SPI_INTERNAL_EVENT_MAGIC 0xc3
65 * For internal use by CSPI implementation only
68 AccessibleEvent event;
75 struct _SPIException {
76 SPIExceptionType type;
79 SPIExceptionCode code;
83 DBusConnection *SPI_bus (void);
84 SPIBoolean cspi_exception (void);
85 Accessible *cspi_object_add (Accessible *accessible);
86 void cspi_object_ref (Accessible *accessible);
87 void cspi_object_unref (Accessible *accessible);
88 SPIBoolean cspi_accessible_is_a (Accessible *accessible,
89 const char *interface_name);
90 AccessibleRole cspi_role_from_spi_role (Accessibility_Role role);
91 void cspi_streams_close_all (void);
92 gboolean cspi_exception_throw (DBusError *error, const char *desc_prefix);
94 AccessibleAttributeSet
95 *_cspi_attribute_set_from_sequence (const GArray *seq);
96 #define cspi_return_if_fail(val) \
99 #define cspi_return_val_if_fail(val, ret) \
103 #define cspi_return_if_ev(err) \
104 if (cspi_exception ()) \
106 #define cspi_return_val_if_ev(err, ret) \
107 if (cspi_exception ()) \
110 typedef struct _Accessibility_BoundingBox Accessibility_BoundingBox;
111 struct _Accessibility_BoundingBox
119 #endif /* _SPI_PRIVATE_H_ */