1
/*
2
 * AT-SPI - Assistive Technology Service Provider Interface
3
 * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4
 *
5
 * Copyright 2008, 2009 Codethink Ltd.
6
 * Copyright 2001, 2002, 2003 Sun Microsystems Inc.,
7
 * Copyright 2001, 2002, 2003 Ximian, Inc.
8
 *
9
 * This library is free software; you can redistribute it and/or
10
 * modify it under the terms of the GNU Lesser General Public
11
 * License as published by the Free Software Foundation; either
12
 * version 2.1 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
 * Lesser General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU Lesser General Public
20
 * License along with this library; if not, write to the
21
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22
 * Boston, MA 02110-1301, USA.
23
 */
24

            
25
#define _GNU_SOURCE
26
#include "config.h"
27

            
28
#include <atk-bridge.h>
29
#include <gmodule.h>
30

            
31
/*---------------------------------------------------------------------------*/
32

            
33
int
34
gtk_module_init (gint *argc, gchar **argv[])
35
{
36
  return atk_bridge_adaptor_init (argc, argv);
37
}
38

            
39
gchar *
40
g_module_check_init (GModule *module)
41
{
42
  g_module_make_resident (module);
43

            
44
  return NULL;
45
}
46

            
47
void
48
gnome_accessibility_module_init (void)
49
{
50
  atk_bridge_adaptor_init (NULL, NULL);
51

            
52
  if (g_getenv ("AT_SPI_DEBUG"))
53
    {
54
      g_print ("Atk Accessibility bridge initialized\n");
55
    }
56
}
57

            
58
void
59
gnome_accessibility_module_shutdown (void)
60
{
61
  atk_bridge_adaptor_cleanup ();
62
}