2009-01-12 Mark Doffman <mark.doffman@codethink.co.uk>
authorMark Doffman <mdoff@silver-wind.(none)>
Mon, 12 Jan 2009 11:49:58 +0000 (11:49 +0000)
committerMark Doffman <mdoff@silver-wind.(none)>
Mon, 12 Jan 2009 14:05:08 +0000 (14:05 +0000)
        * atk-adaptors/
          Large code-structure refactor.
          D-Bus adaptors have been renamed to
          *-adaptor.c.

          atk-dbus.c has been renamed
          to accessible-register.c to better indicate
          its function. The marshalling code has been
          split out.

28 files changed:
atk-adaptor/Makefile.am
atk-adaptor/accessible-adaptor.c [moved from atk-adaptor/accessible.c with 99% similarity]
atk-adaptor/accessible-marshaller.c [new file with mode: 0644]
atk-adaptor/accessible-marshaller.h [moved from atk-adaptor/accessible.h with 70% similarity]
atk-adaptor/accessible-register.c [moved from atk-adaptor/atk-dbus.c with 87% similarity]
atk-adaptor/accessible-register.h [moved from atk-adaptor/atk-dbus.h with 72% similarity]
atk-adaptor/action-adaptor.c [moved from atk-adaptor/action.c with 100% similarity]
atk-adaptor/adaptors.h [new file with mode: 0644]
atk-adaptor/application-adaptor.c [moved from atk-adaptor/application.c with 100% similarity]
atk-adaptor/bridge.c
atk-adaptor/bridge.h
atk-adaptor/collection-adaptor.c [moved from atk-adaptor/collection.c with 99% similarity]
atk-adaptor/component-adaptor.c [moved from atk-adaptor/component.c with 99% similarity]
atk-adaptor/document-adaptor.c [moved from atk-adaptor/document.c with 100% similarity]
atk-adaptor/editabletext-adaptor.c [moved from atk-adaptor/editabletext.c with 100% similarity]
atk-adaptor/event.c
atk-adaptor/event.h
atk-adaptor/hyperlink-adaptor.c [moved from atk-adaptor/hyperlink.c with 99% similarity]
atk-adaptor/hypertext-adaptor.c [moved from atk-adaptor/hypertext.c with 100% similarity]
atk-adaptor/image-adaptor.c [moved from atk-adaptor/image.c with 100% similarity]
atk-adaptor/relation-adaptor.c [moved from atk-adaptor/relation.c with 100% similarity]
atk-adaptor/selection-adaptor.c [moved from atk-adaptor/selection.c with 100% similarity]
atk-adaptor/streamablecontent-adaptor.c [moved from atk-adaptor/streamablecontent.c with 99% similarity]
atk-adaptor/table-adaptor.c [moved from atk-adaptor/table.c with 99% similarity]
atk-adaptor/text-adaptor.c [moved from atk-adaptor/text.c with 100% similarity]
atk-adaptor/tree-adaptor.c [moved from atk-adaptor/tree.c with 99% similarity]
atk-adaptor/tree-adaptor.h [moved from atk-adaptor/tree.h with 89% similarity]
atk-adaptor/value-adaptor.c [moved from atk-adaptor/value.c with 100% similarity]

index 944681f..c47cefc 100644 (file)
@@ -1,7 +1,10 @@
 gtkmoduledir = $(libdir)/$(GTK_MODULE_DIR)
 gtkmodule_LTLIBRARIES = libspiatk.la
 
-libspiatk_la_CFLAGS = $(DBUS_GLIB_CFLAGS) $(ATK_CFLAGS) -I$(top_srcdir)\
+libspiatk_la_CFLAGS = $(DBUS_GLIB_CFLAGS)\
+                     $(ATK_CFLAGS)\
+                     -I$(top_srcdir)\
+                     -I$(top_srcdir)/atk-adaptor/adaptors\
                      -DATSPI_INTROSPECTION_PATH=\"$(pkgdatadir)/$(DEFAULT_ATSPI_INTROSPECTION_PATH)\"
 
 libspiatk_la_LDFLAGS = -no-undefined       \
@@ -15,25 +18,28 @@ libspiatk_la_LIBADD = $(DBUS_GLIB_LIBS)                     \
                      $(top_builddir)/spi-common/libspicommon.la
 
 libspiatk_la_SOURCES =         \
-       accessible.h            \
-       accessible.c            \
-       action.c                \
-       application.c           \
+       accessible-adaptor.c    \
+       accessible-marshaller.c \
+       accessible-marshaller.h \
+       accessible-register.c   \
+       accessible-register.h   \
+       action-adaptor.c        \
+       adaptor.h               \
+       application-adaptor.c   \
        bridge.c                \
        bridge.h                \
-       collection.c            \
-       component.c             \
-       document.c              \
-       editabletext.c          \
+       collection-adaptor.c    \
+       component-adaptor.c     \
+       document-adaptor.c      \
+       editabletext-adaptor.c  \
        event.c                 \
-       hyperlink.c             \
-       hypertext.c             \
-       atk-dbus.c              \
-       atk-dbus.h              \
-       image.c                 \
-       selection.c             \
-       table.c                 \
-       text.c                  \
-       tree.c                  \
-       tree.h                  \
-       value.c
+       event.h                 \
+       hyperlink-adaptor.c     \
+       hypertext-adaptor.c     \
+       image-adaptor.c         \
+       selection-adaptor.c     \
+       table-adaptor.c         \
+       text-adaptor.c          \
+       tree-adaptor.c          \
+       tree-adaptor.h          \
+       value-adaptor.c
similarity index 99%
rename from atk-adaptor/accessible.c
rename to atk-adaptor/accessible-adaptor.c
index e1e34aa..fd3df3c 100644 (file)
@@ -25,8 +25,8 @@
 #include <atk/atk.h>
 #include <droute/droute.h>
 
-#include "atk-dbus.h"
 #include "spi-common/spi-dbus.h"
+#include "accessible-marshaller.h"
 
 static dbus_bool_t
 impl_get_name (DBusMessageIter *iter, void *user_data)
diff --git a/atk-adaptor/accessible-marshaller.c b/atk-adaptor/accessible-marshaller.c
new file mode 100644 (file)
index 0000000..a60f2c8
--- /dev/null
@@ -0,0 +1,75 @@
+/*
+ * AT-SPI - Assistive Technology Service Provider Interface
+ * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
+ *
+ * Copyright 2008 Novell, 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.
+ */
+
+#include "accessible-register.h"
+#include "accessible-marshaller.h"
+
+/*---------------------------------------------------------------------------*/
+
+/*
+ * Marshals the D-Bus path of an AtkObject into a D-Bus message.
+ *
+ * Unrefs the AtkObject if unref is true.
+ */
+DBusMessage *
+spi_dbus_return_object (DBusMessage *message, AtkObject *obj, gboolean unref)
+{
+  DBusMessage *reply;
+  gchar *path;
+
+  path = atk_dbus_object_to_path (obj);
+
+  if (unref)
+    g_object_unref (obj);
+
+  reply = dbus_message_new_method_return (message);
+  if (reply)
+    {
+      dbus_message_append_args (reply, DBUS_TYPE_OBJECT_PATH, path,
+                                DBUS_TYPE_INVALID);
+    }
+  return reply;
+}
+
+/*---------------------------------------------------------------------------*/
+
+/*
+ * Marshals a variant containing the D-Bus path of an AtkObject into a D-Bus
+ * message.
+ *
+ * Unrefs the object if unref is true.
+ */
+dbus_bool_t
+spi_dbus_return_v_object (DBusMessageIter *iter, AtkObject *obj, int unref)
+{
+  char *path;
+
+  path = atk_dbus_object_to_path (obj);
+
+  if (unref)
+    g_object_unref (obj);
+
+  return droute_return_v_object (iter, path);
+}
+
+/*END------------------------------------------------------------------------*/
+
similarity index 70%
rename from atk-adaptor/accessible.h
rename to atk-adaptor/accessible-marshaller.h
index f15b397..b133abc 100644 (file)
@@ -2,8 +2,8 @@
  * 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.
+ * Copyright 2008 Novell, Inc.
+ * Copyright 2008, 2009 Codethink Ltd.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
  * Boston, MA 02111-1307, USA.
  */
 
-#ifndef SPI_ACCESSIBLE_H_
-#define SPI_ACCESSIBLE_H_
+#ifndef __ACCESSIBLE_MARSHALLER__
+#define __ACCESSIBLE_MARSHALLER__
 
+#include <dbus/dbus.h>
 #include <atk/atk.h>
-#include <spi-common/spi-types.h>
 
-G_BEGIN_DECLS
+DBusMessage *
+spi_dbus_return_object (DBusMessage *message, AtkObject *obj, gboolean unref);
 
-Accessibility_Role spi_accessible_role_from_atk_role (AtkRole role);
+dbus_bool_t
+spi_dbus_return_v_object (DBusMessageIter *iter, AtkObject *obj, int unref);
 
-G_END_DECLS
-
-#endif /* SPI_ACCESSIBLE_H_ */
+#endif /* __ACCESSIBLE_MARSHALLER__ */
similarity index 87%
rename from atk-adaptor/atk-dbus.c
rename to atk-adaptor/accessible-register.c
index 956fb29..61521e6 100644 (file)
@@ -3,6 +3,7 @@
  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
  *
  * Copyright 2008 Novell, Inc.
+ * Copyright 2008, 2009 Codethink Ltd.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -25,8 +26,7 @@
 #include <string.h>
 
 #include "bridge.h"
-#include "accessible.h"
-#include "atk-dbus.h"
+#include "accessible-register.h"
 
 /* TODO
  * Need to add concurrency support.
  * removed since the last update.
  */
 
-/* Amazingly the ATK event callbacks dont have a user
- * data parameter. Instead, with great sadness, we use
- * some global data. Data is declared and initialized
- * in bridge.c.
- */
-
 GHashTable *ref2ptr = NULL; /* Used for converting a D-Bus path (Reference) to the object pointer */
 
 static guint counter = 1;
 
-extern SpiAppData *atk_adaptor_app_data;
-
 /*---------------------------------------------------------------------------*/
 
 /*
@@ -326,54 +318,6 @@ atk_dbus_object_to_path (AtkObject *accessible)
 /*---------------------------------------------------------------------------*/
 
 /*
- * Marshals a single object into a D-Bus message.
- *
- * Unrefs the AtkObject if unref is true.
- */
-DBusMessage *
-spi_dbus_return_object (DBusMessage *message, AtkObject *obj, gboolean unref)
-{
-  DBusMessage *reply;
-  gchar *path;
-
-  path = atk_dbus_object_to_path (obj);
-
-  if (unref)
-    g_object_unref (obj);
-
-  reply = dbus_message_new_method_return (message);
-  if (reply)
-    {
-      dbus_message_append_args (reply, DBUS_TYPE_OBJECT_PATH, path,
-                                DBUS_TYPE_INVALID);
-    }
-  return reply;
-}
-
-/*---------------------------------------------------------------------------*/
-
-/*
- * Marshals a variant containing the object reference into the message iter
- * provided.
- *
- * Unrefs the object if unref is true.
- */
-dbus_bool_t
-spi_dbus_return_v_object (DBusMessageIter *iter, AtkObject *obj, int unref)
-{
-  char *path;
-
-  path = atk_dbus_object_to_path (obj);
-
-  if (unref)
-    g_object_unref (obj);
-
-  return droute_return_v_object (iter, path);
-}
-
-/*---------------------------------------------------------------------------*/
-
-/*
  * Initializes required global data. The update and removal lists
  * and the reference lookup tables.
  *
similarity index 72%
rename from atk-adaptor/atk-dbus.h
rename to atk-adaptor/accessible-register.h
index 17dc50d..89c7780 100644 (file)
@@ -3,6 +3,7 @@
  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
  *
  * Copyright 2008 Novell, Inc.
+ * Copyright 2008, 2009 Codethink Ltd.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
  * Boston, MA 02111-1307, USA.
  */
 
-#ifndef __ATK_DBUS__
-#define __ATK_DBUS__
+#ifndef ACCESSIBLE_REGISTER
+#define ACCESSIBLE_REGISTER
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <atk/atk.h>
 #include <glib.h>
 
 void
 atk_dbus_foreach_registered(GHFunc func, gpointer data);
 
-void
-atk_dbus_foreach_update_list(GHFunc func, gpointer data);
-
-void
-atk_dbus_foreach_remove_list(GHFunc func, gpointer data);
-
 /*---------------------------------------------------------------------------*/
 
 guint
@@ -57,17 +50,6 @@ AtkObject *
 atk_dbus_path_to_object (const char *path);
 
 gchar *
-atk_dbus_ref_to_path (guint ref);
-
-gchar *
 atk_dbus_object_to_path (AtkObject *accessible);
 
-/*---------------------------------------------------------------------------*/
-
-DBusMessage *
-spi_dbus_return_object (DBusMessage *message, AtkObject *obj, gboolean unref);
-
-dbus_bool_t
-spi_dbus_return_v_object (DBusMessageIter *iter, AtkObject *obj, int unref);
-
-#endif /* __ATK_DBUS__ */
+#endif /* ACCESSIBLE_REGISTER */
diff --git a/atk-adaptor/adaptors.h b/atk-adaptor/adaptors.h
new file mode 100644 (file)
index 0000000..d871a7b
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * 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 ADAPTORS_H
+#define ADAPTORS_H
+
+#include <atk/atk.h>
+#include <droute/droute.h>
+
+Accessibility_Role spi_accessible_role_from_atk_role (AtkRole role);
+
+void spi_initialize_accessible      (DRoutePath *path);
+void spi_initialize_action          (DRoutePath *path);
+void spi_initialize_application     (DRoutePath *path);
+void spi_initialize_collection      (DRoutePath *path);
+void spi_initialize_component       (DRoutePath *path);
+void spi_initialize_document        (DRoutePath *path);
+void spi_initialize_editabletext    (DRoutePath *path);
+void spi_initialize_hyperlink       (DRoutePath *path);
+void spi_initialize_hypertext       (DRoutePath *path);
+void spi_initialize_image           (DRoutePath *path);
+void spi_initialize_selection       (DRoutePath *path);
+void spi_initialize_table           (DRoutePath *path);
+void spi_initialize_text            (DRoutePath *path);
+void spi_initialize_value           (DRoutePath *path);
+void spi_initialize_tree            (DRoutePath *path);
+
+#endif /* ADAPTORS_H */
index 80d8a5b..a63539e 100644 (file)
@@ -2,7 +2,7 @@
  * AT-SPI - Assistive Technology Service Provider Interface
  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
  *
- * Copyright 2008             Codethink Ltd.
+ * Copyright 2008, 2009 Codethink Ltd.
  * Copyright 2001, 2002, 2003 Sun Microsystems Inc.,
  * Copyright 2001, 2002, 2003 Ximian, Inc.
  *
 
 #include <X11/Xlib.h>
 #include <X11/Xatom.h>
-#include <string.h>
-#include <stdio.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdarg.h>
 #include <atk/atk.h>
-#include <atk/atkobject.h>
-#include <atk/atknoopobject.h>
 
 #include <droute/droute.h>
 
 #include "bridge.h"
 #include "event.h"
-#include "atk-dbus.h"
+#include "accessible-register.h"
+#include "adaptors.h"
 
 #include "spi-common/spi-dbus.h"
 
index 6b8829b..3e41531 100644 (file)
@@ -4,6 +4,7 @@
  *
  * Copyright 2001, 2002, 2003 Sun Microsystems Inc.,
  * Copyright 2001, 2002, 2003 Ximian, Inc.
+ * Copyright 2008, 2009 Codethink Ltd.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
  * Boston, MA 02111-1307, USA.
  */
 
-#ifndef SPI_BRIDGE_H_
-#define SPI_BRIDGE_H_
+#ifndef BRIDGE_H
+#define BRIDGE_H
 
 #include <atk/atk.h>
 #include <droute/droute.h>
 
-G_BEGIN_DECLS
-
 typedef struct _SpiAppData SpiAppData;
 struct _SpiAppData
 {
     AtkObject      *root;
+
     DBusConnection *bus;
     DRouteContext  *droute;
 };
 
-void spi_initialize_accessible      (DRoutePath *path);
-void spi_initialize_action          (DRoutePath *path);
-void spi_initialize_application     (DRoutePath *path);
-void spi_initialize_collection      (DRoutePath *path);
-void spi_initialize_component       (DRoutePath *path);
-void spi_initialize_document        (DRoutePath *path);
-void spi_initialize_editabletext    (DRoutePath *path);
-void spi_initialize_hyperlink       (DRoutePath *path);
-void spi_initialize_hypertext       (DRoutePath *path);
-void spi_initialize_image           (DRoutePath *path);
-void spi_initialize_selection       (DRoutePath *path);
-void spi_initialize_table           (DRoutePath *path);
-void spi_initialize_text            (DRoutePath *path);
-void spi_initialize_value           (DRoutePath *path);
-
-void spi_initialize_tree            (DRoutePath *path);
-
-G_END_DECLS
+extern SpiAppData *atk_adaptor_app_data;
 
-#endif /* SPI_BRIDGE_H_ */
+#endif /* BRIDGE_H */
similarity index 99%
rename from atk-adaptor/collection.c
rename to atk-adaptor/collection-adaptor.c
index c5fe2c0..749198f 100644 (file)
@@ -27,7 +27,8 @@
 #include <atk/atk.h>
 #include <droute/droute.h>
 
-#include "atk-dbus.h"
+#include "accessible-register.h"
+#include "accessible-marshaller.h"
 
 #include "spi-common/bitarray.h"
 #include "spi-common/spi-dbus.h"
similarity index 99%
rename from atk-adaptor/component.c
rename to atk-adaptor/component-adaptor.c
index cd132da..25e44c2 100644 (file)
@@ -25,7 +25,7 @@
 #include <atk/atk.h>
 #include <droute/droute.h>
 
-#include "atk-dbus.h"
+#include "accessible-marshaller.h"
 #include "spi-common/spi-dbus.h"
 
 static DBusMessage *
index cc03daf..e4991c3 100644 (file)
@@ -2,7 +2,7 @@
  * AT-SPI - Assistive Technology Service Provider Interface
  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
  *
- * Copyright 2008, Codethink Ltd.
+ * Copyright 2008, 2009, Codethink Ltd.
  * Copyright 2001, 2002, 2003 Sun Microsystems Inc.,
  * Copyright 2001, 2002, 2003 Ximian, Inc.
  *
@@ -28,7 +28,7 @@
 #include <droute/droute.h>
 
 #include "bridge.h"
-#include "atk-dbus.h"
+#include "accessible-register.h"
 
 #include "spi-common/spi-dbus.h"
 
@@ -37,13 +37,6 @@ static GArray *listener_ids = NULL;
 static gint atk_bridge_key_event_listener_id;
 static gint atk_bridge_focus_tracker_id;
 
-/* Amazingly the ATK event callbacks dont have a user
- * data parameter. Instead, with great sadness, we use
- * some global data. Data is declared and initialized
- * in bridge.c.
- */
-extern SpiAppData *atk_adaptor_app_data;
-
 /*---------------------------------------------------------------------------*/
 
 #define ITF_EVENT_OBJECT   "org.freedesktop.atspi.Event.Object"
index d40567d..d62f9ce 100644 (file)
@@ -4,6 +4,7 @@
  *
  * Copyright 2001, 2002 Sun Microsystems Inc.,
  * Copyright 2001, 2002 Ximian, Inc.
+ * Copyright 2008, 2009 Codethink Ltd.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
  * Boston, MA 02111-1307, USA.
  */
 
-#ifndef SPI_EVENT_H_
-#define SPI_EVENT_H_
+#ifndef EVENT_H
+#define EVENT_H
 
-#include <atk/atk.h>
 #include <spi-common/spi-types.h>
 
-G_BEGIN_DECLS
-
 void spi_atk_register_event_listeners   (void);
 void spi_atk_deregister_event_listeners (void);
 void spi_atk_tidy_windows               (void);
 
-G_END_DECLS
-
-#endif /* SPI_EVENT_H_ */
+#endif /* EVENT_H */
similarity index 99%
rename from atk-adaptor/hyperlink.c
rename to atk-adaptor/hyperlink-adaptor.c
index 39264d5..9634512 100644 (file)
@@ -25,7 +25,7 @@
 #include <atk/atk.h>
 #include <droute/droute.h>
 
-#include "atk-dbus.h"
+#include "accessible-marshaller.h"
 #include "spi-common/spi-dbus.h"
 
 static dbus_bool_t
similarity index 99%
rename from atk-adaptor/streamablecontent.c
rename to atk-adaptor/streamablecontent-adaptor.c
index cbe0686..8b3d40b 100644 (file)
@@ -25,7 +25,7 @@
 #include <config.h>
 #include <stdio.h>
 #include <string.h>
-#include <libspi/accessible.h>
+
 #include <libspi/component.h>
 #include <libspi/streamablecontent.h>
 
similarity index 99%
rename from atk-adaptor/table.c
rename to atk-adaptor/table-adaptor.c
index c0c6b0f..cc8cfbe 100644 (file)
@@ -25,7 +25,7 @@
 #include <atk/atk.h>
 #include <droute/droute.h>
 
-#include "atk-dbus.h"
+#include "accessible-marshaller.h"
 #include "spi-common/spi-dbus.h"
 
 static dbus_bool_t
similarity index 99%
rename from atk-adaptor/tree.c
rename to atk-adaptor/tree-adaptor.c
index ddac5e3..a4411d0 100644 (file)
@@ -5,6 +5,7 @@
  * Copyright 2008 Novell, Inc.
  * Copyright 2001, 2002 Sun Microsystems Inc.,
  * Copyright 2001, 2002 Ximian, Inc.
+ * Copyright 2008, 2009 Codethink Ltd.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -27,9 +28,9 @@
 #include <atk/atk.h>
 #include <droute/droute.h>
 
-#include "atk-dbus.h"
-#include "spi-common/spi-dbus.h"
 #include "bridge.h"
+#include "accessible-register.h"
+#include "spi-common/spi-dbus.h"
 
 /*---------------------------------------------------------------------------*/
 
similarity index 89%
rename from atk-adaptor/tree.h
rename to atk-adaptor/tree-adaptor.h
index cdd2b56..b0c99df 100644 (file)
@@ -4,6 +4,7 @@
  *
  * Copyright 2001, 2002 Sun Microsystems Inc.,
  * Copyright 2001, 2002 Ximian, Inc.
+ * Copyright 2008, 2009 Codethink Ltd.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
  * Boston, MA 02111-1307, USA.
  */
 
-#ifndef SPI_TREE_H_
-#define SPI_TREE_H_
+#ifndef TREE_ADAPTOR_H
+#define TREE_ADAPTOR_H
 
 #include <atk/atk.h>
-#include <spi-common/spi-types.h>
 #include <dbus/dbus.h>
 
-G_BEGIN_DECLS
-
 void
 spi_emit_cache_update  (AtkObject *accessible, DBusConnection *bus);
 
 void
 spi_emit_cache_removal (guint ref, DBusConnection *bus);
 
-G_END_DECLS
-
-#endif /* SPI_ACCESSIBLE_H_ */
+#endif /* TREE_ADAPTOR_H */