source: trunk/third/at-spi/libspi/remoteobject.c @ 18422

Revision 18422, 1.7 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18421, which included commits to RCS files with non-trunk default branches.
Line 
1/* AT-SPI : Assistive Technology Service Provider Interface
2 * Copyright 2001 Sun Microsystems Inc.
3 *
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.
8 *
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.
13 *
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.
18 */
19
20#include "remoteobject.h"
21
22Accessibility_Accessible
23spi_remote_object_get_accessible (SpiRemoteObject *remote)
24{
25  SpiRemoteObjectIface *iface; 
26
27  g_return_val_if_fail (SPI_IS_REMOTE_OBJECT (remote), CORBA_OBJECT_NIL);
28 
29  iface = SPI_REMOTE_OBJECT_GET_IFACE (remote);
30
31  if (!iface->get_accessible)
32    return CORBA_OBJECT_NIL;
33
34  return iface->get_accessible (remote);
35}
36
37GType
38spi_remote_object_get_type (void)
39{
40  static GType type = 0;
41
42  if (!type)
43    {
44      static const GTypeInfo typeInfo =
45      {
46        sizeof (SpiRemoteObjectIface),
47        (GBaseInitFunc) NULL,
48        (GBaseFinalizeFunc) NULL,
49        (GClassInitFunc) NULL,
50        (GClassFinalizeFunc) NULL,
51        NULL, 0, 0,
52        (GInstanceInitFunc) NULL,
53      };
54
55      type = g_type_register_static (G_TYPE_INTERFACE, "SpiRemoteObject", &typeInfo, 0) ;
56    }
57
58  return type;
59}
Note: See TracBrowser for help on using the repository browser.