Removed intltool dependency and translation of .server file. Fixes bug 322846.
[platform/core/uifw/at-spi2-atk.git] / libspi / remoteobject.c
1 /* AT-SPI : Assistive Technology Service Provider Interface
2  * Copyright 2001, 2002 Sun Microsystems Inc.,
3  * Copyright 2001, 2002 Ximian, Inc.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #include "remoteobject.h"
22
23 Accessibility_Accessible
24 spi_remote_object_get_accessible (SpiRemoteObject *remote)
25 {
26   SpiRemoteObjectIface *iface;  
27
28   g_return_val_if_fail (SPI_IS_REMOTE_OBJECT (remote), CORBA_OBJECT_NIL);
29   
30   iface = SPI_REMOTE_OBJECT_GET_IFACE (remote);
31
32   if (!iface->get_accessible)
33     return CORBA_OBJECT_NIL;
34
35   return iface->get_accessible (remote);
36 }
37
38 GType
39 spi_remote_object_get_type (void)
40 {
41   static GType type = 0;
42
43   if (!type)
44     {
45       static const GTypeInfo typeInfo =
46       {
47         sizeof (SpiRemoteObjectIface),
48         (GBaseInitFunc) NULL,
49         (GBaseFinalizeFunc) NULL,
50         (GClassInitFunc) NULL,
51         (GClassFinalizeFunc) NULL,
52         NULL, 0, 0,
53         (GInstanceInitFunc) NULL,
54       };
55
56       type = g_type_register_static (G_TYPE_INTERFACE, "SpiRemoteObject", &typeInfo, 0) ;
57     }
58
59   return type;
60 }