4d0a13173639721eda13c5fffe8156e1def50c00
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / adaptors / 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 void
31 spi_dbus_append_name_and_path_inner (DBusMessageIter * iter,
32                                      const char *bus_name, const char *path);
33
34 void
35 spi_dbus_append_name_and_path (DBusMessage * message, DBusMessageIter * iter,
36                                AtkObject * obj, gboolean do_register,
37                                gboolean unref);
38
39 DBusMessage *spi_dbus_return_object (DBusMessage * message, AtkObject * obj,
40                                      gboolean do_register, gboolean unref);
41
42 DBusMessage *spi_dbus_return_hyperlink (DBusMessage * message,
43                                         AtkHyperlink * link,
44                                         AtkObject * container,
45                                         gboolean unref);
46
47 DBusMessage *spi_dbus_return_sub_object (DBusMessage * message, GObject * sub,
48                                          GObject * container, gboolean unref);
49
50 dbus_bool_t
51 spi_dbus_return_v_object (DBusMessageIter * iter, AtkObject * obj, int unref);
52
53 void spi_atk_append_accessible (AtkObject * obj, gpointer iter);
54
55 void
56 spi_atk_append_attribute_set (DBusMessageIter * iter, AtkAttributeSet * attr);
57
58 void
59 spi_atk_append_attribute_set_inner (DBusMessageIter * iter,
60                                     AtkAttributeSet * attr);
61
62 void
63 append_atk_object_interfaces (AtkObject * object, DBusMessageIter * iter);
64 #endif /* ACCESSIBLE_MARSHALLER */