2 * AT-SPI - Assistive Technology Service Provider Interface
3 * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
5 * Copyright 2008 Novell, Inc.
6 * Copyright 2008 Codethink Ltd.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
26 #include <dbus/dbus.h>
29 #include <droute/droute-variant.h>
32 typedef DBusMessage *(*DRouteFunction) (DBusConnection *, DBusMessage *, void *);
33 typedef dbus_bool_t (*DRoutePropertyFunction) (DBusMessageIter *, void *);
34 typedef gchar *(*DRouteIntrospectChildrenFunction) (const char *, void *);
36 typedef void *(*DRouteGetDatumFunction) (const char *, void *);
38 typedef struct _DRouteMethod DRouteMethod;
45 typedef struct _DRouteProperty DRouteProperty;
46 struct _DRouteProperty
48 DRoutePropertyFunction get;
49 DRoutePropertyFunction set;
53 /*---------------------------------------------------------------------------*/
55 typedef struct _DRouteContext DRouteContext;
57 typedef struct _DRoutePath DRoutePath;
59 /*---------------------------------------------------------------------------*/
65 droute_free (DRouteContext *cnx);
68 droute_add_one (DRouteContext *cnx,
73 droute_add_many (DRouteContext *cnx,
76 DRouteIntrospectChildrenFunction introspect_children_cb,
77 void *introspect_children_data,
78 const DRouteGetDatumFunction get_datum);
81 droute_path_add_interface (DRoutePath *path,
83 const char *introspect,
84 const DRouteMethod *methods,
85 const DRouteProperty *properties);
88 droute_not_yet_handled_error (DBusMessage *message);
91 droute_invalid_arguments_error (DBusMessage *message);
94 droute_out_of_memory_error (DBusMessage *message);
97 droute_path_register (DRoutePath *path, DBusConnection *bus);
100 droute_path_unregister (DRoutePath *path, DBusConnection *bus);
103 droute_context_register (DRouteContext *cnx, DBusConnection *bus);
106 droute_context_unregister (DRouteContext *cnx, DBusConnection *bus);
109 droute_intercept_dbus (DBusConnection *connection);
112 droute_unintercept_dbus (DBusConnection *connection);
113 #endif /* _DROUTE_H */