2a79c6d227309d7a277bc00dab596eb3b850b772
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / bridge.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2001, 2002, 2003 Sun Microsystems Inc.,
6  * Copyright 2001, 2002, 2003 Ximian, Inc.
7  * Copyright 2008, 2009, 2010 Codethink Ltd.
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 BRIDGE_H
26 #define BRIDGE_H
27
28 #include <atk/atk.h>
29 #include <droute/droute.h>
30
31 typedef struct _SpiBridge SpiBridge;
32 typedef struct _SpiBridgeClass SpiBridgeClass;
33
34 G_BEGIN_DECLS
35
36 typedef struct _event_data event_data;
37 struct _event_data
38 {
39   gchar *bus_name;
40   gchar **data;
41 };
42
43 struct _SpiBridge
44 {
45   GObject parent;
46
47   AtkObject *root;
48
49   DBusConnection *bus;
50   DRouteContext  *droute;
51   GMainContext *main_context;
52   DBusServer *server;
53   GList *direct_connections;
54
55 /*
56   SpiRegister *reg;
57   SpiCache    *cache;
58   SpiLeasing  *leasing;
59 */
60   gchar *desktop_name;
61   gchar *desktop_path;
62 gchar *app_tmp_dir;
63 gchar *app_bus_addr;
64   GList *events;
65   gboolean events_initialized;
66 };
67
68 extern SpiBridge *spi_global_app_data;
69
70 void spi_atk_add_client (const char *bus_name);
71 void spi_atk_remove_client (const char *bus_name);
72
73 G_END_DECLS
74
75 #endif /* BRIDGE_H */