Move adaptor_*() functions into their own header
authorBastien Nocera <hadess@hadess.net>
Wed, 13 Jun 2012 16:07:52 +0000 (17:07 +0100)
committerBastien Nocera <hadess@hadess.net>
Thu, 14 Jun 2012 17:00:24 +0000 (18:00 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=678037

atk-adaptor/Makefile.am
atk-adaptor/atk-bridge.h [new file with mode: 0644]
atk-adaptor/bridge.c
atk-adaptor/bridge.h
atk-adaptor/gtk-2.0/module.c
atk-adaptor/gtk-3.0/module.c

index 2992f0a..6619c2d 100644 (file)
@@ -29,7 +29,8 @@ libatk_bridge_2_0_la_SOURCES =  \
        event.c                 \
        event.h                 \
        spi-dbus.c              \
-       spi-dbus.h
+       spi-dbus.h              \
+       atk-bridge.h
 
 libatk_bridge_2_0_la_LIBADD = \
        $(DBUS_LIBS)          \
diff --git a/atk-adaptor/atk-bridge.h b/atk-adaptor/atk-bridge.h
new file mode 100644 (file)
index 0000000..ae0fcc5
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * AT-SPI - Assistive Technology Service Provider Interface
+ * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
+ *
+ * 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
+ * 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 ATK_BRIDGE_H
+#define ATK_BRIDGE_H
+
+G_BEGIN_DECLS
+
+int adaptor_init (int * argc, char ** argv[]);
+void adaptor_cleanup (void);
+
+G_END_DECLS
+
+#endif /* ATK_BRIDGE_H */
index 6822a02..a179ab8 100644 (file)
@@ -37,6 +37,7 @@
 
 #include <droute/droute.h>
 #include <atspi/atspi.h>
+#include <atk-bridge.h>
 
 #include "bridge.h"
 #include "event.h"
index 949af30..c24183e 100644 (file)
@@ -66,8 +66,6 @@ char *app_bus_addr;
 
 extern SpiBridge *spi_global_app_data;
 
-int adaptor_init (gint * argc, gchar ** argv[]);
-void adaptor_cleanup (void);
 void spi_atk_add_client (const char *bus_name);
 void spi_atk_remove_client (const char *bus_name);
 
index 4fa6947..a7251d2 100644 (file)
@@ -26,8 +26,7 @@
 #include "config.h"
 
 #include <gmodule.h>
-
-#include "bridge.h"
+#include <atk-bridge.h>
 
 /*---------------------------------------------------------------------------*/
 
index 82ddce0..0483cca 100644 (file)
@@ -26,8 +26,7 @@
 #include "config.h"
 
 #include <gmodule.h>
-
-#include "bridge.h"
+#include <atk-bridge.h>
 
 /*---------------------------------------------------------------------------*/