X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=blobdiff_plain;f=atk-adaptor%2Fbridge.h;h=ddc79f5c578e129d43319316816a1043f5932b35;hp=b2bfc51e2d15f44d22a6c04bf061cf9f97daa0d4;hb=1b49dbd66b4d3a21e77a922f2cf75c38f9631ca0;hpb=730e1e05bdb0eb48b67fcaa671ca2be6ef57a689 diff --git a/atk-adaptor/bridge.h b/atk-adaptor/bridge.h index b2bfc51..ddc79f5 100644 --- a/atk-adaptor/bridge.h +++ b/atk-adaptor/bridge.h @@ -4,6 +4,7 @@ * * Copyright 2001, 2002, 2003 Sun Microsystems Inc., * Copyright 2001, 2002, 2003 Ximian, Inc. + * Copyright 2008, 2009, 2010 Codethink Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,9 +22,56 @@ * Boston, MA 02111-1307, USA. */ -typedef struct _SpiAppData SpiAppData; -struct _SpiAppData +#ifndef BRIDGE_H +#define BRIDGE_H + +#include +#include + +typedef struct _SpiBridge SpiBridge; +typedef struct _SpiBridgeClass SpiBridgeClass; + +G_BEGIN_DECLS + +typedef struct _event_data event_data; +struct _event_data { + gchar *bus_name; + gchar **data; +}; + +struct _SpiBridge +{ + GObject parent; + AtkObject *root; - DRouteData droute; + + DBusConnection *bus; + DRouteContext *droute; + GMainContext *main_context; + DBusServer *server; + GList *direct_connections; + +/* + SpiRegister *reg; + SpiCache *cache; + SpiLeasing *leasing; +*/ + gchar *desktop_name; + gchar *desktop_path; +gchar *app_tmp_dir; +gchar *app_bus_addr; + GList *events; + gboolean events_initialized; }; + +extern SpiBridge *spi_global_app_data; + +void spi_atk_add_client (const char *bus_name); +void spi_atk_remove_client (const char *bus_name); + +int spi_atk_create_socket (SpiBridge *app); + +G_END_DECLS + +#endif /* BRIDGE_H */