31
34
<p>Tube channels — client-side wrappers for the Tube channel interface,
32
35
StreamTube channel type and DBusTube channel type.</p>
34
<td class="gallery_image" valign="top" align="right"></td>
37
<td valign="top" align="right"></td>
35
38
</tr></table></div>
36
<div class="refsect1">
37
<a name="telepathy-glib-channel-tube.functions"></a><h2>Functions</h2>
38
<div class="informaltable"><table width="100%" border="0">
40
<col width="150px" class="functions_return">
41
<col class="functions_name">
45
<td class="function_type">
46
<a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> *
48
<td class="function_name">
49
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-interface-tube-connect-to-tube-channel-state-changed" title="tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed ()">tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed</a> <span class="c_punctuation">()</span>
53
<td class="function_type">
54
<span class="returnvalue">void</span>
56
<td class="function_name">
57
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-interface-tube-signal-callback-tube-channel-state-changed" title="tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed ()">*tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
61
<td class="function_type">
62
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
64
<td class="function_name">
65
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-run-offer" title="tp_cli_channel_type_stream_tube_run_offer ()">tp_cli_channel_type_stream_tube_run_offer</a> <span class="c_punctuation">()</span>
69
<td class="function_type">
70
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
72
<td class="function_name">
73
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-run-accept" title="tp_cli_channel_type_stream_tube_run_accept ()">tp_cli_channel_type_stream_tube_run_accept</a> <span class="c_punctuation">()</span>
77
<td class="function_type">
78
<a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> *
80
<td class="function_name">
81
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-call-offer" title="tp_cli_channel_type_stream_tube_call_offer ()">tp_cli_channel_type_stream_tube_call_offer</a> <span class="c_punctuation">()</span>
85
<td class="function_type">
86
<a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> *
88
<td class="function_name">
89
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-call-accept" title="tp_cli_channel_type_stream_tube_call_accept ()">tp_cli_channel_type_stream_tube_call_accept</a> <span class="c_punctuation">()</span>
93
<td class="function_type">
94
<span class="returnvalue">void</span>
96
<td class="function_name">
97
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-callback-for-offer" title="tp_cli_channel_type_stream_tube_callback_for_offer ()">*tp_cli_channel_type_stream_tube_callback_for_offer</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
101
<td class="function_type">
102
<span class="returnvalue">void</span>
104
<td class="function_name">
105
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-callback-for-accept" title="tp_cli_channel_type_stream_tube_callback_for_accept ()">*tp_cli_channel_type_stream_tube_callback_for_accept</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
109
<td class="function_type">
110
<a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> *
112
<td class="function_name">
113
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-new-remote-connection" title="tp_cli_channel_type_stream_tube_connect_to_new_remote_connection ()">tp_cli_channel_type_stream_tube_connect_to_new_remote_connection</a> <span class="c_punctuation">()</span>
117
<td class="function_type">
118
<a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> *
120
<td class="function_name">
121
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-new-local-connection" title="tp_cli_channel_type_stream_tube_connect_to_new_local_connection ()">tp_cli_channel_type_stream_tube_connect_to_new_local_connection</a> <span class="c_punctuation">()</span>
125
<td class="function_type">
126
<a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> *
128
<td class="function_name">
129
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-connection-closed" title="tp_cli_channel_type_stream_tube_connect_to_connection_closed ()">tp_cli_channel_type_stream_tube_connect_to_connection_closed</a> <span class="c_punctuation">()</span>
133
<td class="function_type">
134
<span class="returnvalue">void</span>
136
<td class="function_name">
137
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-new-remote-connection" title="tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection ()">*tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
141
<td class="function_type">
142
<span class="returnvalue">void</span>
144
<td class="function_name">
145
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-new-local-connection" title="tp_cli_channel_type_stream_tube_signal_callback_new_local_connection ()">*tp_cli_channel_type_stream_tube_signal_callback_new_local_connection</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
149
<td class="function_type">
150
<span class="returnvalue">void</span>
152
<td class="function_name">
153
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-connection-closed" title="tp_cli_channel_type_stream_tube_signal_callback_connection_closed ()">*tp_cli_channel_type_stream_tube_signal_callback_connection_closed</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
157
<td class="function_type">
158
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
160
<td class="function_name">
161
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-run-offer" title="tp_cli_channel_type_dbus_tube_run_offer ()">tp_cli_channel_type_dbus_tube_run_offer</a> <span class="c_punctuation">()</span>
165
<td class="function_type">
166
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
168
<td class="function_name">
169
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-run-accept" title="tp_cli_channel_type_dbus_tube_run_accept ()">tp_cli_channel_type_dbus_tube_run_accept</a> <span class="c_punctuation">()</span>
173
<td class="function_type">
174
<a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> *
176
<td class="function_name">
177
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-call-offer" title="tp_cli_channel_type_dbus_tube_call_offer ()">tp_cli_channel_type_dbus_tube_call_offer</a> <span class="c_punctuation">()</span>
181
<td class="function_type">
182
<a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> *
184
<td class="function_name">
185
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-call-accept" title="tp_cli_channel_type_dbus_tube_call_accept ()">tp_cli_channel_type_dbus_tube_call_accept</a> <span class="c_punctuation">()</span>
189
<td class="function_type">
190
<span class="returnvalue">void</span>
192
<td class="function_name">
193
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-callback-for-offer" title="tp_cli_channel_type_dbus_tube_callback_for_offer ()">*tp_cli_channel_type_dbus_tube_callback_for_offer</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
197
<td class="function_type">
198
<span class="returnvalue">void</span>
200
<td class="function_name">
201
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-callback-for-accept" title="tp_cli_channel_type_dbus_tube_callback_for_accept ()">*tp_cli_channel_type_dbus_tube_callback_for_accept</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
205
<td class="function_type">
206
<a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> *
208
<td class="function_name">
209
<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-connect-to-dbus-names-changed" title="tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed ()">tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed</a> <span class="c_punctuation">()</span>
213
<td class="function_type">
214
<span class="returnvalue">void</span>
216
<td class="function_name">
217
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-signal-callback-dbus-names-changed" title="tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed ()">*tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
223
<div class="refsect1">
224
<a name="telepathy-glib-channel-tube.object-hierarchy"></a><h2>Object Hierarchy</h2>
228
<div class="refsect1">
229
<a name="telepathy-glib-channel-tube.includes"></a><h2>Includes</h2>
230
<pre class="synopsis">#include <telepathy-glib/telepathy-glib-dbus.h>
39
<div class="refsynopsisdiv">
40
<a name="telepathy-glib-channel-tube.synopsis"></a><h2>Synopsis</h2>
41
<pre class="synopsis">
42
#include <telepathy-glib/telepathy-glib-dbus.h>
44
<a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> * <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-interface-tube-connect-to-tube-channel-state-changed" title="tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed ()">tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed</a>
45
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
46
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-interface-tube-signal-callback-tube-channel-state-changed" title="tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed ()"><span class="type">tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed</span></a> callback</code></em>,
47
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
48
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
49
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
50
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
51
<span class="returnvalue">void</span> (<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-interface-tube-signal-callback-tube-channel-state-changed" title="tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed ()">*tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed</a>)
52
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
53
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_State</code></em>,
54
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
55
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
56
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-run-offer" title="tp_cli_channel_type_stream_tube_run_offer ()">tp_cli_channel_type_stream_tube_run_offer</a>
57
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
58
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
59
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
60
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_address</code></em>,
61
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
62
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
63
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
64
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);
65
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-run-accept" title="tp_cli_channel_type_stream_tube_run_accept ()">tp_cli_channel_type_stream_tube_run_accept</a>
66
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
67
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
68
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
69
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
70
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_access_control_param</code></em>,
71
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> **out_address</code></em>,
72
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
73
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);
74
<a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> * <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-call-offer" title="tp_cli_channel_type_stream_tube_call_offer ()">tp_cli_channel_type_stream_tube_call_offer</a>
75
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
76
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
77
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
78
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_address</code></em>,
79
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
80
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
81
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-callback-for-offer" title="tp_cli_channel_type_stream_tube_callback_for_offer ()"><span class="type">tp_cli_channel_type_stream_tube_callback_for_offer</span></a> callback</code></em>,
82
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
83
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
84
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
85
<a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> * <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-call-accept" title="tp_cli_channel_type_stream_tube_call_accept ()">tp_cli_channel_type_stream_tube_call_accept</a>
86
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
87
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
88
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
89
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
90
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_access_control_param</code></em>,
91
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-callback-for-accept" title="tp_cli_channel_type_stream_tube_callback_for_accept ()"><span class="type">tp_cli_channel_type_stream_tube_callback_for_accept</span></a> callback</code></em>,
92
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
93
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
94
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
95
<span class="returnvalue">void</span> (<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-callback-for-offer" title="tp_cli_channel_type_stream_tube_callback_for_offer ()">*tp_cli_channel_type_stream_tube_callback_for_offer</a>)
96
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
97
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
98
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
99
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
100
<span class="returnvalue">void</span> (<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-callback-for-accept" title="tp_cli_channel_type_stream_tube_callback_for_accept ()">*tp_cli_channel_type_stream_tube_callback_for_accept</a>)
101
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
102
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *out_address</code></em>,
103
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
104
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
105
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
106
<a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> * <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-new-remote-connection" title="tp_cli_channel_type_stream_tube_connect_to_new_remote_connection ()">tp_cli_channel_type_stream_tube_connect_to_new_remote_connection</a>
107
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
108
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-new-remote-connection" title="tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection ()"><span class="type">tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection</span></a> callback</code></em>,
109
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
110
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
111
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
112
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
113
<a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> * <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-new-local-connection" title="tp_cli_channel_type_stream_tube_connect_to_new_local_connection ()">tp_cli_channel_type_stream_tube_connect_to_new_local_connection</a>
114
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
115
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-new-local-connection" title="tp_cli_channel_type_stream_tube_signal_callback_new_local_connection ()"><span class="type">tp_cli_channel_type_stream_tube_signal_callback_new_local_connection</span></a> callback</code></em>,
116
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
117
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
118
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
119
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
120
<a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> * <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-connection-closed" title="tp_cli_channel_type_stream_tube_connect_to_connection_closed ()">tp_cli_channel_type_stream_tube_connect_to_connection_closed</a>
121
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
122
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-connection-closed" title="tp_cli_channel_type_stream_tube_signal_callback_connection_closed ()"><span class="type">tp_cli_channel_type_stream_tube_signal_callback_connection_closed</span></a> callback</code></em>,
123
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
124
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
125
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
126
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
127
<span class="returnvalue">void</span> (<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-new-remote-connection" title="tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection ()">*tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection</a>)
128
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
129
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Handle</code></em>,
130
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *arg_Connection_Param</code></em>,
131
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Connection_ID</code></em>,
132
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
133
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
134
<span class="returnvalue">void</span> (<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-new-local-connection" title="tp_cli_channel_type_stream_tube_signal_callback_new_local_connection ()">*tp_cli_channel_type_stream_tube_signal_callback_new_local_connection</a>)
135
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
136
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Connection_ID</code></em>,
137
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
138
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
139
<span class="returnvalue">void</span> (<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-connection-closed" title="tp_cli_channel_type_stream_tube_signal_callback_connection_closed ()">*tp_cli_channel_type_stream_tube_signal_callback_connection_closed</a>)
140
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
141
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Connection_ID</code></em>,
142
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *arg_Error</code></em>,
143
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *arg_Message</code></em>,
144
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
145
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
146
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-run-offer" title="tp_cli_channel_type_dbus_tube_run_offer ()">tp_cli_channel_type_dbus_tube_run_offer</a>
147
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
148
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
149
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
150
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
151
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_address</code></em>,
152
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
153
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);
154
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-run-accept" title="tp_cli_channel_type_dbus_tube_run_accept ()">tp_cli_channel_type_dbus_tube_run_accept</a>
155
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
156
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
157
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
158
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_address</code></em>,
159
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
160
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);
161
<a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> * <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-call-offer" title="tp_cli_channel_type_dbus_tube_call_offer ()">tp_cli_channel_type_dbus_tube_call_offer</a>
162
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
163
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
164
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
165
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
166
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-callback-for-offer" title="tp_cli_channel_type_dbus_tube_callback_for_offer ()"><span class="type">tp_cli_channel_type_dbus_tube_callback_for_offer</span></a> callback</code></em>,
167
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
168
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
169
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
170
<a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> * <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-call-accept" title="tp_cli_channel_type_dbus_tube_call_accept ()">tp_cli_channel_type_dbus_tube_call_accept</a>
171
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
172
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
173
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
174
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-callback-for-accept" title="tp_cli_channel_type_dbus_tube_callback_for_accept ()"><span class="type">tp_cli_channel_type_dbus_tube_callback_for_accept</span></a> callback</code></em>,
175
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
176
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
177
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
178
<span class="returnvalue">void</span> (<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-callback-for-offer" title="tp_cli_channel_type_dbus_tube_callback_for_offer ()">*tp_cli_channel_type_dbus_tube_callback_for_offer</a>)
179
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
180
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *out_address</code></em>,
181
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
182
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
183
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
184
<span class="returnvalue">void</span> (<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-callback-for-accept" title="tp_cli_channel_type_dbus_tube_callback_for_accept ()">*tp_cli_channel_type_dbus_tube_callback_for_accept</a>)
185
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
186
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *out_address</code></em>,
187
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
188
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
189
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
190
<a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> * <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-connect-to-dbus-names-changed" title="tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed ()">tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed</a>
191
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
192
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-signal-callback-dbus-names-changed" title="tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed ()"><span class="type">tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed</span></a> callback</code></em>,
193
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
194
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
195
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
196
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
197
<span class="returnvalue">void</span> (<a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-signal-callback-dbus-names-changed" title="tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed ()">*tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed</a>)
198
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
199
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *arg_Added</code></em>,
200
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Arrays.html#GArray"><span class="type">GArray</span></a> *arg_Removed</code></em>,
201
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
202
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);
233
205
<div class="refsect1">
234
206
<a name="telepathy-glib-channel-tube.description"></a><h2>Description</h2>
235
<p>A "tube" is a mechanism for arbitrary data transfer.
208
A "tube" is a mechanism for arbitrary data transfer.
236
209
This section documents the auto-generated C wrappers for the Tube
237
channel interface, StreamTube channel type and DBusTube channel type.</p>
239
<div class="refsect1">
240
<a name="telepathy-glib-channel-tube.functions_details"></a><h2>Functions</h2>
241
<div class="refsect2">
242
<a name="tp-cli-channel-interface-tube-connect-to-tube-channel-state-changed"></a><h3>tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed ()</h3>
243
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> *
244
tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed
245
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
246
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-interface-tube-signal-callback-tube-channel-state-changed" title="tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed ()"><span class="type">tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed</span></a> callback</code></em>,
247
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
248
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
249
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
250
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
251
<p>Connect a handler to the signal TubeChannelStateChanged.</p>
252
<p>Emitted when the state of the tube channel changes. Valid state transitions are documented with <tp:type>Tube_Channel_State</tp:type>.</p>
253
<div class="refsect3">
254
<a name="id-1.4.34.7.2.6"></a><h4>Parameters</h4>
255
<div class="informaltable"><table width="100%" border="0">
257
<col width="150px" class="parameters_name">
258
<col class="parameters_description">
259
<col width="200px" class="parameters_annotations">
263
<td class="parameter_name"><p>proxy</p></td>
264
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</p></td>
265
<td class="parameter_annotations"> </td>
268
<td class="parameter_name"><p>callback</p></td>
269
<td class="parameter_description"><p>Callback to be called when the signal is
271
<td class="parameter_annotations"> </td>
274
<td class="parameter_name"><p>user_data</p></td>
275
<td class="parameter_description"><p>User-supplied data for the callback</p></td>
276
<td class="parameter_annotations"> </td>
279
<td class="parameter_name"><p>destroy</p></td>
280
<td class="parameter_description"><p>Destructor for the user-supplied data, which
281
will be called when this signal is disconnected, or
282
before this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
283
<td class="parameter_annotations"> </td>
286
<td class="parameter_name"><p>weak_object</p></td>
287
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be weakly referenced;
288
if it is destroyed, this callback will automatically be
289
disconnected</p></td>
290
<td class="parameter_annotations"> </td>
293
<td class="parameter_name"><p>error</p></td>
294
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to raise an error if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is
296
<td class="parameter_annotations"> </td>
301
<div class="refsect3">
302
<a name="id-1.4.34.7.2.7"></a><h4>Returns</h4>
303
<p> a <a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="type">TpProxySignalConnection</span></a> containing all of the
304
above, which can be used to disconnect the signal; or
305
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the proxy does not have the desired interface
306
or has become invalid.</p>
311
<div class="refsect2">
312
<a name="tp-cli-channel-interface-tube-signal-callback-tube-channel-state-changed"></a><h3>tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed ()</h3>
313
<pre class="programlisting"><span class="returnvalue">void</span>
314
<span class="c_punctuation">(</span>*tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed<span class="c_punctuation">)</span>
315
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
316
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_State</code></em>,
317
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
318
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
319
<p>Represents the signature of a callback for the signal TubeChannelStateChanged.</p>
320
<div class="refsect3">
321
<a name="id-1.4.34.7.3.5"></a><h4>Parameters</h4>
322
<div class="informaltable"><table width="100%" border="0">
324
<col width="150px" class="parameters_name">
325
<col class="parameters_description">
326
<col width="200px" class="parameters_annotations">
330
<td class="parameter_name"><p>proxy</p></td>
331
<td class="parameter_description"><p>The proxy on which <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-interface-tube-connect-to-tube-channel-state-changed" title="tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed ()"><code class="function">tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed()</code></a>
333
<td class="parameter_annotations"> </td>
336
<td class="parameter_name"><p>arg_State</p></td>
337
<td class="parameter_description"><p>The new state of the tube. (<a class="link" href="telepathy-glib-enums.html#TpTubeChannelState" title="enum TpTubeChannelState"><span class="type">TpTubeChannelState</span></a>)</p></td>
338
<td class="parameter_annotations"> </td>
341
<td class="parameter_name"><p>user_data</p></td>
342
<td class="parameter_description"><p>User-supplied data</p></td>
343
<td class="parameter_annotations"> </td>
346
<td class="parameter_name"><p>weak_object</p></td>
347
<td class="parameter_description"><p>User-supplied weakly referenced object</p></td>
348
<td class="parameter_annotations"> </td>
355
<div class="refsect2">
356
<a name="tp-cli-channel-type-stream-tube-run-offer"></a><h3>tp_cli_channel_type_stream_tube_run_offer ()</h3>
357
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
358
tp_cli_channel_type_stream_tube_run_offer
359
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
360
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
361
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
362
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_address</code></em>,
363
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
364
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
365
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
366
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);</pre>
367
<div class="warning"><p><code class="literal">tp_cli_channel_type_stream_tube_run_offer</code> is deprecated and should not be used in newly-written code.</p></div>
368
<p>Call the method Offer and run the main loop
369
until it returns. Before calling this method, you must
370
add a reference to any borrowed objects you need to keep,
371
and generally ensure that everything is in a consistent
373
<p>Offer a stream tube exporting the local socket specified.</p>
374
<div class="refsect3">
375
<a name="id-1.4.34.7.4.7"></a><h4>Parameters</h4>
376
<div class="informaltable"><table width="100%" border="0">
378
<col width="150px" class="parameters_name">
379
<col class="parameters_description">
380
<col width="200px" class="parameters_annotations">
384
<td class="parameter_name"><p>proxy</p></td>
385
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</p></td>
386
<td class="parameter_annotations"> </td>
389
<td class="parameter_name"><p>timeout_ms</p></td>
390
<td class="parameter_description"><p>Timeout in milliseconds, or -1 for default</p></td>
391
<td class="parameter_annotations"> </td>
394
<td class="parameter_name"><p>in_address_type</p></td>
395
<td class="parameter_description"><p>Used to pass an 'in' argument: The type of the listening address of the local service, as a member of Socket_Address_Type. (<a class="link" href="telepathy-glib-enums.html#TpSocketAddressType" title="enum TpSocketAddressType"><span class="type">TpSocketAddressType</span></a>)</p></td>
396
<td class="parameter_annotations"> </td>
399
<td class="parameter_name"><p>in_address</p></td>
400
<td class="parameter_description"><p>Used to pass an 'in' argument: The listening address of the local service, as indicated by the address_type.</p></td>
401
<td class="parameter_annotations"> </td>
404
<td class="parameter_name"><p>in_access_control</p></td>
405
<td class="parameter_description"><p>Used to pass an 'in' argument: The access control the local service applies to the local socket, specified so the connection manager can behave appropriately when it connects. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</p></td>
406
<td class="parameter_annotations"> </td>
409
<td class="parameter_name"><p>in_parameters</p></td>
410
<td class="parameter_description"><p>Used to pass an 'in' argument: The dictionary of arbitrary <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">Parameters</tp:dbus-ref> to send with the tube offer.</p></td>
411
<td class="parameter_annotations"> </td>
414
<td class="parameter_name"><p>error</p></td>
415
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to return errors if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
417
<td class="parameter_annotations"> </td>
420
<td class="parameter_name"><p>loop</p></td>
421
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, set before re-entering
422
the main loop, to point to a <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a>
423
which can be used to cancel this call with
424
<a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-quit"><code class="function">g_main_loop_quit()</code></a>, causing a return of
425
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> with <em class="parameter"><code>error</code></em>
426
set to <a class="link" href="telepathy-glib-proxy.html#TP-DBUS-ERROR-CANCELLED:CAPS"><code class="literal">TP_DBUS_ERROR_CANCELLED</code></a></p></td>
427
<td class="parameter_annotations"> </td>
432
<div class="refsect3">
433
<a name="id-1.4.34.7.4.8"></a><h4>Returns</h4>
434
<p> TRUE on success, FALSE and sets <em class="parameter"><code>error</code></em>
440
<div class="refsect2">
441
<a name="tp-cli-channel-type-stream-tube-run-accept"></a><h3>tp_cli_channel_type_stream_tube_run_accept ()</h3>
442
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
443
tp_cli_channel_type_stream_tube_run_accept
444
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
445
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
446
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
447
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
448
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_access_control_param</code></em>,
449
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> **out_address</code></em>,
450
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
451
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);</pre>
452
<div class="warning"><p><code class="literal">tp_cli_channel_type_stream_tube_run_accept</code> is deprecated and should not be used in newly-written code.</p></div>
453
<p>Call the method Accept and run the main loop
454
until it returns. Before calling this method, you must
455
add a reference to any borrowed objects you need to keep,
456
and generally ensure that everything is in a consistent
458
<p>Accept a stream tube that's in the &quot;local pending&quot; state. The connection manager will attempt to open the tube. The tube remains in the &quot;local pending&quot; state until the <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">TubeChannelStateChanged</tp:dbus-ref> signal is emitted.</p>
459
<div class="refsect3">
460
<a name="id-1.4.34.7.5.7"></a><h4>Parameters</h4>
461
<div class="informaltable"><table width="100%" border="0">
463
<col width="150px" class="parameters_name">
464
<col class="parameters_description">
465
<col width="200px" class="parameters_annotations">
469
<td class="parameter_name"><p>proxy</p></td>
470
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</p></td>
471
<td class="parameter_annotations"> </td>
474
<td class="parameter_name"><p>timeout_ms</p></td>
475
<td class="parameter_description"><p>Timeout in milliseconds, or -1 for default</p></td>
476
<td class="parameter_annotations"> </td>
479
<td class="parameter_name"><p>in_address_type</p></td>
480
<td class="parameter_description"><p>Used to pass an 'in' argument: The type of address the connection manager should listen on. (<a class="link" href="telepathy-glib-enums.html#TpSocketAddressType" title="enum TpSocketAddressType"><span class="type">TpSocketAddressType</span></a>)</p></td>
481
<td class="parameter_annotations"> </td>
484
<td class="parameter_name"><p>in_access_control</p></td>
485
<td class="parameter_description"><p>Used to pass an 'in' argument: <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>The type of access control the connection manager should apply to the socket.</p> <p>Note that if you plan to establish more than one connection through the tube, the Socket_Access_Control_Port access control can't be used as you can't connect more than once from the same port.</p> (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</p></td>
486
<td class="parameter_annotations"> </td>
489
<td class="parameter_name"><p>in_access_control_param</p></td>
490
<td class="parameter_description"><p>Used to pass an 'in' argument: A parameter for the access control type, to be interpreted as specified in the documentation for the Socket_Access_Control enum.</p></td>
491
<td class="parameter_annotations"> </td>
494
<td class="parameter_name"><p>out_address</p></td>
495
<td class="parameter_description"><p>Used to return an 'out' argument if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned: The address on which the connection manager will listen for connections to this tube. The client should not attempt to connect to the address until the tube is open.</p></td>
496
<td class="parameter_annotations"> </td>
499
<td class="parameter_name"><p>error</p></td>
500
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to return errors if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
502
<td class="parameter_annotations"> </td>
505
<td class="parameter_name"><p>loop</p></td>
506
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, set before re-entering
507
the main loop, to point to a <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a>
508
which can be used to cancel this call with
509
<a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-quit"><code class="function">g_main_loop_quit()</code></a>, causing a return of
510
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> with <em class="parameter"><code>error</code></em>
511
set to <a class="link" href="telepathy-glib-proxy.html#TP-DBUS-ERROR-CANCELLED:CAPS"><code class="literal">TP_DBUS_ERROR_CANCELLED</code></a></p></td>
512
<td class="parameter_annotations"> </td>
517
<div class="refsect3">
518
<a name="id-1.4.34.7.5.8"></a><h4>Returns</h4>
519
<p> TRUE on success, FALSE and sets <em class="parameter"><code>error</code></em>
525
<div class="refsect2">
526
<a name="tp-cli-channel-type-stream-tube-call-offer"></a><h3>tp_cli_channel_type_stream_tube_call_offer ()</h3>
527
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> *
528
tp_cli_channel_type_stream_tube_call_offer
529
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
530
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
531
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
532
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_address</code></em>,
533
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
534
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
535
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-callback-for-offer" title="tp_cli_channel_type_stream_tube_callback_for_offer ()"><span class="type">tp_cli_channel_type_stream_tube_callback_for_offer</span></a> callback</code></em>,
536
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
537
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
538
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
539
<p>Start a Offer method call.</p>
540
<p>Offer a stream tube exporting the local socket specified.</p>
541
<div class="refsect3">
542
<a name="id-1.4.34.7.6.6"></a><h4>Parameters</h4>
543
<div class="informaltable"><table width="100%" border="0">
545
<col width="150px" class="parameters_name">
546
<col class="parameters_description">
547
<col width="200px" class="parameters_annotations">
551
<td class="parameter_name"><p>proxy</p></td>
552
<td class="parameter_description"><p>the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a></p></td>
553
<td class="parameter_annotations"> </td>
556
<td class="parameter_name"><p>timeout_ms</p></td>
557
<td class="parameter_description"><p>the timeout in milliseconds, or -1 to use the
559
<td class="parameter_annotations"> </td>
562
<td class="parameter_name"><p>in_address_type</p></td>
563
<td class="parameter_description"><p>Used to pass an 'in' argument: The type of the listening address of the local service, as a member of Socket_Address_Type. (<a class="link" href="telepathy-glib-enums.html#TpSocketAddressType" title="enum TpSocketAddressType"><span class="type">TpSocketAddressType</span></a>)</p></td>
564
<td class="parameter_annotations"> </td>
567
<td class="parameter_name"><p>in_address</p></td>
568
<td class="parameter_description"><p>Used to pass an 'in' argument: The listening address of the local service, as indicated by the address_type.</p></td>
569
<td class="parameter_annotations"> </td>
572
<td class="parameter_name"><p>in_access_control</p></td>
573
<td class="parameter_description"><p>Used to pass an 'in' argument: The access control the local service applies to the local socket, specified so the connection manager can behave appropriately when it connects. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</p></td>
574
<td class="parameter_annotations"> </td>
577
<td class="parameter_name"><p>in_parameters</p></td>
578
<td class="parameter_description"><p>Used to pass an 'in' argument: The dictionary of arbitrary <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">Parameters</tp:dbus-ref> to send with the tube offer.</p></td>
579
<td class="parameter_annotations"> </td>
582
<td class="parameter_name"><p>callback</p></td>
583
<td class="parameter_description"><p>called when the method call succeeds or fails;
584
may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to make a "fire and forget" call with no
585
reply tracking</p></td>
586
<td class="parameter_annotations"> </td>
589
<td class="parameter_name"><p>user_data</p></td>
590
<td class="parameter_description"><p>user-supplied data passed to the callback;
591
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em>
592
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
593
<td class="parameter_annotations"> </td>
596
<td class="parameter_name"><p>destroy</p></td>
597
<td class="parameter_description"><p>called with the user_data as argument, after the
598
call has succeeded, failed or been cancelled;
599
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em>
600
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
601
<td class="parameter_annotations"> </td>
604
<td class="parameter_name"><p>weak_object</p></td>
605
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be
606
weakly referenced; if it is destroyed, this call
607
will automatically be cancelled. Must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
608
<em class="parameter"><code>callback</code></em>
609
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
610
<td class="parameter_annotations"> </td>
615
<div class="refsect3">
616
<a name="id-1.4.34.7.6.7"></a><h4>Returns</h4>
617
<p> a <a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="type">TpProxyPendingCall</span></a> representing the call in
618
progress. It is borrowed from the object, and will become
619
invalid when the callback is called, the call is
620
cancelled or the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> becomes invalid.</p>
625
<div class="refsect2">
626
<a name="tp-cli-channel-type-stream-tube-call-accept"></a><h3>tp_cli_channel_type_stream_tube_call_accept ()</h3>
627
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> *
628
tp_cli_channel_type_stream_tube_call_accept
629
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
630
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
631
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
632
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
633
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_access_control_param</code></em>,
634
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-callback-for-accept" title="tp_cli_channel_type_stream_tube_callback_for_accept ()"><span class="type">tp_cli_channel_type_stream_tube_callback_for_accept</span></a> callback</code></em>,
635
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
636
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
637
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
638
<p>Start a Accept method call.</p>
639
<p>Accept a stream tube that's in the &quot;local pending&quot; state. The connection manager will attempt to open the tube. The tube remains in the &quot;local pending&quot; state until the <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">TubeChannelStateChanged</tp:dbus-ref> signal is emitted.</p>
640
<div class="refsect3">
641
<a name="id-1.4.34.7.7.6"></a><h4>Parameters</h4>
642
<div class="informaltable"><table width="100%" border="0">
644
<col width="150px" class="parameters_name">
645
<col class="parameters_description">
646
<col width="200px" class="parameters_annotations">
650
<td class="parameter_name"><p>proxy</p></td>
651
<td class="parameter_description"><p>the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a></p></td>
652
<td class="parameter_annotations"> </td>
655
<td class="parameter_name"><p>timeout_ms</p></td>
656
<td class="parameter_description"><p>the timeout in milliseconds, or -1 to use the
658
<td class="parameter_annotations"> </td>
661
<td class="parameter_name"><p>in_address_type</p></td>
662
<td class="parameter_description"><p>Used to pass an 'in' argument: The type of address the connection manager should listen on. (<a class="link" href="telepathy-glib-enums.html#TpSocketAddressType" title="enum TpSocketAddressType"><span class="type">TpSocketAddressType</span></a>)</p></td>
663
<td class="parameter_annotations"> </td>
666
<td class="parameter_name"><p>in_access_control</p></td>
667
<td class="parameter_description"><p>Used to pass an 'in' argument: <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>The type of access control the connection manager should apply to the socket.</p> <p>Note that if you plan to establish more than one connection through the tube, the Socket_Access_Control_Port access control can't be used as you can't connect more than once from the same port.</p> (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</p></td>
668
<td class="parameter_annotations"> </td>
671
<td class="parameter_name"><p>in_access_control_param</p></td>
672
<td class="parameter_description"><p>Used to pass an 'in' argument: A parameter for the access control type, to be interpreted as specified in the documentation for the Socket_Access_Control enum.</p></td>
673
<td class="parameter_annotations"> </td>
676
<td class="parameter_name"><p>callback</p></td>
677
<td class="parameter_description"><p>called when the method call succeeds or fails;
678
may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to make a "fire and forget" call with no
679
reply tracking</p></td>
680
<td class="parameter_annotations"> </td>
683
<td class="parameter_name"><p>user_data</p></td>
684
<td class="parameter_description"><p>user-supplied data passed to the callback;
685
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em>
686
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
687
<td class="parameter_annotations"> </td>
690
<td class="parameter_name"><p>destroy</p></td>
691
<td class="parameter_description"><p>called with the user_data as argument, after the
692
call has succeeded, failed or been cancelled;
693
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em>
694
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
695
<td class="parameter_annotations"> </td>
698
<td class="parameter_name"><p>weak_object</p></td>
699
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be
700
weakly referenced; if it is destroyed, this call
701
will automatically be cancelled. Must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
702
<em class="parameter"><code>callback</code></em>
703
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
704
<td class="parameter_annotations"> </td>
709
<div class="refsect3">
710
<a name="id-1.4.34.7.7.7"></a><h4>Returns</h4>
711
<p> a <a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="type">TpProxyPendingCall</span></a> representing the call in
712
progress. It is borrowed from the object, and will become
713
invalid when the callback is called, the call is
714
cancelled or the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> becomes invalid.</p>
719
<div class="refsect2">
720
<a name="tp-cli-channel-type-stream-tube-callback-for-offer"></a><h3>tp_cli_channel_type_stream_tube_callback_for_offer ()</h3>
721
<pre class="programlisting"><span class="returnvalue">void</span>
722
<span class="c_punctuation">(</span>*tp_cli_channel_type_stream_tube_callback_for_offer<span class="c_punctuation">)</span>
723
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
724
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
725
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
726
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
727
<p>Signature of the callback called when a Offer method call
728
succeeds or fails.</p>
729
<div class="refsect3">
730
<a name="id-1.4.34.7.8.5"></a><h4>Parameters</h4>
731
<div class="informaltable"><table width="100%" border="0">
733
<col width="150px" class="parameters_name">
734
<col class="parameters_description">
735
<col width="200px" class="parameters_annotations">
739
<td class="parameter_name"><p>proxy</p></td>
740
<td class="parameter_description"><p>the proxy on which the call was made</p></td>
741
<td class="parameter_annotations"> </td>
744
<td class="parameter_name"><p>error</p></td>
745
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on success, or an error on failure</p></td>
746
<td class="parameter_annotations"> </td>
749
<td class="parameter_name"><p>user_data</p></td>
750
<td class="parameter_description"><p>user-supplied data</p></td>
751
<td class="parameter_annotations"> </td>
754
<td class="parameter_name"><p>weak_object</p></td>
755
<td class="parameter_description"><p>user-supplied object</p></td>
756
<td class="parameter_annotations"> </td>
763
<div class="refsect2">
764
<a name="tp-cli-channel-type-stream-tube-callback-for-accept"></a><h3>tp_cli_channel_type_stream_tube_callback_for_accept ()</h3>
765
<pre class="programlisting"><span class="returnvalue">void</span>
766
<span class="c_punctuation">(</span>*tp_cli_channel_type_stream_tube_callback_for_accept<span class="c_punctuation">)</span>
767
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
768
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *out_address</code></em>,
769
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
770
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
771
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
772
<div class="warning"><p><code class="literal">tp_cli_channel_type_stream_tube_callback_for_accept</code> is deprecated and should not be used in newly-written code.</p></div>
773
<p>Signature of the callback called when a Accept method call
774
succeeds or fails.</p>
775
<div class="refsect3">
776
<a name="id-1.4.34.7.9.6"></a><h4>Parameters</h4>
777
<div class="informaltable"><table width="100%" border="0">
779
<col width="150px" class="parameters_name">
780
<col class="parameters_description">
781
<col width="200px" class="parameters_annotations">
785
<td class="parameter_name"><p>proxy</p></td>
786
<td class="parameter_description"><p>the proxy on which the call was made</p></td>
787
<td class="parameter_annotations"> </td>
790
<td class="parameter_name"><p>out_address</p></td>
791
<td class="parameter_description"><p>Used to return an 'out' argument if <em class="parameter"><code>error</code></em>
792
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>: The address on which the connection manager will listen for connections to this tube. The client should not attempt to connect to the address until the tube is open.</p></td>
793
<td class="parameter_annotations"> </td>
796
<td class="parameter_name"><p>error</p></td>
797
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on success, or an error on failure</p></td>
798
<td class="parameter_annotations"> </td>
801
<td class="parameter_name"><p>user_data</p></td>
802
<td class="parameter_description"><p>user-supplied data</p></td>
803
<td class="parameter_annotations"> </td>
806
<td class="parameter_name"><p>weak_object</p></td>
807
<td class="parameter_description"><p>user-supplied object</p></td>
808
<td class="parameter_annotations"> </td>
815
<div class="refsect2">
816
<a name="tp-cli-channel-type-stream-tube-connect-to-new-remote-connection"></a><h3>tp_cli_channel_type_stream_tube_connect_to_new_remote_connection ()</h3>
817
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> *
818
tp_cli_channel_type_stream_tube_connect_to_new_remote_connection
819
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
820
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-new-remote-connection" title="tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection ()"><span class="type">tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection</span></a> callback</code></em>,
821
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
822
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
823
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
824
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
825
<p>Connect a handler to the signal NewRemoteConnection.</p>
826
<p><tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>Emitted each time a participant opens a new connection to its socket.</p> <p>This signal is only fired on the offering side.</p></p>
827
<div class="refsect3">
828
<a name="id-1.4.34.7.10.6"></a><h4>Parameters</h4>
829
<div class="informaltable"><table width="100%" border="0">
831
<col width="150px" class="parameters_name">
832
<col class="parameters_description">
833
<col width="200px" class="parameters_annotations">
837
<td class="parameter_name"><p>proxy</p></td>
838
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</p></td>
839
<td class="parameter_annotations"> </td>
842
<td class="parameter_name"><p>callback</p></td>
843
<td class="parameter_description"><p>Callback to be called when the signal is
845
<td class="parameter_annotations"> </td>
848
<td class="parameter_name"><p>user_data</p></td>
849
<td class="parameter_description"><p>User-supplied data for the callback</p></td>
850
<td class="parameter_annotations"> </td>
853
<td class="parameter_name"><p>destroy</p></td>
854
<td class="parameter_description"><p>Destructor for the user-supplied data, which
855
will be called when this signal is disconnected, or
856
before this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
857
<td class="parameter_annotations"> </td>
860
<td class="parameter_name"><p>weak_object</p></td>
861
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be weakly referenced;
862
if it is destroyed, this callback will automatically be
863
disconnected</p></td>
864
<td class="parameter_annotations"> </td>
867
<td class="parameter_name"><p>error</p></td>
868
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to raise an error if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is
870
<td class="parameter_annotations"> </td>
875
<div class="refsect3">
876
<a name="id-1.4.34.7.10.7"></a><h4>Returns</h4>
877
<p> a <a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="type">TpProxySignalConnection</span></a> containing all of the
878
above, which can be used to disconnect the signal; or
879
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the proxy does not have the desired interface
880
or has become invalid.</p>
885
<div class="refsect2">
886
<a name="tp-cli-channel-type-stream-tube-connect-to-new-local-connection"></a><h3>tp_cli_channel_type_stream_tube_connect_to_new_local_connection ()</h3>
887
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> *
888
tp_cli_channel_type_stream_tube_connect_to_new_local_connection
889
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
890
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-new-local-connection" title="tp_cli_channel_type_stream_tube_signal_callback_new_local_connection ()"><span class="type">tp_cli_channel_type_stream_tube_signal_callback_new_local_connection</span></a> callback</code></em>,
891
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
892
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
893
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
894
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
895
<p>Connect a handler to the signal NewLocalConnection.</p>
896
<p><tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>Emitted when the tube application connects to the CM's socket.</p> <p>This signal is only fired on the accepting side.</p></p>
897
<div class="refsect3">
898
<a name="id-1.4.34.7.11.6"></a><h4>Parameters</h4>
899
<div class="informaltable"><table width="100%" border="0">
901
<col width="150px" class="parameters_name">
902
<col class="parameters_description">
903
<col width="200px" class="parameters_annotations">
907
<td class="parameter_name"><p>proxy</p></td>
908
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</p></td>
909
<td class="parameter_annotations"> </td>
912
<td class="parameter_name"><p>callback</p></td>
913
<td class="parameter_description"><p>Callback to be called when the signal is
915
<td class="parameter_annotations"> </td>
918
<td class="parameter_name"><p>user_data</p></td>
919
<td class="parameter_description"><p>User-supplied data for the callback</p></td>
920
<td class="parameter_annotations"> </td>
923
<td class="parameter_name"><p>destroy</p></td>
924
<td class="parameter_description"><p>Destructor for the user-supplied data, which
925
will be called when this signal is disconnected, or
926
before this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
927
<td class="parameter_annotations"> </td>
930
<td class="parameter_name"><p>weak_object</p></td>
931
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be weakly referenced;
932
if it is destroyed, this callback will automatically be
933
disconnected</p></td>
934
<td class="parameter_annotations"> </td>
937
<td class="parameter_name"><p>error</p></td>
938
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to raise an error if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is
940
<td class="parameter_annotations"> </td>
945
<div class="refsect3">
946
<a name="id-1.4.34.7.11.7"></a><h4>Returns</h4>
947
<p> a <a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="type">TpProxySignalConnection</span></a> containing all of the
948
above, which can be used to disconnect the signal; or
949
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the proxy does not have the desired interface
950
or has become invalid.</p>
955
<div class="refsect2">
956
<a name="tp-cli-channel-type-stream-tube-connect-to-connection-closed"></a><h3>tp_cli_channel_type_stream_tube_connect_to_connection_closed ()</h3>
957
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> *
958
tp_cli_channel_type_stream_tube_connect_to_connection_closed
959
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
960
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-connection-closed" title="tp_cli_channel_type_stream_tube_signal_callback_connection_closed ()"><span class="type">tp_cli_channel_type_stream_tube_signal_callback_connection_closed</span></a> callback</code></em>,
961
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
962
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
963
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
964
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
965
<p>Connect a handler to the signal ConnectionClosed.</p>
966
<p><tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>Emitted when a connection has been closed.</p></p>
967
<div class="refsect3">
968
<a name="id-1.4.34.7.12.6"></a><h4>Parameters</h4>
969
<div class="informaltable"><table width="100%" border="0">
971
<col width="150px" class="parameters_name">
972
<col class="parameters_description">
973
<col width="200px" class="parameters_annotations">
977
<td class="parameter_name"><p>proxy</p></td>
978
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</p></td>
979
<td class="parameter_annotations"> </td>
982
<td class="parameter_name"><p>callback</p></td>
983
<td class="parameter_description"><p>Callback to be called when the signal is
985
<td class="parameter_annotations"> </td>
988
<td class="parameter_name"><p>user_data</p></td>
989
<td class="parameter_description"><p>User-supplied data for the callback</p></td>
990
<td class="parameter_annotations"> </td>
993
<td class="parameter_name"><p>destroy</p></td>
994
<td class="parameter_description"><p>Destructor for the user-supplied data, which
995
will be called when this signal is disconnected, or
996
before this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
997
<td class="parameter_annotations"> </td>
1000
<td class="parameter_name"><p>weak_object</p></td>
1001
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be weakly referenced;
1002
if it is destroyed, this callback will automatically be
1003
disconnected</p></td>
1004
<td class="parameter_annotations"> </td>
1007
<td class="parameter_name"><p>error</p></td>
1008
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to raise an error if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is
1010
<td class="parameter_annotations"> </td>
1015
<div class="refsect3">
1016
<a name="id-1.4.34.7.12.7"></a><h4>Returns</h4>
1017
<p> a <a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="type">TpProxySignalConnection</span></a> containing all of the
1018
above, which can be used to disconnect the signal; or
1019
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the proxy does not have the desired interface
1020
or has become invalid.</p>
1025
<div class="refsect2">
1026
<a name="tp-cli-channel-type-stream-tube-signal-callback-new-remote-connection"></a><h3>tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection ()</h3>
1027
<pre class="programlisting"><span class="returnvalue">void</span>
1028
<span class="c_punctuation">(</span>*tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection<span class="c_punctuation">)</span>
1029
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1030
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Handle</code></em>,
1031
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *arg_Connection_Param</code></em>,
1032
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Connection_ID</code></em>,
1033
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1034
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1035
<div class="warning"><p><code class="literal">tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection</code> is deprecated and should not be used in newly-written code.</p></div>
1036
<p>Represents the signature of a callback for the signal NewRemoteConnection.</p>
1037
<div class="refsect3">
1038
<a name="id-1.4.34.7.13.6"></a><h4>Parameters</h4>
1039
<div class="informaltable"><table width="100%" border="0">
1041
<col width="150px" class="parameters_name">
1042
<col class="parameters_description">
1043
<col width="200px" class="parameters_annotations">
1047
<td class="parameter_name"><p>proxy</p></td>
1048
<td class="parameter_description"><p>The proxy on which <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-new-remote-connection" title="tp_cli_channel_type_stream_tube_connect_to_new_remote_connection ()"><code class="function">tp_cli_channel_type_stream_tube_connect_to_new_remote_connection()</code></a>
1050
<td class="parameter_annotations"> </td>
1053
<td class="parameter_name"><p>arg_Handle</p></td>
1054
<td class="parameter_description"><p>The handle of the participant who opened the new connection (<span class="type">TpContactHandle</span>)</p></td>
1055
<td class="parameter_annotations"> </td>
1058
<td class="parameter_name"><p>arg_Connection_Param</p></td>
1059
<td class="parameter_description"><p><tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>A parameter which can be used by the listening process to identify the connection. Note that this parameter has a meaningful value only in the Socket_Access_Control_Port and Socket_Access_Control_Credentials cases. If a different Socket_Access_Control has been chosen when offering the tube, this parameter should be ignored.</p> <p>In the Socket_Access_Control_Port case, the variant contains a struct Socket_Address_IPv4 (or Socket_Address_IPv6) containing the address from which the CM is connected to the client application.</p> <p>In the Socket_Access_Control_Credentials case, the variant contains the byte (D-Bus signature 'y') that has been sent with the credentials.</p></p></td>
1060
<td class="parameter_annotations"> </td>
1063
<td class="parameter_name"><p>arg_Connection_ID</p></td>
1064
<td class="parameter_description"><p>The unique ID associated with this connection. This ID will be used to identifiy the connection when reporting errors with <tp:member-ref>ConnectionClosed</tp:member-ref>. (<span class="type">TpStreamTubeConnectionID</span>)</p></td>
1065
<td class="parameter_annotations"> </td>
1068
<td class="parameter_name"><p>user_data</p></td>
1069
<td class="parameter_description"><p>User-supplied data</p></td>
1070
<td class="parameter_annotations"> </td>
1073
<td class="parameter_name"><p>weak_object</p></td>
1074
<td class="parameter_description"><p>User-supplied weakly referenced object</p></td>
1075
<td class="parameter_annotations"> </td>
1082
<div class="refsect2">
1083
<a name="tp-cli-channel-type-stream-tube-signal-callback-new-local-connection"></a><h3>tp_cli_channel_type_stream_tube_signal_callback_new_local_connection ()</h3>
1084
<pre class="programlisting"><span class="returnvalue">void</span>
1085
<span class="c_punctuation">(</span>*tp_cli_channel_type_stream_tube_signal_callback_new_local_connection<span class="c_punctuation">)</span>
1086
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1087
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Connection_ID</code></em>,
1088
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1089
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1090
<p>Represents the signature of a callback for the signal NewLocalConnection.</p>
1091
<div class="refsect3">
1092
<a name="id-1.4.34.7.14.5"></a><h4>Parameters</h4>
1093
<div class="informaltable"><table width="100%" border="0">
1095
<col width="150px" class="parameters_name">
1096
<col class="parameters_description">
1097
<col width="200px" class="parameters_annotations">
1101
<td class="parameter_name"><p>proxy</p></td>
1102
<td class="parameter_description"><p>The proxy on which <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-new-local-connection" title="tp_cli_channel_type_stream_tube_connect_to_new_local_connection ()"><code class="function">tp_cli_channel_type_stream_tube_connect_to_new_local_connection()</code></a>
1104
<td class="parameter_annotations"> </td>
1107
<td class="parameter_name"><p>arg_Connection_ID</p></td>
1108
<td class="parameter_description"><p>The unique ID associated with this connection. This ID will be used to identifiy the connection when reporting errors with <tp:member-ref>ConnectionClosed</tp:member-ref>. (<span class="type">TpStreamTubeConnectionID</span>)</p></td>
1109
<td class="parameter_annotations"> </td>
1112
<td class="parameter_name"><p>user_data</p></td>
1113
<td class="parameter_description"><p>User-supplied data</p></td>
1114
<td class="parameter_annotations"> </td>
1117
<td class="parameter_name"><p>weak_object</p></td>
1118
<td class="parameter_description"><p>User-supplied weakly referenced object</p></td>
1119
<td class="parameter_annotations"> </td>
1126
<div class="refsect2">
1127
<a name="tp-cli-channel-type-stream-tube-signal-callback-connection-closed"></a><h3>tp_cli_channel_type_stream_tube_signal_callback_connection_closed ()</h3>
1128
<pre class="programlisting"><span class="returnvalue">void</span>
1129
<span class="c_punctuation">(</span>*tp_cli_channel_type_stream_tube_signal_callback_connection_closed<span class="c_punctuation">)</span>
1130
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1131
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Connection_ID</code></em>,
1132
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *arg_Error</code></em>,
1133
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *arg_Message</code></em>,
1134
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1135
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1136
<p>Represents the signature of a callback for the signal ConnectionClosed.</p>
1137
<div class="refsect3">
1138
<a name="id-1.4.34.7.15.5"></a><h4>Parameters</h4>
1139
<div class="informaltable"><table width="100%" border="0">
1141
<col width="150px" class="parameters_name">
1142
<col class="parameters_description">
1143
<col width="200px" class="parameters_annotations">
1147
<td class="parameter_name"><p>proxy</p></td>
1148
<td class="parameter_description"><p>The proxy on which <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-connection-closed" title="tp_cli_channel_type_stream_tube_connect_to_connection_closed ()"><code class="function">tp_cli_channel_type_stream_tube_connect_to_connection_closed()</code></a>
1150
<td class="parameter_annotations"> </td>
1153
<td class="parameter_name"><p>arg_Connection_ID</p></td>
1154
<td class="parameter_description"><p>The ID of the connection. (<span class="type">TpStreamTubeConnectionID</span>)</p></td>
1155
<td class="parameter_annotations"> </td>
1158
<td class="parameter_name"><p>arg_Error</p></td>
1159
<td class="parameter_description"><p><tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>The name of a D-Bus error describing the error that occurred.</p> <p>The following errors can be used:</p> <ul> <li><code>org.freedesktop.Telepathy.Error.Cancelled</code>: user closed the socket or the tube.</li> <li><code>org.freedesktop.Telepathy.Error.ConnectionLost</code>: the bytestream relaying connection's data has been broken.</li> <li><code>org.freedesktop.Telepathy.Error.ConnectionRefused</code>: the tube offer refused the connection.</li> </ul></p></td>
1160
<td class="parameter_annotations"> </td>
1163
<td class="parameter_name"><p>arg_Message</p></td>
1164
<td class="parameter_description"><p>A debug message.</p></td>
1165
<td class="parameter_annotations"> </td>
1168
<td class="parameter_name"><p>user_data</p></td>
1169
<td class="parameter_description"><p>User-supplied data</p></td>
1170
<td class="parameter_annotations"> </td>
1173
<td class="parameter_name"><p>weak_object</p></td>
1174
<td class="parameter_description"><p>User-supplied weakly referenced object</p></td>
1175
<td class="parameter_annotations"> </td>
1182
<div class="refsect2">
1183
<a name="tp-cli-channel-type-dbus-tube-run-offer"></a><h3>tp_cli_channel_type_dbus_tube_run_offer ()</h3>
1184
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1185
tp_cli_channel_type_dbus_tube_run_offer
1186
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1187
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
1188
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
1189
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
1190
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_address</code></em>,
1191
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
1192
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);</pre>
1193
<div class="warning"><p><code class="literal">tp_cli_channel_type_dbus_tube_run_offer</code> is deprecated and should not be used in newly-written code.</p></div>
1194
<p>Call the method Offer and run the main loop
1195
until it returns. Before calling this method, you must
1196
add a reference to any borrowed objects you need to keep,
1197
and generally ensure that everything is in a consistent
1199
<p>Offers a D-Bus tube providing the service specified.</p>
1200
<div class="refsect3">
1201
<a name="id-1.4.34.7.16.7"></a><h4>Parameters</h4>
1202
<div class="informaltable"><table width="100%" border="0">
1204
<col width="150px" class="parameters_name">
1205
<col class="parameters_description">
1206
<col width="200px" class="parameters_annotations">
1210
<td class="parameter_name"><p>proxy</p></td>
1211
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</p></td>
1212
<td class="parameter_annotations"> </td>
1215
<td class="parameter_name"><p>timeout_ms</p></td>
1216
<td class="parameter_description"><p>Timeout in milliseconds, or -1 for default</p></td>
1217
<td class="parameter_annotations"> </td>
1220
<td class="parameter_name"><p>in_parameters</p></td>
1221
<td class="parameter_description"><p>Used to pass an 'in' argument: The dictionary of arbitrary <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">Parameters</tp:dbus-ref> to send with the tube offer.</p></td>
1222
<td class="parameter_annotations"> </td>
1225
<td class="parameter_name"><p>in_access_control</p></td>
1226
<td class="parameter_description"><p>Used to pass an 'in' argument: The access control the connection manager applies to the D-Bus socket. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</p></td>
1227
<td class="parameter_annotations"> </td>
1230
<td class="parameter_name"><p>out_address</p></td>
1231
<td class="parameter_description"><p>Used to return an 'out' argument if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned: The string describing the address of the private bus. The client SHOULD NOT attempt to connect to the address until the tube is open.</p></td>
1232
<td class="parameter_annotations"> </td>
1235
<td class="parameter_name"><p>error</p></td>
1236
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to return errors if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
1237
is returned</p></td>
1238
<td class="parameter_annotations"> </td>
1241
<td class="parameter_name"><p>loop</p></td>
1242
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, set before re-entering
1243
the main loop, to point to a <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a>
1244
which can be used to cancel this call with
1245
<a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-quit"><code class="function">g_main_loop_quit()</code></a>, causing a return of
1246
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> with <em class="parameter"><code>error</code></em>
1247
set to <a class="link" href="telepathy-glib-proxy.html#TP-DBUS-ERROR-CANCELLED:CAPS"><code class="literal">TP_DBUS_ERROR_CANCELLED</code></a></p></td>
1248
<td class="parameter_annotations"> </td>
1253
<div class="refsect3">
1254
<a name="id-1.4.34.7.16.8"></a><h4>Returns</h4>
1255
<p> TRUE on success, FALSE and sets <em class="parameter"><code>error</code></em>
1261
<div class="refsect2">
1262
<a name="tp-cli-channel-type-dbus-tube-run-accept"></a><h3>tp_cli_channel_type_dbus_tube_run_accept ()</h3>
1263
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1264
tp_cli_channel_type_dbus_tube_run_accept
1265
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1266
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
1267
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
1268
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_address</code></em>,
1269
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
1270
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);</pre>
1271
<div class="warning"><p><code class="literal">tp_cli_channel_type_dbus_tube_run_accept</code> is deprecated and should not be used in newly-written code.</p></div>
1272
<p>Call the method Accept and run the main loop
1273
until it returns. Before calling this method, you must
1274
add a reference to any borrowed objects you need to keep,
1275
and generally ensure that everything is in a consistent
1277
<p>Accept a D-Bus tube that's in the &quot;local pending&quot; state. The connection manager will attempt to open the tube. The tube remains in the &quot;local pending&quot; state until the <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">TubeChannelStateChanged</tp:dbus-ref> signal is emitted.</p>
1278
<div class="refsect3">
1279
<a name="id-1.4.34.7.17.7"></a><h4>Parameters</h4>
1280
<div class="informaltable"><table width="100%" border="0">
1282
<col width="150px" class="parameters_name">
1283
<col class="parameters_description">
1284
<col width="200px" class="parameters_annotations">
1288
<td class="parameter_name"><p>proxy</p></td>
1289
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</p></td>
1290
<td class="parameter_annotations"> </td>
1293
<td class="parameter_name"><p>timeout_ms</p></td>
1294
<td class="parameter_description"><p>Timeout in milliseconds, or -1 for default</p></td>
1295
<td class="parameter_annotations"> </td>
1298
<td class="parameter_name"><p>in_access_control</p></td>
1299
<td class="parameter_description"><p>Used to pass an 'in' argument: The access control the connection manager applies to the D-Bus socket. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</p></td>
1300
<td class="parameter_annotations"> </td>
1303
<td class="parameter_name"><p>out_address</p></td>
1304
<td class="parameter_description"><p>Used to return an 'out' argument if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned: The string describing the address of the private bus. The client SHOULD NOT attempt to connect to the address until the tube is open.</p></td>
1305
<td class="parameter_annotations"> </td>
1308
<td class="parameter_name"><p>error</p></td>
1309
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to return errors if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
1310
is returned</p></td>
1311
<td class="parameter_annotations"> </td>
1314
<td class="parameter_name"><p>loop</p></td>
1315
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, set before re-entering
1316
the main loop, to point to a <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a>
1317
which can be used to cancel this call with
1318
<a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-quit"><code class="function">g_main_loop_quit()</code></a>, causing a return of
1319
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> with <em class="parameter"><code>error</code></em>
1320
set to <a class="link" href="telepathy-glib-proxy.html#TP-DBUS-ERROR-CANCELLED:CAPS"><code class="literal">TP_DBUS_ERROR_CANCELLED</code></a></p></td>
1321
<td class="parameter_annotations"> </td>
1326
<div class="refsect3">
1327
<a name="id-1.4.34.7.17.8"></a><h4>Returns</h4>
1328
<p> TRUE on success, FALSE and sets <em class="parameter"><code>error</code></em>
1334
<div class="refsect2">
1335
<a name="tp-cli-channel-type-dbus-tube-call-offer"></a><h3>tp_cli_channel_type_dbus_tube_call_offer ()</h3>
1336
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> *
1337
tp_cli_channel_type_dbus_tube_call_offer
1338
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1339
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
1340
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
1341
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
1342
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-callback-for-offer" title="tp_cli_channel_type_dbus_tube_callback_for_offer ()"><span class="type">tp_cli_channel_type_dbus_tube_callback_for_offer</span></a> callback</code></em>,
1343
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1344
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
1345
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1346
<p>Start a Offer method call.</p>
1347
<p>Offers a D-Bus tube providing the service specified.</p>
1348
<div class="refsect3">
1349
<a name="id-1.4.34.7.18.6"></a><h4>Parameters</h4>
1350
<div class="informaltable"><table width="100%" border="0">
1352
<col width="150px" class="parameters_name">
1353
<col class="parameters_description">
1354
<col width="200px" class="parameters_annotations">
1358
<td class="parameter_name"><p>proxy</p></td>
1359
<td class="parameter_description"><p>the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a></p></td>
1360
<td class="parameter_annotations"> </td>
1363
<td class="parameter_name"><p>timeout_ms</p></td>
1364
<td class="parameter_description"><p>the timeout in milliseconds, or -1 to use the
1366
<td class="parameter_annotations"> </td>
1369
<td class="parameter_name"><p>in_parameters</p></td>
1370
<td class="parameter_description"><p>Used to pass an 'in' argument: The dictionary of arbitrary <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">Parameters</tp:dbus-ref> to send with the tube offer.</p></td>
1371
<td class="parameter_annotations"> </td>
1374
<td class="parameter_name"><p>in_access_control</p></td>
1375
<td class="parameter_description"><p>Used to pass an 'in' argument: The access control the connection manager applies to the D-Bus socket. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</p></td>
1376
<td class="parameter_annotations"> </td>
1379
<td class="parameter_name"><p>callback</p></td>
1380
<td class="parameter_description"><p>called when the method call succeeds or fails;
1381
may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to make a "fire and forget" call with no
1382
reply tracking</p></td>
1383
<td class="parameter_annotations"> </td>
1386
<td class="parameter_name"><p>user_data</p></td>
1387
<td class="parameter_description"><p>user-supplied data passed to the callback;
1388
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em>
1389
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1390
<td class="parameter_annotations"> </td>
1393
<td class="parameter_name"><p>destroy</p></td>
1394
<td class="parameter_description"><p>called with the user_data as argument, after the
1395
call has succeeded, failed or been cancelled;
1396
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em>
1397
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1398
<td class="parameter_annotations"> </td>
1401
<td class="parameter_name"><p>weak_object</p></td>
1402
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be
1403
weakly referenced; if it is destroyed, this call
1404
will automatically be cancelled. Must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
1405
<em class="parameter"><code>callback</code></em>
1406
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1407
<td class="parameter_annotations"> </td>
1412
<div class="refsect3">
1413
<a name="id-1.4.34.7.18.7"></a><h4>Returns</h4>
1414
<p> a <a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="type">TpProxyPendingCall</span></a> representing the call in
1415
progress. It is borrowed from the object, and will become
1416
invalid when the callback is called, the call is
1417
cancelled or the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> becomes invalid.</p>
1422
<div class="refsect2">
1423
<a name="tp-cli-channel-type-dbus-tube-call-accept"></a><h3>tp_cli_channel_type_dbus_tube_call_accept ()</h3>
1424
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> *
1425
tp_cli_channel_type_dbus_tube_call_accept
1426
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1427
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
1428
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
1429
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-callback-for-accept" title="tp_cli_channel_type_dbus_tube_callback_for_accept ()"><span class="type">tp_cli_channel_type_dbus_tube_callback_for_accept</span></a> callback</code></em>,
1430
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1431
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
1432
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1433
<p>Start a Accept method call.</p>
1434
<p>Accept a D-Bus tube that's in the &quot;local pending&quot; state. The connection manager will attempt to open the tube. The tube remains in the &quot;local pending&quot; state until the <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">TubeChannelStateChanged</tp:dbus-ref> signal is emitted.</p>
1435
<div class="refsect3">
1436
<a name="id-1.4.34.7.19.6"></a><h4>Parameters</h4>
1437
<div class="informaltable"><table width="100%" border="0">
1439
<col width="150px" class="parameters_name">
1440
<col class="parameters_description">
1441
<col width="200px" class="parameters_annotations">
1445
<td class="parameter_name"><p>proxy</p></td>
1446
<td class="parameter_description"><p>the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a></p></td>
1447
<td class="parameter_annotations"> </td>
1450
<td class="parameter_name"><p>timeout_ms</p></td>
1451
<td class="parameter_description"><p>the timeout in milliseconds, or -1 to use the
1453
<td class="parameter_annotations"> </td>
1456
<td class="parameter_name"><p>in_access_control</p></td>
1457
<td class="parameter_description"><p>Used to pass an 'in' argument: The access control the connection manager applies to the D-Bus socket. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</p></td>
1458
<td class="parameter_annotations"> </td>
1461
<td class="parameter_name"><p>callback</p></td>
1462
<td class="parameter_description"><p>called when the method call succeeds or fails;
1463
may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to make a "fire and forget" call with no
1464
reply tracking</p></td>
1465
<td class="parameter_annotations"> </td>
1468
<td class="parameter_name"><p>user_data</p></td>
1469
<td class="parameter_description"><p>user-supplied data passed to the callback;
1470
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em>
1471
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1472
<td class="parameter_annotations"> </td>
1475
<td class="parameter_name"><p>destroy</p></td>
1476
<td class="parameter_description"><p>called with the user_data as argument, after the
1477
call has succeeded, failed or been cancelled;
1478
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em>
1479
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1480
<td class="parameter_annotations"> </td>
1483
<td class="parameter_name"><p>weak_object</p></td>
1484
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be
1485
weakly referenced; if it is destroyed, this call
1486
will automatically be cancelled. Must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
1487
<em class="parameter"><code>callback</code></em>
1488
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1489
<td class="parameter_annotations"> </td>
1494
<div class="refsect3">
1495
<a name="id-1.4.34.7.19.7"></a><h4>Returns</h4>
1496
<p> a <a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="type">TpProxyPendingCall</span></a> representing the call in
1497
progress. It is borrowed from the object, and will become
1498
invalid when the callback is called, the call is
1499
cancelled or the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> becomes invalid.</p>
1504
<div class="refsect2">
1505
<a name="tp-cli-channel-type-dbus-tube-callback-for-offer"></a><h3>tp_cli_channel_type_dbus_tube_callback_for_offer ()</h3>
1506
<pre class="programlisting"><span class="returnvalue">void</span>
1507
<span class="c_punctuation">(</span>*tp_cli_channel_type_dbus_tube_callback_for_offer<span class="c_punctuation">)</span>
1508
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1509
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *out_address</code></em>,
1510
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
1511
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1512
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1513
<p>Signature of the callback called when a Offer method call
1514
succeeds or fails.</p>
1515
<div class="refsect3">
1516
<a name="id-1.4.34.7.20.5"></a><h4>Parameters</h4>
1517
<div class="informaltable"><table width="100%" border="0">
1519
<col width="150px" class="parameters_name">
1520
<col class="parameters_description">
1521
<col width="200px" class="parameters_annotations">
1525
<td class="parameter_name"><p>proxy</p></td>
1526
<td class="parameter_description"><p>the proxy on which the call was made</p></td>
1527
<td class="parameter_annotations"> </td>
1530
<td class="parameter_name"><p>out_address</p></td>
1531
<td class="parameter_description"><p>Used to return an 'out' argument if <em class="parameter"><code>error</code></em>
1532
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>: The string describing the address of the private bus. The client SHOULD NOT attempt to connect to the address until the tube is open.</p></td>
1533
<td class="parameter_annotations"> </td>
1536
<td class="parameter_name"><p>error</p></td>
1537
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on success, or an error on failure</p></td>
1538
<td class="parameter_annotations"> </td>
1541
<td class="parameter_name"><p>user_data</p></td>
1542
<td class="parameter_description"><p>user-supplied data</p></td>
1543
<td class="parameter_annotations"> </td>
1546
<td class="parameter_name"><p>weak_object</p></td>
1547
<td class="parameter_description"><p>user-supplied object</p></td>
1548
<td class="parameter_annotations"> </td>
1555
<div class="refsect2">
1556
<a name="tp-cli-channel-type-dbus-tube-callback-for-accept"></a><h3>tp_cli_channel_type_dbus_tube_callback_for_accept ()</h3>
1557
<pre class="programlisting"><span class="returnvalue">void</span>
1558
<span class="c_punctuation">(</span>*tp_cli_channel_type_dbus_tube_callback_for_accept<span class="c_punctuation">)</span>
1559
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1560
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *out_address</code></em>,
1561
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
1562
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1563
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1564
<div class="warning"><p><code class="literal">tp_cli_channel_type_dbus_tube_callback_for_accept</code> is deprecated and should not be used in newly-written code.</p></div>
1565
<p>Signature of the callback called when a Accept method call
1566
succeeds or fails.</p>
1567
<div class="refsect3">
1568
<a name="id-1.4.34.7.21.6"></a><h4>Parameters</h4>
1569
<div class="informaltable"><table width="100%" border="0">
1571
<col width="150px" class="parameters_name">
1572
<col class="parameters_description">
1573
<col width="200px" class="parameters_annotations">
1577
<td class="parameter_name"><p>proxy</p></td>
1578
<td class="parameter_description"><p>the proxy on which the call was made</p></td>
1579
<td class="parameter_annotations"> </td>
1582
<td class="parameter_name"><p>out_address</p></td>
1583
<td class="parameter_description"><p>Used to return an 'out' argument if <em class="parameter"><code>error</code></em>
1584
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>: The string describing the address of the private bus. The client SHOULD NOT attempt to connect to the address until the tube is open.</p></td>
1585
<td class="parameter_annotations"> </td>
1588
<td class="parameter_name"><p>error</p></td>
1589
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on success, or an error on failure</p></td>
1590
<td class="parameter_annotations"> </td>
1593
<td class="parameter_name"><p>user_data</p></td>
1594
<td class="parameter_description"><p>user-supplied data</p></td>
1595
<td class="parameter_annotations"> </td>
1598
<td class="parameter_name"><p>weak_object</p></td>
1599
<td class="parameter_description"><p>user-supplied object</p></td>
1600
<td class="parameter_annotations"> </td>
1607
<div class="refsect2">
1608
<a name="tp-cli-channel-type-dbus-tube-connect-to-dbus-names-changed"></a><h3>tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed ()</h3>
1609
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> *
1610
tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed
1611
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1612
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-signal-callback-dbus-names-changed" title="tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed ()"><span class="type">tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed</span></a> callback</code></em>,
1613
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1614
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
1615
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
1616
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1617
<p>Connect a handler to the signal DBusNamesChanged.</p>
1618
<p>Emitted on a multi-user (i.e. Handle_Type_Room) D-Bus tube when a participant opens or closes the tube. This provides change notification for the <tp:member-ref>DBusNames</tp:member-ref> property.</p>
1619
<div class="refsect3">
1620
<a name="id-1.4.34.7.22.6"></a><h4>Parameters</h4>
1621
<div class="informaltable"><table width="100%" border="0">
1623
<col width="150px" class="parameters_name">
1624
<col class="parameters_description">
1625
<col width="200px" class="parameters_annotations">
1629
<td class="parameter_name"><p>proxy</p></td>
1630
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</p></td>
1631
<td class="parameter_annotations"> </td>
1634
<td class="parameter_name"><p>callback</p></td>
1635
<td class="parameter_description"><p>Callback to be called when the signal is
1637
<td class="parameter_annotations"> </td>
1640
<td class="parameter_name"><p>user_data</p></td>
1641
<td class="parameter_description"><p>User-supplied data for the callback</p></td>
1642
<td class="parameter_annotations"> </td>
1645
<td class="parameter_name"><p>destroy</p></td>
1646
<td class="parameter_description"><p>Destructor for the user-supplied data, which
1647
will be called when this signal is disconnected, or
1648
before this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1649
<td class="parameter_annotations"> </td>
1652
<td class="parameter_name"><p>weak_object</p></td>
1653
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be weakly referenced;
1654
if it is destroyed, this callback will automatically be
1655
disconnected</p></td>
1656
<td class="parameter_annotations"> </td>
1659
<td class="parameter_name"><p>error</p></td>
1660
<td class="parameter_description"><p>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to raise an error if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is
1662
<td class="parameter_annotations"> </td>
1667
<div class="refsect3">
1668
<a name="id-1.4.34.7.22.7"></a><h4>Returns</h4>
1669
<p> a <a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="type">TpProxySignalConnection</span></a> containing all of the
1670
above, which can be used to disconnect the signal; or
1671
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the proxy does not have the desired interface
1672
or has become invalid.</p>
1677
<div class="refsect2">
1678
<a name="tp-cli-channel-type-dbus-tube-signal-callback-dbus-names-changed"></a><h3>tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed ()</h3>
1679
<pre class="programlisting"><span class="returnvalue">void</span>
1680
<span class="c_punctuation">(</span>*tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed<span class="c_punctuation">)</span>
1681
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1682
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *arg_Added</code></em>,
1683
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Arrays.html#GArray"><span class="type">GArray</span></a> *arg_Removed</code></em>,
1684
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1685
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1686
<div class="warning"><p><code class="literal">tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed</code> is deprecated and should not be used in newly-written code.</p></div>
1687
<p>Represents the signature of a callback for the signal DBusNamesChanged.</p>
1688
<div class="refsect3">
1689
<a name="id-1.4.34.7.23.6"></a><h4>Parameters</h4>
1690
<div class="informaltable"><table width="100%" border="0">
1692
<col width="150px" class="parameters_name">
1693
<col class="parameters_description">
1694
<col width="200px" class="parameters_annotations">
1698
<td class="parameter_name"><p>proxy</p></td>
1699
<td class="parameter_description"><p>The proxy on which <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-connect-to-dbus-names-changed" title="tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed ()"><code class="function">tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed()</code></a>
1701
<td class="parameter_annotations"> </td>
1704
<td class="parameter_name"><p>arg_Added</p></td>
1705
<td class="parameter_description"><p>Array of handles and D-Bus names of new participants.</p></td>
1706
<td class="parameter_annotations"> </td>
1709
<td class="parameter_name"><p>arg_Removed</p></td>
1710
<td class="parameter_description"><p>Array of handles of former participants.</p></td>
1711
<td class="parameter_annotations"> </td>
1714
<td class="parameter_name"><p>user_data</p></td>
1715
<td class="parameter_description"><p>User-supplied data</p></td>
1716
<td class="parameter_annotations"> </td>
1719
<td class="parameter_name"><p>weak_object</p></td>
1720
<td class="parameter_description"><p>User-supplied weakly referenced object</p></td>
1721
<td class="parameter_annotations"> </td>
1728
<div class="refsect1">
1729
<a name="telepathy-glib-channel-tube.other_details"></a><h2>Types and Values</h2>
210
channel interface, StreamTube channel type and DBusTube channel type.
213
<div class="refsect1">
214
<a name="telepathy-glib-channel-tube.details"></a><h2>Details</h2>
215
<div class="refsect2">
216
<a name="tp-cli-channel-interface-tube-connect-to-tube-channel-state-changed"></a><h3>tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed ()</h3>
217
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> * tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed
218
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
219
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-interface-tube-signal-callback-tube-channel-state-changed" title="tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed ()"><span class="type">tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed</span></a> callback</code></em>,
220
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
221
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
222
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
223
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
225
Connect a handler to the signal TubeChannelStateChanged.
228
Emitted when the state of the tube channel changes. Valid state transitions are documented with <tp:type>Tube_Channel_State</tp:type>.
230
<div class="variablelist"><table border="0" class="variablelist">
232
<col align="left" valign="top">
237
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
238
<td>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</td>
241
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
242
<td>Callback to be called when the signal is
246
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
247
<td>User-supplied data for the callback</td>
250
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
251
<td>Destructor for the user-supplied data, which
252
will be called when this signal is disconnected, or
253
before this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
257
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
258
<td>A <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be weakly referenced;
259
if it is destroyed, this callback will automatically be
263
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
264
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to raise an error if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is
268
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
269
<td>a <a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="type">TpProxySignalConnection</span></a> containing all of the
270
above, which can be used to disconnect the signal; or
271
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the proxy does not have the desired interface
272
or has become invalid.</td>
278
<div class="refsect2">
279
<a name="tp-cli-channel-interface-tube-signal-callback-tube-channel-state-changed"></a><h3>tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed ()</h3>
280
<pre class="programlisting"><span class="returnvalue">void</span> (*tp_cli_channel_interface_tube_signal_callback_tube_channel_state_changed)
281
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
282
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_State</code></em>,
283
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
284
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
286
Represents the signature of a callback for the signal TubeChannelStateChanged.
288
<div class="variablelist"><table border="0" class="variablelist">
290
<col align="left" valign="top">
295
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
296
<td>The proxy on which <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-interface-tube-connect-to-tube-channel-state-changed" title="tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed ()"><code class="function">tp_cli_channel_interface_tube_connect_to_tube_channel_state_changed()</code></a>
300
<td><p><span class="term"><em class="parameter"><code>arg_State</code></em> :</span></p></td>
301
<td>The new state of the tube. (<a class="link" href="telepathy-glib-enums.html#TpTubeChannelState" title="enum TpTubeChannelState"><span class="type">TpTubeChannelState</span></a>)</td>
304
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
305
<td>User-supplied data</td>
308
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
309
<td>User-supplied weakly referenced object</td>
315
<div class="refsect2">
316
<a name="tp-cli-channel-type-stream-tube-run-offer"></a><h3>tp_cli_channel_type_stream_tube_run_offer ()</h3>
317
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> tp_cli_channel_type_stream_tube_run_offer
318
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
319
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
320
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
321
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_address</code></em>,
322
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
323
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
324
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
325
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);</pre>
326
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
327
<h3 class="title">Warning</h3>
328
<p><code class="literal">tp_cli_channel_type_stream_tube_run_offer</code> is deprecated and should not be used in newly-written code.</p>
331
Call the method Offer and run the main loop
332
until it returns. Before calling this method, you must
333
add a reference to any borrowed objects you need to keep,
334
and generally ensure that everything is in a consistent
338
Offer a stream tube exporting the local socket specified.
340
<div class="variablelist"><table border="0" class="variablelist">
342
<col align="left" valign="top">
347
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
348
<td>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</td>
351
<td><p><span class="term"><em class="parameter"><code>timeout_ms</code></em> :</span></p></td>
352
<td>Timeout in milliseconds, or -1 for default</td>
355
<td><p><span class="term"><em class="parameter"><code>in_address_type</code></em> :</span></p></td>
356
<td>Used to pass an 'in' argument: The type of the listening address of the local service, as a member of Socket_Address_Type. (<a class="link" href="telepathy-glib-enums.html#TpSocketAddressType" title="enum TpSocketAddressType"><span class="type">TpSocketAddressType</span></a>)</td>
359
<td><p><span class="term"><em class="parameter"><code>in_address</code></em> :</span></p></td>
360
<td>Used to pass an 'in' argument: The listening address of the local service, as indicated by the address_type.</td>
363
<td><p><span class="term"><em class="parameter"><code>in_access_control</code></em> :</span></p></td>
364
<td>Used to pass an 'in' argument: The access control the local service applies to the local socket, specified so the connection manager can behave appropriately when it connects. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</td>
367
<td><p><span class="term"><em class="parameter"><code>in_parameters</code></em> :</span></p></td>
368
<td>Used to pass an 'in' argument: The dictionary of arbitrary <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">Parameters</tp:dbus-ref> to send with the tube offer.</td>
371
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
372
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to return errors if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
376
<td><p><span class="term"><em class="parameter"><code>loop</code></em> :</span></p></td>
377
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, set before re-entering
378
the main loop, to point to a <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a>
379
which can be used to cancel this call with
380
<a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-quit"><code class="function">g_main_loop_quit()</code></a>, causing a return of
381
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> with <em class="parameter"><code>error</code></em> set to <a class="link" href="telepathy-glib-proxy.html#TP-DBUS-ERROR-CANCELLED:CAPS"><code class="literal">TP_DBUS_ERROR_CANCELLED</code></a>
385
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
386
<td>TRUE on success, FALSE and sets <em class="parameter"><code>error</code></em> on error</td>
392
<div class="refsect2">
393
<a name="tp-cli-channel-type-stream-tube-run-accept"></a><h3>tp_cli_channel_type_stream_tube_run_accept ()</h3>
394
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> tp_cli_channel_type_stream_tube_run_accept
395
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
396
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
397
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
398
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
399
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_access_control_param</code></em>,
400
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> **out_address</code></em>,
401
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
402
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);</pre>
403
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
404
<h3 class="title">Warning</h3>
405
<p><code class="literal">tp_cli_channel_type_stream_tube_run_accept</code> is deprecated and should not be used in newly-written code.</p>
408
Call the method Accept and run the main loop
409
until it returns. Before calling this method, you must
410
add a reference to any borrowed objects you need to keep,
411
and generally ensure that everything is in a consistent
415
Accept a stream tube that's in the &quot;local pending&quot; state. The connection manager will attempt to open the tube. The tube remains in the &quot;local pending&quot; state until the <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">TubeChannelStateChanged</tp:dbus-ref> signal is emitted.
417
<div class="variablelist"><table border="0" class="variablelist">
419
<col align="left" valign="top">
424
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
425
<td>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</td>
428
<td><p><span class="term"><em class="parameter"><code>timeout_ms</code></em> :</span></p></td>
429
<td>Timeout in milliseconds, or -1 for default</td>
432
<td><p><span class="term"><em class="parameter"><code>in_address_type</code></em> :</span></p></td>
433
<td>Used to pass an 'in' argument: The type of address the connection manager should listen on. (<a class="link" href="telepathy-glib-enums.html#TpSocketAddressType" title="enum TpSocketAddressType"><span class="type">TpSocketAddressType</span></a>)</td>
436
<td><p><span class="term"><em class="parameter"><code>in_access_control</code></em> :</span></p></td>
437
<td>Used to pass an 'in' argument: <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>The type of access control the connection manager should apply to the socket.</p> <p>Note that if you plan to establish more than one connection through the tube, the Socket_Access_Control_Port access control can't be used as you can't connect more than once from the same port.</p> (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</td>
440
<td><p><span class="term"><em class="parameter"><code>in_access_control_param</code></em> :</span></p></td>
441
<td>Used to pass an 'in' argument: A parameter for the access control type, to be interpreted as specified in the documentation for the Socket_Access_Control enum.</td>
444
<td><p><span class="term"><em class="parameter"><code>out_address</code></em> :</span></p></td>
445
<td>Used to return an 'out' argument if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned: The address on which the connection manager will listen for connections to this tube. The client should not attempt to connect to the address until the tube is open.</td>
448
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
449
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to return errors if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
453
<td><p><span class="term"><em class="parameter"><code>loop</code></em> :</span></p></td>
454
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, set before re-entering
455
the main loop, to point to a <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a>
456
which can be used to cancel this call with
457
<a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-quit"><code class="function">g_main_loop_quit()</code></a>, causing a return of
458
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> with <em class="parameter"><code>error</code></em> set to <a class="link" href="telepathy-glib-proxy.html#TP-DBUS-ERROR-CANCELLED:CAPS"><code class="literal">TP_DBUS_ERROR_CANCELLED</code></a>
462
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
463
<td>TRUE on success, FALSE and sets <em class="parameter"><code>error</code></em> on error</td>
469
<div class="refsect2">
470
<a name="tp-cli-channel-type-stream-tube-call-offer"></a><h3>tp_cli_channel_type_stream_tube_call_offer ()</h3>
471
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> * tp_cli_channel_type_stream_tube_call_offer
472
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
473
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
474
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
475
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_address</code></em>,
476
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
477
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
478
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-callback-for-offer" title="tp_cli_channel_type_stream_tube_callback_for_offer ()"><span class="type">tp_cli_channel_type_stream_tube_callback_for_offer</span></a> callback</code></em>,
479
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
480
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
481
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
483
Start a Offer method call.
486
Offer a stream tube exporting the local socket specified.
488
<div class="variablelist"><table border="0" class="variablelist">
490
<col align="left" valign="top">
495
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
496
<td>the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a>
500
<td><p><span class="term"><em class="parameter"><code>timeout_ms</code></em> :</span></p></td>
501
<td>the timeout in milliseconds, or -1 to use the
505
<td><p><span class="term"><em class="parameter"><code>in_address_type</code></em> :</span></p></td>
506
<td>Used to pass an 'in' argument: The type of the listening address of the local service, as a member of Socket_Address_Type. (<a class="link" href="telepathy-glib-enums.html#TpSocketAddressType" title="enum TpSocketAddressType"><span class="type">TpSocketAddressType</span></a>)</td>
509
<td><p><span class="term"><em class="parameter"><code>in_address</code></em> :</span></p></td>
510
<td>Used to pass an 'in' argument: The listening address of the local service, as indicated by the address_type.</td>
513
<td><p><span class="term"><em class="parameter"><code>in_access_control</code></em> :</span></p></td>
514
<td>Used to pass an 'in' argument: The access control the local service applies to the local socket, specified so the connection manager can behave appropriately when it connects. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</td>
517
<td><p><span class="term"><em class="parameter"><code>in_parameters</code></em> :</span></p></td>
518
<td>Used to pass an 'in' argument: The dictionary of arbitrary <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">Parameters</tp:dbus-ref> to send with the tube offer.</td>
521
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
522
<td>called when the method call succeeds or fails;
523
may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to make a "fire and forget" call with no
527
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
528
<td>user-supplied data passed to the callback;
529
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
533
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
534
<td>called with the user_data as argument, after the
535
call has succeeded, failed or been cancelled;
536
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
540
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
541
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be
542
weakly referenced; if it is destroyed, this call
543
will automatically be cancelled. Must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
544
<em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
548
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
549
<td>a <a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="type">TpProxyPendingCall</span></a> representing the call in
550
progress. It is borrowed from the object, and will become
551
invalid when the callback is called, the call is
552
cancelled or the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> becomes invalid.</td>
558
<div class="refsect2">
559
<a name="tp-cli-channel-type-stream-tube-call-accept"></a><h3>tp_cli_channel_type_stream_tube_call_accept ()</h3>
560
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> * tp_cli_channel_type_stream_tube_call_accept
561
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
562
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
563
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_address_type</code></em>,
564
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
565
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *in_access_control_param</code></em>,
566
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-callback-for-accept" title="tp_cli_channel_type_stream_tube_callback_for_accept ()"><span class="type">tp_cli_channel_type_stream_tube_callback_for_accept</span></a> callback</code></em>,
567
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
568
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
569
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
571
Start a Accept method call.
574
Accept a stream tube that's in the &quot;local pending&quot; state. The connection manager will attempt to open the tube. The tube remains in the &quot;local pending&quot; state until the <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">TubeChannelStateChanged</tp:dbus-ref> signal is emitted.
576
<div class="variablelist"><table border="0" class="variablelist">
578
<col align="left" valign="top">
583
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
584
<td>the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a>
588
<td><p><span class="term"><em class="parameter"><code>timeout_ms</code></em> :</span></p></td>
589
<td>the timeout in milliseconds, or -1 to use the
593
<td><p><span class="term"><em class="parameter"><code>in_address_type</code></em> :</span></p></td>
594
<td>Used to pass an 'in' argument: The type of address the connection manager should listen on. (<a class="link" href="telepathy-glib-enums.html#TpSocketAddressType" title="enum TpSocketAddressType"><span class="type">TpSocketAddressType</span></a>)</td>
597
<td><p><span class="term"><em class="parameter"><code>in_access_control</code></em> :</span></p></td>
598
<td>Used to pass an 'in' argument: <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>The type of access control the connection manager should apply to the socket.</p> <p>Note that if you plan to establish more than one connection through the tube, the Socket_Access_Control_Port access control can't be used as you can't connect more than once from the same port.</p> (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</td>
601
<td><p><span class="term"><em class="parameter"><code>in_access_control_param</code></em> :</span></p></td>
602
<td>Used to pass an 'in' argument: A parameter for the access control type, to be interpreted as specified in the documentation for the Socket_Access_Control enum.</td>
605
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
606
<td>called when the method call succeeds or fails;
607
may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to make a "fire and forget" call with no
611
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
612
<td>user-supplied data passed to the callback;
613
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
617
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
618
<td>called with the user_data as argument, after the
619
call has succeeded, failed or been cancelled;
620
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
624
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
625
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be
626
weakly referenced; if it is destroyed, this call
627
will automatically be cancelled. Must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
628
<em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
632
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
633
<td>a <a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="type">TpProxyPendingCall</span></a> representing the call in
634
progress. It is borrowed from the object, and will become
635
invalid when the callback is called, the call is
636
cancelled or the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> becomes invalid.</td>
642
<div class="refsect2">
643
<a name="tp-cli-channel-type-stream-tube-callback-for-offer"></a><h3>tp_cli_channel_type_stream_tube_callback_for_offer ()</h3>
644
<pre class="programlisting"><span class="returnvalue">void</span> (*tp_cli_channel_type_stream_tube_callback_for_offer)
645
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
646
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
647
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
648
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
650
Signature of the callback called when a Offer method call
653
<div class="variablelist"><table border="0" class="variablelist">
655
<col align="left" valign="top">
660
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
661
<td>the proxy on which the call was made</td>
664
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
666
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on success, or an error on failure</td>
669
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
670
<td>user-supplied data</td>
673
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
674
<td>user-supplied object</td>
680
<div class="refsect2">
681
<a name="tp-cli-channel-type-stream-tube-callback-for-accept"></a><h3>tp_cli_channel_type_stream_tube_callback_for_accept ()</h3>
682
<pre class="programlisting"><span class="returnvalue">void</span> (*tp_cli_channel_type_stream_tube_callback_for_accept)
683
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
684
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *out_address</code></em>,
685
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
686
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
687
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
689
Signature of the callback called when a Accept method call
692
<div class="variablelist"><table border="0" class="variablelist">
694
<col align="left" valign="top">
699
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
700
<td>the proxy on which the call was made</td>
703
<td><p><span class="term"><em class="parameter"><code>out_address</code></em> :</span></p></td>
704
<td>Used to return an 'out' argument if <em class="parameter"><code>error</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>: The address on which the connection manager will listen for connections to this tube. The client should not attempt to connect to the address until the tube is open.</td>
707
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
709
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on success, or an error on failure</td>
712
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
713
<td>user-supplied data</td>
716
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
717
<td>user-supplied object</td>
723
<div class="refsect2">
724
<a name="tp-cli-channel-type-stream-tube-connect-to-new-remote-connection"></a><h3>tp_cli_channel_type_stream_tube_connect_to_new_remote_connection ()</h3>
725
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> * tp_cli_channel_type_stream_tube_connect_to_new_remote_connection
726
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
727
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-new-remote-connection" title="tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection ()"><span class="type">tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection</span></a> callback</code></em>,
728
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
729
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
730
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
731
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
733
Connect a handler to the signal NewRemoteConnection.
736
<tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>Emitted each time a participant opens a new connection to its socket.</p> <p>This signal is only fired on the offering side.</p>
738
<div class="variablelist"><table border="0" class="variablelist">
740
<col align="left" valign="top">
745
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
746
<td>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</td>
749
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
750
<td>Callback to be called when the signal is
754
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
755
<td>User-supplied data for the callback</td>
758
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
759
<td>Destructor for the user-supplied data, which
760
will be called when this signal is disconnected, or
761
before this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
765
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
766
<td>A <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be weakly referenced;
767
if it is destroyed, this callback will automatically be
771
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
772
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to raise an error if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is
776
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
777
<td>a <a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="type">TpProxySignalConnection</span></a> containing all of the
778
above, which can be used to disconnect the signal; or
779
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the proxy does not have the desired interface
780
or has become invalid.</td>
786
<div class="refsect2">
787
<a name="tp-cli-channel-type-stream-tube-connect-to-new-local-connection"></a><h3>tp_cli_channel_type_stream_tube_connect_to_new_local_connection ()</h3>
788
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> * tp_cli_channel_type_stream_tube_connect_to_new_local_connection
789
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
790
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-new-local-connection" title="tp_cli_channel_type_stream_tube_signal_callback_new_local_connection ()"><span class="type">tp_cli_channel_type_stream_tube_signal_callback_new_local_connection</span></a> callback</code></em>,
791
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
792
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
793
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
794
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
796
Connect a handler to the signal NewLocalConnection.
799
<tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>Emitted when the tube application connects to the CM's socket.</p> <p>This signal is only fired on the accepting side.</p>
801
<div class="variablelist"><table border="0" class="variablelist">
803
<col align="left" valign="top">
808
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
809
<td>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</td>
812
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
813
<td>Callback to be called when the signal is
817
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
818
<td>User-supplied data for the callback</td>
821
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
822
<td>Destructor for the user-supplied data, which
823
will be called when this signal is disconnected, or
824
before this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
828
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
829
<td>A <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be weakly referenced;
830
if it is destroyed, this callback will automatically be
834
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
835
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to raise an error if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is
839
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
840
<td>a <a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="type">TpProxySignalConnection</span></a> containing all of the
841
above, which can be used to disconnect the signal; or
842
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the proxy does not have the desired interface
843
or has become invalid.</td>
849
<div class="refsect2">
850
<a name="tp-cli-channel-type-stream-tube-connect-to-connection-closed"></a><h3>tp_cli_channel_type_stream_tube_connect_to_connection_closed ()</h3>
851
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> * tp_cli_channel_type_stream_tube_connect_to_connection_closed
852
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
853
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-signal-callback-connection-closed" title="tp_cli_channel_type_stream_tube_signal_callback_connection_closed ()"><span class="type">tp_cli_channel_type_stream_tube_signal_callback_connection_closed</span></a> callback</code></em>,
854
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
855
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
856
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
857
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
859
Connect a handler to the signal ConnectionClosed.
862
<tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>Emitted when a connection has been closed.</p>
864
<div class="variablelist"><table border="0" class="variablelist">
866
<col align="left" valign="top">
871
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
872
<td>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</td>
875
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
876
<td>Callback to be called when the signal is
880
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
881
<td>User-supplied data for the callback</td>
884
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
885
<td>Destructor for the user-supplied data, which
886
will be called when this signal is disconnected, or
887
before this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
891
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
892
<td>A <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be weakly referenced;
893
if it is destroyed, this callback will automatically be
897
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
898
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to raise an error if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is
902
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
903
<td>a <a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="type">TpProxySignalConnection</span></a> containing all of the
904
above, which can be used to disconnect the signal; or
905
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the proxy does not have the desired interface
906
or has become invalid.</td>
912
<div class="refsect2">
913
<a name="tp-cli-channel-type-stream-tube-signal-callback-new-remote-connection"></a><h3>tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection ()</h3>
914
<pre class="programlisting"><span class="returnvalue">void</span> (*tp_cli_channel_type_stream_tube_signal_callback_new_remote_connection)
915
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
916
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Handle</code></em>,
917
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *arg_Connection_Param</code></em>,
918
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Connection_ID</code></em>,
919
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
920
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
922
Represents the signature of a callback for the signal NewRemoteConnection.
924
<div class="variablelist"><table border="0" class="variablelist">
926
<col align="left" valign="top">
931
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
932
<td>The proxy on which <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-new-remote-connection" title="tp_cli_channel_type_stream_tube_connect_to_new_remote_connection ()"><code class="function">tp_cli_channel_type_stream_tube_connect_to_new_remote_connection()</code></a>
936
<td><p><span class="term"><em class="parameter"><code>arg_Handle</code></em> :</span></p></td>
937
<td>The handle of the participant who opened the new connection (<span class="type">TpContactHandle</span>)</td>
940
<td><p><span class="term"><em class="parameter"><code>arg_Connection_Param</code></em> :</span></p></td>
941
<td><tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>A parameter which can be used by the listening process to identify the connection. Note that this parameter has a meaningful value only in the Socket_Access_Control_Port and Socket_Access_Control_Credentials cases. If a different Socket_Access_Control has been chosen when offering the tube, this parameter should be ignored.</p> <p>In the Socket_Access_Control_Port case, the variant contains a struct Socket_Address_IPv4 (or Socket_Address_IPv6) containing the address from which the CM is connected to the client application.</p> <p>In the Socket_Access_Control_Credentials case, the variant contains the byte (D-Bus signature 'y') that has been sent with the credentials.</p></td>
944
<td><p><span class="term"><em class="parameter"><code>arg_Connection_ID</code></em> :</span></p></td>
945
<td>The unique ID associated with this connection. This ID will be used to identifiy the connection when reporting errors with <tp:member-ref>ConnectionClosed</tp:member-ref>. (<span class="type">TpStreamTubeConnectionID</span>)</td>
948
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
949
<td>User-supplied data</td>
952
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
953
<td>User-supplied weakly referenced object</td>
959
<div class="refsect2">
960
<a name="tp-cli-channel-type-stream-tube-signal-callback-new-local-connection"></a><h3>tp_cli_channel_type_stream_tube_signal_callback_new_local_connection ()</h3>
961
<pre class="programlisting"><span class="returnvalue">void</span> (*tp_cli_channel_type_stream_tube_signal_callback_new_local_connection)
962
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
963
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Connection_ID</code></em>,
964
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
965
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
967
Represents the signature of a callback for the signal NewLocalConnection.
969
<div class="variablelist"><table border="0" class="variablelist">
971
<col align="left" valign="top">
976
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
977
<td>The proxy on which <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-new-local-connection" title="tp_cli_channel_type_stream_tube_connect_to_new_local_connection ()"><code class="function">tp_cli_channel_type_stream_tube_connect_to_new_local_connection()</code></a>
981
<td><p><span class="term"><em class="parameter"><code>arg_Connection_ID</code></em> :</span></p></td>
982
<td>The unique ID associated with this connection. This ID will be used to identifiy the connection when reporting errors with <tp:member-ref>ConnectionClosed</tp:member-ref>. (<span class="type">TpStreamTubeConnectionID</span>)</td>
985
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
986
<td>User-supplied data</td>
989
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
990
<td>User-supplied weakly referenced object</td>
996
<div class="refsect2">
997
<a name="tp-cli-channel-type-stream-tube-signal-callback-connection-closed"></a><h3>tp_cli_channel_type_stream_tube_signal_callback_connection_closed ()</h3>
998
<pre class="programlisting"><span class="returnvalue">void</span> (*tp_cli_channel_type_stream_tube_signal_callback_connection_closed)
999
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1000
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg_Connection_ID</code></em>,
1001
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *arg_Error</code></em>,
1002
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *arg_Message</code></em>,
1003
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1004
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1006
Represents the signature of a callback for the signal ConnectionClosed.
1008
<div class="variablelist"><table border="0" class="variablelist">
1010
<col align="left" valign="top">
1015
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
1016
<td>The proxy on which <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-stream-tube-connect-to-connection-closed" title="tp_cli_channel_type_stream_tube_connect_to_connection_closed ()"><code class="function">tp_cli_channel_type_stream_tube_connect_to_connection_closed()</code></a>
1020
<td><p><span class="term"><em class="parameter"><code>arg_Connection_ID</code></em> :</span></p></td>
1021
<td>The ID of the connection. (<span class="type">TpStreamTubeConnectionID</span>)</td>
1024
<td><p><span class="term"><em class="parameter"><code>arg_Error</code></em> :</span></p></td>
1025
<td><tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>The name of a D-Bus error describing the error that occurred.</p> <p>The following errors can be used:</p> <ul> <li><code>org.freedesktop.Telepathy.Error.Cancelled</code>: user closed the socket or the tube.</li> <li><code>org.freedesktop.Telepathy.Error.ConnectionLost</code>: the bytestream relaying connection's data has been broken.</li> <li><code>org.freedesktop.Telepathy.Error.ConnectionRefused</code>: the tube offer refused the connection.</li> </ul></td>
1028
<td><p><span class="term"><em class="parameter"><code>arg_Message</code></em> :</span></p></td>
1029
<td>A debug message.</td>
1032
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1033
<td>User-supplied data</td>
1036
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
1037
<td>User-supplied weakly referenced object</td>
1043
<div class="refsect2">
1044
<a name="tp-cli-channel-type-dbus-tube-run-offer"></a><h3>tp_cli_channel_type_dbus_tube_run_offer ()</h3>
1045
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> tp_cli_channel_type_dbus_tube_run_offer
1046
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1047
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
1048
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
1049
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
1050
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_address</code></em>,
1051
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
1052
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);</pre>
1053
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1054
<h3 class="title">Warning</h3>
1055
<p><code class="literal">tp_cli_channel_type_dbus_tube_run_offer</code> is deprecated and should not be used in newly-written code.</p>
1058
Call the method Offer and run the main loop
1059
until it returns. Before calling this method, you must
1060
add a reference to any borrowed objects you need to keep,
1061
and generally ensure that everything is in a consistent
1065
Offers a D-Bus tube providing the service specified.
1067
<div class="variablelist"><table border="0" class="variablelist">
1069
<col align="left" valign="top">
1074
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
1075
<td>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</td>
1078
<td><p><span class="term"><em class="parameter"><code>timeout_ms</code></em> :</span></p></td>
1079
<td>Timeout in milliseconds, or -1 for default</td>
1082
<td><p><span class="term"><em class="parameter"><code>in_parameters</code></em> :</span></p></td>
1083
<td>Used to pass an 'in' argument: The dictionary of arbitrary <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">Parameters</tp:dbus-ref> to send with the tube offer.</td>
1086
<td><p><span class="term"><em class="parameter"><code>in_access_control</code></em> :</span></p></td>
1087
<td>Used to pass an 'in' argument: The access control the connection manager applies to the D-Bus socket. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</td>
1090
<td><p><span class="term"><em class="parameter"><code>out_address</code></em> :</span></p></td>
1091
<td>Used to return an 'out' argument if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned: The string describing the address of the private bus. The client SHOULD NOT attempt to connect to the address until the tube is open.</td>
1094
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1095
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to return errors if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
1099
<td><p><span class="term"><em class="parameter"><code>loop</code></em> :</span></p></td>
1100
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, set before re-entering
1101
the main loop, to point to a <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a>
1102
which can be used to cancel this call with
1103
<a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-quit"><code class="function">g_main_loop_quit()</code></a>, causing a return of
1104
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> with <em class="parameter"><code>error</code></em> set to <a class="link" href="telepathy-glib-proxy.html#TP-DBUS-ERROR-CANCELLED:CAPS"><code class="literal">TP_DBUS_ERROR_CANCELLED</code></a>
1108
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1109
<td>TRUE on success, FALSE and sets <em class="parameter"><code>error</code></em> on error</td>
1115
<div class="refsect2">
1116
<a name="tp-cli-channel-type-dbus-tube-run-accept"></a><h3>tp_cli_channel_type_dbus_tube_run_accept ()</h3>
1117
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> tp_cli_channel_type_dbus_tube_run_accept
1118
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1119
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
1120
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
1121
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_address</code></em>,
1122
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
1123
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> **loop</code></em>);</pre>
1124
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1125
<h3 class="title">Warning</h3>
1126
<p><code class="literal">tp_cli_channel_type_dbus_tube_run_accept</code> is deprecated and should not be used in newly-written code.</p>
1129
Call the method Accept and run the main loop
1130
until it returns. Before calling this method, you must
1131
add a reference to any borrowed objects you need to keep,
1132
and generally ensure that everything is in a consistent
1136
Accept a D-Bus tube that's in the &quot;local pending&quot; state. The connection manager will attempt to open the tube. The tube remains in the &quot;local pending&quot; state until the <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">TubeChannelStateChanged</tp:dbus-ref> signal is emitted.
1138
<div class="variablelist"><table border="0" class="variablelist">
1140
<col align="left" valign="top">
1145
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
1146
<td>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</td>
1149
<td><p><span class="term"><em class="parameter"><code>timeout_ms</code></em> :</span></p></td>
1150
<td>Timeout in milliseconds, or -1 for default</td>
1153
<td><p><span class="term"><em class="parameter"><code>in_access_control</code></em> :</span></p></td>
1154
<td>Used to pass an 'in' argument: The access control the connection manager applies to the D-Bus socket. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</td>
1157
<td><p><span class="term"><em class="parameter"><code>out_address</code></em> :</span></p></td>
1158
<td>Used to return an 'out' argument if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned: The string describing the address of the private bus. The client SHOULD NOT attempt to connect to the address until the tube is open.</td>
1161
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1162
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to return errors if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
1166
<td><p><span class="term"><em class="parameter"><code>loop</code></em> :</span></p></td>
1167
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, set before re-entering
1168
the main loop, to point to a <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a>
1169
which can be used to cancel this call with
1170
<a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-quit"><code class="function">g_main_loop_quit()</code></a>, causing a return of
1171
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> with <em class="parameter"><code>error</code></em> set to <a class="link" href="telepathy-glib-proxy.html#TP-DBUS-ERROR-CANCELLED:CAPS"><code class="literal">TP_DBUS_ERROR_CANCELLED</code></a>
1175
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1176
<td>TRUE on success, FALSE and sets <em class="parameter"><code>error</code></em> on error</td>
1182
<div class="refsect2">
1183
<a name="tp-cli-channel-type-dbus-tube-call-offer"></a><h3>tp_cli_channel_type_dbus_tube_call_offer ()</h3>
1184
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> * tp_cli_channel_type_dbus_tube_call_offer
1185
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1186
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
1187
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *in_parameters</code></em>,
1188
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
1189
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-callback-for-offer" title="tp_cli_channel_type_dbus_tube_callback_for_offer ()"><span class="type">tp_cli_channel_type_dbus_tube_callback_for_offer</span></a> callback</code></em>,
1190
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1191
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
1192
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1194
Start a Offer method call.
1197
Offers a D-Bus tube providing the service specified.
1199
<div class="variablelist"><table border="0" class="variablelist">
1201
<col align="left" valign="top">
1206
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
1207
<td>the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a>
1211
<td><p><span class="term"><em class="parameter"><code>timeout_ms</code></em> :</span></p></td>
1212
<td>the timeout in milliseconds, or -1 to use the
1216
<td><p><span class="term"><em class="parameter"><code>in_parameters</code></em> :</span></p></td>
1217
<td>Used to pass an 'in' argument: The dictionary of arbitrary <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">Parameters</tp:dbus-ref> to send with the tube offer.</td>
1220
<td><p><span class="term"><em class="parameter"><code>in_access_control</code></em> :</span></p></td>
1221
<td>Used to pass an 'in' argument: The access control the connection manager applies to the D-Bus socket. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</td>
1224
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1225
<td>called when the method call succeeds or fails;
1226
may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to make a "fire and forget" call with no
1230
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1231
<td>user-supplied data passed to the callback;
1232
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1236
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
1237
<td>called with the user_data as argument, after the
1238
call has succeeded, failed or been cancelled;
1239
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1243
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
1244
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be
1245
weakly referenced; if it is destroyed, this call
1246
will automatically be cancelled. Must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
1247
<em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1251
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1252
<td>a <a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="type">TpProxyPendingCall</span></a> representing the call in
1253
progress. It is borrowed from the object, and will become
1254
invalid when the callback is called, the call is
1255
cancelled or the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> becomes invalid.</td>
1261
<div class="refsect2">
1262
<a name="tp-cli-channel-type-dbus-tube-call-accept"></a><h3>tp_cli_channel_type_dbus_tube_call_accept ()</h3>
1263
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="returnvalue">TpProxyPendingCall</span></a> * tp_cli_channel_type_dbus_tube_call_accept
1264
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1265
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> timeout_ms</code></em>,
1266
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> in_access_control</code></em>,
1267
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-callback-for-accept" title="tp_cli_channel_type_dbus_tube_callback_for_accept ()"><span class="type">tp_cli_channel_type_dbus_tube_callback_for_accept</span></a> callback</code></em>,
1268
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1269
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
1270
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1272
Start a Accept method call.
1275
Accept a D-Bus tube that's in the &quot;local pending&quot; state. The connection manager will attempt to open the tube. The tube remains in the &quot;local pending&quot; state until the <tp:dbus-ref namespace="org.freedesktop.Telepathy.Channel.Interface.Tube">TubeChannelStateChanged</tp:dbus-ref> signal is emitted.
1277
<div class="variablelist"><table border="0" class="variablelist">
1279
<col align="left" valign="top">
1284
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
1285
<td>the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a>
1289
<td><p><span class="term"><em class="parameter"><code>timeout_ms</code></em> :</span></p></td>
1290
<td>the timeout in milliseconds, or -1 to use the
1294
<td><p><span class="term"><em class="parameter"><code>in_access_control</code></em> :</span></p></td>
1295
<td>Used to pass an 'in' argument: The access control the connection manager applies to the D-Bus socket. (<a class="link" href="telepathy-glib-enums.html#TpSocketAccessControl" title="enum TpSocketAccessControl"><span class="type">TpSocketAccessControl</span></a>)</td>
1298
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1299
<td>called when the method call succeeds or fails;
1300
may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to make a "fire and forget" call with no
1304
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1305
<td>user-supplied data passed to the callback;
1306
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1310
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
1311
<td>called with the user_data as argument, after the
1312
call has succeeded, failed or been cancelled;
1313
must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1317
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
1318
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be
1319
weakly referenced; if it is destroyed, this call
1320
will automatically be cancelled. Must be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
1321
<em class="parameter"><code>callback</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1325
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1326
<td>a <a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="type">TpProxyPendingCall</span></a> representing the call in
1327
progress. It is borrowed from the object, and will become
1328
invalid when the callback is called, the call is
1329
cancelled or the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> becomes invalid.</td>
1335
<div class="refsect2">
1336
<a name="tp-cli-channel-type-dbus-tube-callback-for-offer"></a><h3>tp_cli_channel_type_dbus_tube_callback_for_offer ()</h3>
1337
<pre class="programlisting"><span class="returnvalue">void</span> (*tp_cli_channel_type_dbus_tube_callback_for_offer)
1338
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1339
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *out_address</code></em>,
1340
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
1341
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1342
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1344
Signature of the callback called when a Offer method call
1347
<div class="variablelist"><table border="0" class="variablelist">
1349
<col align="left" valign="top">
1354
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
1355
<td>the proxy on which the call was made</td>
1358
<td><p><span class="term"><em class="parameter"><code>out_address</code></em> :</span></p></td>
1359
<td>Used to return an 'out' argument if <em class="parameter"><code>error</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>: The string describing the address of the private bus. The client SHOULD NOT attempt to connect to the address until the tube is open.</td>
1362
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1364
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on success, or an error on failure</td>
1367
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1368
<td>user-supplied data</td>
1371
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
1372
<td>user-supplied object</td>
1378
<div class="refsect2">
1379
<a name="tp-cli-channel-type-dbus-tube-callback-for-accept"></a><h3>tp_cli_channel_type_dbus_tube_callback_for_accept ()</h3>
1380
<pre class="programlisting"><span class="returnvalue">void</span> (*tp_cli_channel_type_dbus_tube_callback_for_accept)
1381
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1382
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *out_address</code></em>,
1383
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
1384
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1385
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1387
Signature of the callback called when a Accept method call
1390
<div class="variablelist"><table border="0" class="variablelist">
1392
<col align="left" valign="top">
1397
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
1398
<td>the proxy on which the call was made</td>
1401
<td><p><span class="term"><em class="parameter"><code>out_address</code></em> :</span></p></td>
1402
<td>Used to return an 'out' argument if <em class="parameter"><code>error</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>: The string describing the address of the private bus. The client SHOULD NOT attempt to connect to the address until the tube is open.</td>
1405
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1407
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on success, or an error on failure</td>
1410
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1411
<td>user-supplied data</td>
1414
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
1415
<td>user-supplied object</td>
1421
<div class="refsect2">
1422
<a name="tp-cli-channel-type-dbus-tube-connect-to-dbus-names-changed"></a><h3>tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed ()</h3>
1423
<pre class="programlisting"><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="returnvalue">TpProxySignalConnection</span></a> * tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed
1424
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1425
<em class="parameter"><code><a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-signal-callback-dbus-names-changed" title="tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed ()"><span class="type">tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed</span></a> callback</code></em>,
1426
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1427
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>,
1428
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>,
1429
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1431
Connect a handler to the signal DBusNamesChanged.
1434
Emitted on a multi-user (i.e. Handle_Type_Room) D-Bus tube when a participant opens or closes the tube. This provides change notification for the <tp:member-ref>DBusNames</tp:member-ref> property.
1436
<div class="variablelist"><table border="0" class="variablelist">
1438
<col align="left" valign="top">
1443
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
1444
<td>A <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> or subclass</td>
1447
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1448
<td>Callback to be called when the signal is
1452
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1453
<td>User-supplied data for the callback</td>
1456
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
1457
<td>Destructor for the user-supplied data, which
1458
will be called when this signal is disconnected, or
1459
before this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1463
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
1464
<td>A <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> which will be weakly referenced;
1465
if it is destroyed, this callback will automatically be
1469
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1470
<td>If not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to raise an error if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is
1474
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1475
<td>a <a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="type">TpProxySignalConnection</span></a> containing all of the
1476
above, which can be used to disconnect the signal; or
1477
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the proxy does not have the desired interface
1478
or has become invalid.</td>
1484
<div class="refsect2">
1485
<a name="tp-cli-channel-type-dbus-tube-signal-callback-dbus-names-changed"></a><h3>tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed ()</h3>
1486
<pre class="programlisting"><span class="returnvalue">void</span> (*tp_cli_channel_type_dbus_tube_signal_callback_dbus_names_changed)
1487
(<em class="parameter"><code><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> *proxy</code></em>,
1488
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *arg_Added</code></em>,
1489
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Arrays.html#GArray"><span class="type">GArray</span></a> *arg_Removed</code></em>,
1490
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
1491
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *weak_object</code></em>);</pre>
1493
Represents the signature of a callback for the signal DBusNamesChanged.
1495
<div class="variablelist"><table border="0" class="variablelist">
1497
<col align="left" valign="top">
1502
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
1503
<td>The proxy on which <a class="link" href="telepathy-glib-channel-tube.html#tp-cli-channel-type-dbus-tube-connect-to-dbus-names-changed" title="tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed ()"><code class="function">tp_cli_channel_type_dbus_tube_connect_to_dbus_names_changed()</code></a>
1507
<td><p><span class="term"><em class="parameter"><code>arg_Added</code></em> :</span></p></td>
1508
<td>Array of handles and D-Bus names of new participants.</td>
1511
<td><p><span class="term"><em class="parameter"><code>arg_Removed</code></em> :</span></p></td>
1512
<td>Array of handles of former participants.</td>
1515
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1516
<td>User-supplied data</td>
1519
<td><p><span class="term"><em class="parameter"><code>weak_object</code></em> :</span></p></td>
1520
<td>User-supplied weakly referenced object</td>
1731
1526
<div class="refsect1">
1732
1527
<a name="telepathy-glib-channel-tube.see-also"></a><h2>See Also</h2>
1733
<p>channel-group</p>
1736
1531
<div class="footer">
1738
Generated by GTK-Doc V1.20</div>
1533
Generated by GTK-Doc V1.19</div>
b'\\ No newline at end of file'