Add a class for taking leased references of GObjects.
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / object.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2008 Novell, Inc.
6  * Copyright 2008, 2009, 2010 Codethink Ltd.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23
24 #ifndef ACCESSIBLE_OBJECT_H
25 #define ACCESSIBLE_OBJECT_H
26
27 #include <atk/atk.h>
28 #include <dbus/dbus.h>
29
30 void
31 spi_object_append_reference (DBusMessageIter * iter, AtkObject * obj);
32
33 void
34 spi_object_append_v_reference (DBusMessageIter * iter, AtkObject * obj);
35
36 void
37 spi_object_append_desktop_reference (DBusMessageIter * iter);
38
39 void
40 spi_object_append_null_reference (DBusMessageIter * iter);
41
42 DBusMessage *
43 spi_object_return_reference (DBusMessage * msg, AtkObject * obj);
44
45 void
46 spi_object_append_interfaces (DBusMessageIter * iter, AtkObject * obj);
47
48 void
49 spi_object_append_attribute_set (DBusMessageIter * iter, AtkAttributeSet * attr);
50
51 Accessibility_Role
52 spi_accessible_role_from_atk_role (AtkRole role);
53
54 #endif /* ACCESSIBLE_OBJECT_H */