* 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"
GError *err = NULL;
DBusError error;
DBusConnection *bus;
+ AtkObject *root;
gchar *introspection_directory;
DRoutePath *treepath, *accpath;
+ root = atk_get_root ();
+ g_return_val_if_fail (root, 0);
+
/* Parse command line options */
opt = g_option_context_new(NULL);
g_option_context_add_main_entries(opt, atspi_option_entries, NULL);
/* Allocate global data and do ATK initializations */
atk_adaptor_app_data = g_new0 (SpiAppData, 1);
atk_misc = atk_misc_get_instance ();
- atk_adaptor_app_data->root = atk_get_root();
+ atk_adaptor_app_data->root = root;
/* Set up D-Bus connection and register bus name */
dbus_error_init (&error);