2009-08-28 Mike Gorse <mgorse@novell.com>
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / accessible-marshaller.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 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_MARSHALLER
25 #define ACCESSIBLE_MARSHALLER
26
27 #include <dbus/dbus.h>
28 #include <atk/atk.h>
29
30 DBusMessage *
31 spi_dbus_return_object (DBusMessage *message, AtkObject *obj, gboolean do_register, gboolean unref);
32
33 DBusMessage *
34 spi_dbus_return_hyperlink (DBusMessage *message, AtkHyperlink *link, AtkObject *container, gboolean unref);
35
36 DBusMessage *
37 spi_dbus_return_sub_object (DBusMessage *message, GObject *sub, GObject *container, gboolean unref);
38
39 dbus_bool_t
40 spi_dbus_return_v_object (DBusMessageIter *iter, AtkObject *obj, int unref);
41
42 void
43 spi_atk_append_accessible(AtkObject *obj, gpointer iter);
44
45 void
46 spi_atk_append_attribute_set (DBusMessageIter *iter, AtkAttributeSet *attr);
47
48 void
49 spi_atk_append_attribute_set_inner (DBusMessageIter *iter, AtkAttributeSet *attr);
50
51 void
52 append_atk_object_interfaces (AtkObject *object, DBusMessageIter *iter);
53 #endif /* ACCESSIBLE_MARSHALLER */