1 /* AT-SPI : Assistive Technology Service Provider Interface
2 * Copyright 2001 Sun Microsystems Inc.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #include "remoteobject.h"
22 Accessibility_Accessible
23 spi_remote_object_get_accessible (SpiRemoteObject *remote)
25 SpiRemoteObjectIface *iface;
27 g_return_val_if_fail (SPI_IS_REMOTE_OBJECT (remote), CORBA_OBJECT_NIL);
29 iface = SPI_REMOTE_OBJECT_GET_IFACE (remote);
31 if (!iface->get_accessible)
32 return CORBA_OBJECT_NIL;
34 return iface->get_accessible (remote);
38 spi_remote_object_get_type (void)
40 static GType type = 0;
44 static const GTypeInfo typeInfo =
46 sizeof (SpiRemoteObjectIface),
48 (GBaseFinalizeFunc) NULL,
49 (GClassInitFunc) NULL,
50 (GClassFinalizeFunc) NULL,
52 (GInstanceInitFunc) NULL,
55 type = g_type_register_static (G_TYPE_INTERFACE, "SpiRemoteObject", &typeInfo, 0) ;