f7298d0602db9c702d4e99876932091d3593430d
[platform/upstream/at-spi2-core.git] / dbind / dbind.h
1 /*
2  * Copyright 2008-2011 Novell, 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 #ifndef _DBIND_H_
21 #define _DBIND_H_
22
23 #define DBUS_API_SUBJECT_TO_CHANGE
24 #include <dbus/dbus.h>
25 #include <dbind/dbind-any.h>
26
27 DBusMessage *
28 dbind_send_and_allow_reentry (DBusConnection *bus, DBusMessage *message, DBusError *error);
29
30 dbus_bool_t
31 dbind_method_call_reentrant_va (DBusConnection *cnx,
32                                 const char     *bus_name,
33                                 const char     *path,
34                                 const char     *interface,
35                                 const char     *method,
36                                 DBusError      *opt_error,
37                                 const char     *arg_types,
38                                 va_list         args);
39
40 dbus_bool_t
41 dbind_method_call_reentrant (DBusConnection *cnx,
42                              const char     *bus_name,
43                              const char     *path,
44                              const char     *interface,
45                              const char     *method,
46                              DBusError      *opt_error,
47                              const char     *arg_types,
48                              ...);
49
50 dbus_bool_t
51 dbind_emit_signal_va (DBusConnection *cnx,
52                       const char     *path,
53                       const char     *interface,
54                       const char     *signal,
55                       DBusError      *opt_error,
56                       const char     *arg_types,
57                       va_list         args);
58
59 dbus_bool_t
60 dbind_emit_signal (DBusConnection *cnx,
61                    const char     *path,
62                    const char     *interface,
63                    const char     *signal,
64                    DBusError      *opt_error,
65                    const char     *arg_types,
66                    ...);
67
68 void dbind_set_timeout (int timeout);
69 #endif /* _DBIND_H_ */