|
1 /* tp-chan.gen.h |
|
2 * |
|
3 * Copyright (C) 2005 Collabora Ltd. |
|
4 * |
|
5 * |
|
6 * This library is free software; you can redistribute it and/or |
|
7 * modify it under the terms of the GNU Lesser General Public |
|
8 * License as published by the Free Software Foundation; either |
|
9 * version 2.1 of the License, or (at your option) any later version. |
|
10 * |
|
11 * This library is distributed in the hope that it will be useful, |
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 * Lesser General Public License for more details. |
|
15 * |
|
16 * You should have received a copy of the GNU Lesser General Public |
|
17 * License along with this library; if not, write to the Free Software |
|
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
19 * |
|
20 */ |
|
21 /* Generated by dbus-binding-tool; do not edit! */ |
|
22 |
|
23 #include <glib/gtypes.h> |
|
24 #include <glib/gerror.h> |
|
25 #include <dbus/dbus-glib.h> |
|
26 |
|
27 G_BEGIN_DECLS |
|
28 |
|
29 #ifndef DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_Telepathy_Channel |
|
30 #define DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_Telepathy_Channel |
|
31 |
|
32 static |
|
33 #ifdef G_HAVE_INLINE |
|
34 inline |
|
35 #endif |
|
36 gboolean |
|
37 tp_chan_close (DBusGProxy *proxy, GError **error) |
|
38 |
|
39 { |
|
40 return dbus_g_proxy_call (proxy, "Close", error, G_TYPE_INVALID, G_TYPE_INVALID); |
|
41 } |
|
42 |
|
43 typedef void (*tp_chan_close_reply) (DBusGProxy *proxy, GError *error, gpointer userdata); |
|
44 |
|
45 static void |
|
46 tp_chan_close_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) |
|
47 { |
|
48 DBusGAsyncData *data = (DBusGAsyncData*)user_data; |
|
49 GError *error = NULL; |
|
50 dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID); |
|
51 (*(tp_chan_close_reply)data->cb) (proxy, error, data->userdata); |
|
52 return; |
|
53 } |
|
54 |
|
55 static |
|
56 #ifdef G_HAVE_INLINE |
|
57 inline |
|
58 #endif |
|
59 DBusGProxyCall* |
|
60 tp_chan_close_async (DBusGProxy *proxy, tp_chan_close_reply callback, gpointer userdata) |
|
61 |
|
62 { |
|
63 DBusGAsyncData *stuff; |
|
64 stuff = g_new (DBusGAsyncData, 1); |
|
65 stuff->cb = G_CALLBACK (callback); |
|
66 stuff->userdata = userdata; |
|
67 return dbus_g_proxy_begin_call (proxy, "Close", tp_chan_close_async_callback, stuff, g_free, G_TYPE_INVALID); |
|
68 } |
|
69 static |
|
70 #ifdef G_HAVE_INLINE |
|
71 inline |
|
72 #endif |
|
73 gboolean |
|
74 tp_chan_get_channel_type (DBusGProxy *proxy, char ** OUT_arg0, GError **error) |
|
75 |
|
76 { |
|
77 return dbus_g_proxy_call (proxy, "GetChannelType", error, G_TYPE_INVALID, G_TYPE_STRING, OUT_arg0, G_TYPE_INVALID); |
|
78 } |
|
79 |
|
80 typedef void (*tp_chan_get_channel_type_reply) (DBusGProxy *proxy, char * OUT_arg0, GError *error, gpointer userdata); |
|
81 |
|
82 static void |
|
83 tp_chan_get_channel_type_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) |
|
84 { |
|
85 DBusGAsyncData *data = (DBusGAsyncData*)user_data; |
|
86 GError *error = NULL; |
|
87 char * OUT_arg0; |
|
88 dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_STRING, &OUT_arg0, G_TYPE_INVALID); |
|
89 (*(tp_chan_get_channel_type_reply)data->cb) (proxy, OUT_arg0, error, data->userdata); |
|
90 return; |
|
91 } |
|
92 |
|
93 static |
|
94 #ifdef G_HAVE_INLINE |
|
95 inline |
|
96 #endif |
|
97 DBusGProxyCall* |
|
98 tp_chan_get_channel_type_async (DBusGProxy *proxy, tp_chan_get_channel_type_reply callback, gpointer userdata) |
|
99 |
|
100 { |
|
101 DBusGAsyncData *stuff; |
|
102 stuff = g_new (DBusGAsyncData, 1); |
|
103 stuff->cb = G_CALLBACK (callback); |
|
104 stuff->userdata = userdata; |
|
105 return dbus_g_proxy_begin_call (proxy, "GetChannelType", tp_chan_get_channel_type_async_callback, stuff, g_free, G_TYPE_INVALID); |
|
106 } |
|
107 static |
|
108 #ifdef G_HAVE_INLINE |
|
109 inline |
|
110 #endif |
|
111 gboolean |
|
112 tp_chan_get_handle (DBusGProxy *proxy, guint* OUT_arg0, guint* OUT_arg1, GError **error) |
|
113 |
|
114 { |
|
115 return dbus_g_proxy_call (proxy, "GetHandle", error, G_TYPE_INVALID, G_TYPE_UINT, OUT_arg0, G_TYPE_UINT, OUT_arg1, G_TYPE_INVALID); |
|
116 } |
|
117 |
|
118 typedef void (*tp_chan_get_handle_reply) (DBusGProxy *proxy, guint OUT_arg0, guint OUT_arg1, GError *error, gpointer userdata); |
|
119 |
|
120 static void |
|
121 tp_chan_get_handle_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) |
|
122 { |
|
123 DBusGAsyncData *data = (DBusGAsyncData*)user_data; |
|
124 GError *error = NULL; |
|
125 guint OUT_arg0; |
|
126 guint OUT_arg1; |
|
127 dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_UINT, &OUT_arg0, G_TYPE_UINT, &OUT_arg1, G_TYPE_INVALID); |
|
128 (*(tp_chan_get_handle_reply)data->cb) (proxy, OUT_arg0, OUT_arg1, error, data->userdata); |
|
129 return; |
|
130 } |
|
131 |
|
132 static |
|
133 #ifdef G_HAVE_INLINE |
|
134 inline |
|
135 #endif |
|
136 DBusGProxyCall* |
|
137 tp_chan_get_handle_async (DBusGProxy *proxy, tp_chan_get_handle_reply callback, gpointer userdata) |
|
138 |
|
139 { |
|
140 DBusGAsyncData *stuff; |
|
141 stuff = g_new (DBusGAsyncData, 1); |
|
142 stuff->cb = G_CALLBACK (callback); |
|
143 stuff->userdata = userdata; |
|
144 return dbus_g_proxy_begin_call (proxy, "GetHandle", tp_chan_get_handle_async_callback, stuff, g_free, G_TYPE_INVALID); |
|
145 } |
|
146 static |
|
147 #ifdef G_HAVE_INLINE |
|
148 inline |
|
149 #endif |
|
150 gboolean |
|
151 tp_chan_get_interfaces (DBusGProxy *proxy, char *** OUT_arg0, GError **error) |
|
152 |
|
153 { |
|
154 return dbus_g_proxy_call (proxy, "GetInterfaces", error, G_TYPE_INVALID, G_TYPE_STRV, OUT_arg0, G_TYPE_INVALID); |
|
155 } |
|
156 |
|
157 typedef void (*tp_chan_get_interfaces_reply) (DBusGProxy *proxy, char * *OUT_arg0, GError *error, gpointer userdata); |
|
158 |
|
159 static void |
|
160 tp_chan_get_interfaces_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) |
|
161 { |
|
162 DBusGAsyncData *data = (DBusGAsyncData*)user_data; |
|
163 GError *error = NULL; |
|
164 char ** OUT_arg0; |
|
165 dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_STRV, &OUT_arg0, G_TYPE_INVALID); |
|
166 (*(tp_chan_get_interfaces_reply)data->cb) (proxy, OUT_arg0, error, data->userdata); |
|
167 return; |
|
168 } |
|
169 |
|
170 static |
|
171 #ifdef G_HAVE_INLINE |
|
172 inline |
|
173 #endif |
|
174 DBusGProxyCall* |
|
175 tp_chan_get_interfaces_async (DBusGProxy *proxy, tp_chan_get_interfaces_reply callback, gpointer userdata) |
|
176 |
|
177 { |
|
178 DBusGAsyncData *stuff; |
|
179 stuff = g_new (DBusGAsyncData, 1); |
|
180 stuff->cb = G_CALLBACK (callback); |
|
181 stuff->userdata = userdata; |
|
182 return dbus_g_proxy_begin_call (proxy, "GetInterfaces", tp_chan_get_interfaces_async_callback, stuff, g_free, G_TYPE_INVALID); |
|
183 } |
|
184 #endif /* defined DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_Telepathy_Channel */ |
|
185 |
|
186 G_END_DECLS |