32
39
<h2><span class="refentrytitle"><a name="telepathy-glib-debug-sender.top_of_page"></a>TpDebugSender</span></h2>
33
40
<p>TpDebugSender — object for exposing Telepathy debug interface</p>
35
<td class="gallery_image" valign="top" align="right"></td>
42
<td valign="top" align="right"></td>
36
43
</tr></table></div>
37
<div class="refsect1">
38
<a name="telepathy-glib-debug-sender.functions"></a><h2>Functions</h2>
39
<div class="informaltable"><table width="100%" border="0">
41
<col width="150px" class="functions_return">
42
<col class="functions_name">
46
<td class="function_type">
47
<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="returnvalue">TpDebugSender</span></a> *
49
<td class="function_name">
50
<a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-dup" title="tp_debug_sender_dup ()">tp_debug_sender_dup</a> <span class="c_punctuation">()</span>
54
<td class="function_type">
55
<span class="returnvalue">void</span>
57
<td class="function_name">
58
<a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-add-message" title="tp_debug_sender_add_message ()">tp_debug_sender_add_message</a> <span class="c_punctuation">()</span>
62
<td class="function_type">
63
<span class="returnvalue">void</span>
65
<td class="function_name">
66
<a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-add-message-vprintf" title="tp_debug_sender_add_message_vprintf ()">tp_debug_sender_add_message_vprintf</a> <span class="c_punctuation">()</span>
70
<td class="function_type">
71
<span class="returnvalue">void</span>
73
<td class="function_name">
74
<a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-add-message-printf" title="tp_debug_sender_add_message_printf ()">tp_debug_sender_add_message_printf</a> <span class="c_punctuation">()</span>
78
<td class="function_type">
79
<span class="returnvalue">void</span>
81
<td class="function_name">
82
<a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-log-handler" title="tp_debug_sender_log_handler ()">tp_debug_sender_log_handler</a> <span class="c_punctuation">()</span>
86
<td class="function_type">
87
<span class="returnvalue">void</span>
89
<td class="function_name">
90
<a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-set-timestamps" title="tp_debug_sender_set_timestamps ()">tp_debug_sender_set_timestamps</a> <span class="c_punctuation">()</span>
96
<div class="refsect1">
97
<a name="telepathy-glib-debug-sender.properties"></a><h2>Properties</h2>
98
<div class="informaltable"><table border="0">
100
<col width="150px" class="properties_type">
101
<col width="300px" class="properties_name">
102
<col width="200px" class="properties_flags">
105
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
106
<td class="property_name"><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender--enabled" title="The “enabled” property">enabled</a></td>
107
<td class="property_flags">Read / Write</td>
111
<a name="TpDebugSender"></a><div class="refsect1">
112
<a name="telepathy-glib-debug-sender.other"></a><h2>Types and Values</h2>
113
<div class="informaltable"><table width="100%" border="0">
115
<col width="150px" class="name">
116
<col class="description">
119
<td class="datatype_keyword">struct</td>
120
<td class="function_name"><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender-struct" title="struct TpDebugSender">TpDebugSender</a></td>
44
<div class="refsynopsisdiv">
45
<a name="telepathy-glib-debug-sender.synopsis"></a><h2>Synopsis</h2>
46
<a name="TpDebugSender"></a><pre class="synopsis">
47
#include <telepathy-glib/telepathy-glib.h>
49
struct <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender-struct" title="struct TpDebugSender">TpDebugSender</a>;
50
<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="returnvalue">TpDebugSender</span></a> * <a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-dup" title="tp_debug_sender_dup ()">tp_debug_sender_dup</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
51
<span class="returnvalue">void</span> <a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-add-message" title="tp_debug_sender_add_message ()">tp_debug_sender_add_message</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
52
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal"><span class="type">GTimeVal</span></a> *timestamp</code></em>,
53
<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> *domain</code></em>,
54
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> level</code></em>,
55
<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> *string</code></em>);
56
<span class="returnvalue">void</span> <a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-add-message-vprintf" title="tp_debug_sender_add_message_vprintf ()">tp_debug_sender_add_message_vprintf</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
57
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal"><span class="type">GTimeVal</span></a> *timestamp</code></em>,
58
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **formatted</code></em>,
59
<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> *domain</code></em>,
60
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> level</code></em>,
61
<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> *format</code></em>,
62
<em class="parameter"><code><span class="type">va_list</span> args</code></em>);
63
<span class="returnvalue">void</span> <a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-add-message-printf" title="tp_debug_sender_add_message_printf ()">tp_debug_sender_add_message_printf</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
64
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal"><span class="type">GTimeVal</span></a> *timestamp</code></em>,
65
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **formatted</code></em>,
66
<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> *domain</code></em>,
67
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> level</code></em>,
68
<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> *format</code></em>,
69
<em class="parameter"><code>...</code></em>);
70
<span class="returnvalue">void</span> <a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-log-handler" title="tp_debug_sender_log_handler ()">tp_debug_sender_log_handler</a> (<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> *log_domain</code></em>,
71
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> log_level</code></em>,
72
<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> *message</code></em>,
73
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> exclude</code></em>);
74
<span class="returnvalue">void</span> <a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-set-timestamps" title="tp_debug_sender_set_timestamps ()">tp_debug_sender_set_timestamps</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
75
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> maybe</code></em>);
124
78
<div class="refsect1">
125
79
<a name="telepathy-glib-debug-sender.object-hierarchy"></a><h2>Object Hierarchy</h2>
126
<pre class="screen"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
127
<span class="lineart">╰──</span> TpDebugSender
80
<pre class="synopsis">
81
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
130
85
<div class="refsect1">
134
89
<a class="link" href="telepathy-glib-svc-generic.html#TpSvcDBusProperties">TpSvcDBusProperties</a> and <a class="link" href="telepathy-glib-svc-debug.html#TpSvcDebug">TpSvcDebug</a>.</p>
136
91
<div class="refsect1">
137
<a name="telepathy-glib-debug-sender.includes"></a><h2>Includes</h2>
138
<pre class="synopsis">#include <telepathy-glib/telepathy-glib.h>
92
<a name="telepathy-glib-debug-sender.properties"></a><h2>Properties</h2>
93
<pre class="synopsis">
94
"<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender--enabled" title='The "enabled" property'>enabled</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
141
97
<div class="refsect1">
142
98
<a name="telepathy-glib-debug-sender.description"></a><h2>Description</h2>
143
<p>A <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> object is an object exposing the Telepathy debug interface.
100
A <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> object is an object exposing the Telepathy debug interface.
144
101
There should be one object per process as it registers the object path
145
102
/org/freedesktop/Telepathy/debug. Once the object exists and has the object
146
103
path, messages can be passed to it using tp_debug_sender_add_message and
147
signals will automatically be fired.</p>
148
<p><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> is primarily designed for use in Connection Managers, but can
104
signals will automatically be fired.
107
<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> is primarily designed for use in Connection Managers, but can
149
108
be used by any other part of the Telepathy stack which wants to expose its
150
debugging information over the debug interface.</p>
151
<p>In a Connection Manager, one would probably keep a ref to the <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a>
109
debugging information over the debug interface.
112
In a Connection Manager, one would probably keep a ref to the <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a>
152
113
in the connection manager object, and when this said object is finalized, so
153
114
is the process's <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a>. A GLib log handler is also provided:
154
<a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-log-handler" title="tp_debug_sender_log_handler ()"><code class="function">tp_debug_sender_log_handler()</code></a>.</p>
115
<a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-log-handler" title="tp_debug_sender_log_handler ()"><code class="function">tp_debug_sender_log_handler()</code></a>.
156
118
<div class="refsect1">
157
<a name="telepathy-glib-debug-sender.functions_details"></a><h2>Functions</h2>
158
<div class="refsect2">
159
<a name="tp-debug-sender-dup"></a><h3>tp_debug_sender_dup ()</h3>
160
<pre class="programlisting"><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="returnvalue">TpDebugSender</span></a> *
161
tp_debug_sender_dup (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
162
<p>Returns a <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> instance on the bus this process was activated by
119
<a name="telepathy-glib-debug-sender.details"></a><h2>Details</h2>
120
<div class="refsect2">
121
<a name="TpDebugSender-struct"></a><h3>struct TpDebugSender</h3>
122
<pre class="programlisting">struct TpDebugSender;</pre>
124
An object for exposing the Telepathy debug interface.
126
<p class="since">Since 0.7.36</p>
129
<div class="refsect2">
130
<a name="tp-debug-sender-dup"></a><h3>tp_debug_sender_dup ()</h3>
131
<pre class="programlisting"><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="returnvalue">TpDebugSender</span></a> * tp_debug_sender_dup (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
133
Returns a <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> instance on the bus this process was activated by
163
134
(if it was launched by D-Bus service activation), or the session bus
165
<p>The returned <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> is cached; the same <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> object will
138
The returned <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> is cached; the same <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> object will
166
139
be returned by this function repeatedly, as long as at least one reference
168
<div class="refsect3">
169
<a name="id-1.8.6.11.2.6"></a><h4>Returns</h4>
170
<p> a reference to the <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> instance for the current starter
174
<p class="since">Since 0.7.36</p>
177
<div class="refsect2">
178
<a name="tp-debug-sender-add-message"></a><h3>tp_debug_sender_add_message ()</h3>
179
<pre class="programlisting"><span class="returnvalue">void</span>
180
tp_debug_sender_add_message (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
181
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal"><span class="type">GTimeVal</span></a> *timestamp</code></em>,
182
<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> *domain</code></em>,
183
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> level</code></em>,
184
<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> *string</code></em>);</pre>
185
<p>Adds a new message to the debug sender message queue. If the
186
<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender--enabled" title="The “enabled” property"><span class="type">“enabled”</span></a> property is set to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then a NewDebugMessage
187
signal will be fired too.</p>
188
<div class="refsect3">
189
<a name="id-1.8.6.11.3.5"></a><h4>Parameters</h4>
190
<div class="informaltable"><table width="100%" border="0">
192
<col width="150px" class="parameters_name">
193
<col class="parameters_description">
194
<col width="200px" class="parameters_annotations">
198
<td class="parameter_name"><p>self</p></td>
199
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> instance</p></td>
200
<td class="parameter_annotations"> </td>
203
<td class="parameter_name"><p>timestamp</p></td>
204
<td class="parameter_description"><p>Time of the message or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for right now</p></td>
205
<td class="parameter_annotations"> </td>
208
<td class="parameter_name"><p>domain</p></td>
209
<td class="parameter_description"><p>Message domain</p></td>
210
<td class="parameter_annotations"> </td>
213
<td class="parameter_name"><p>level</p></td>
214
<td class="parameter_description"><p>The message level</p></td>
215
<td class="parameter_annotations"> </td>
218
<td class="parameter_name"><p>string</p></td>
219
<td class="parameter_description"><p>The message string itself</p></td>
220
<td class="parameter_annotations"> </td>
225
<p class="since">Since 0.7.36</p>
228
<div class="refsect2">
229
<a name="tp-debug-sender-add-message-vprintf"></a><h3>tp_debug_sender_add_message_vprintf ()</h3>
230
<pre class="programlisting"><span class="returnvalue">void</span>
231
tp_debug_sender_add_message_vprintf (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
232
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal"><span class="type">GTimeVal</span></a> *timestamp</code></em>,
233
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **formatted</code></em>,
234
<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> *domain</code></em>,
235
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> level</code></em>,
236
<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> *format</code></em>,
237
<em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre>
238
<p>Formats and adds a new message to the debug sender message queue. If the
239
<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender--enabled" title="The “enabled” property"><span class="type">“enabled”</span></a> property is set to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then a NewDebugMessage
240
signal will be fired too.</p>
241
<div class="refsect3">
242
<a name="id-1.8.6.11.4.5"></a><h4>Parameters</h4>
243
<div class="informaltable"><table width="100%" border="0">
245
<col width="150px" class="parameters_name">
246
<col class="parameters_description">
247
<col width="200px" class="parameters_annotations">
251
<td class="parameter_name"><p>self</p></td>
252
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> instance</p></td>
253
<td class="parameter_annotations"> </td>
256
<td class="parameter_name"><p>timestamp</p></td>
257
<td class="parameter_description"><p>Time of the message, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for right now</p></td>
258
<td class="parameter_annotations"> </td>
261
<td class="parameter_name"><p>formatted</p></td>
262
<td class="parameter_description"><p>Place to store the formatted message, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not needed</p></td>
263
<td class="parameter_annotations"> </td>
266
<td class="parameter_name"><p>domain</p></td>
267
<td class="parameter_description"><p>Message domain</p></td>
268
<td class="parameter_annotations"> </td>
271
<td class="parameter_name"><p>level</p></td>
272
<td class="parameter_description"><p>The message level</p></td>
273
<td class="parameter_annotations"> </td>
276
<td class="parameter_name"><p>format</p></td>
277
<td class="parameter_description"><p>The <code class="function">printf()</code> format string</p></td>
278
<td class="parameter_annotations"> </td>
281
<td class="parameter_name"><p>args</p></td>
282
<td class="parameter_description"><p>the <span class="type">va_list</span> of parameters to insert into <em class="parameter"><code>format</code></em>
284
<td class="parameter_annotations"> </td>
289
<p class="since">Since 0.13.13</p>
292
<div class="refsect2">
293
<a name="tp-debug-sender-add-message-printf"></a><h3>tp_debug_sender_add_message_printf ()</h3>
294
<pre class="programlisting"><span class="returnvalue">void</span>
295
tp_debug_sender_add_message_printf (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
296
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal"><span class="type">GTimeVal</span></a> *timestamp</code></em>,
297
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **formatted</code></em>,
298
<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> *domain</code></em>,
299
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> level</code></em>,
300
<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> *format</code></em>,
301
<em class="parameter"><code>...</code></em>);</pre>
302
<p>Formats and adds a new message to the debug sender message queue. If the
303
<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender--enabled" title="The “enabled” property"><span class="type">“enabled”</span></a> property is set to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then a NewDebugMessage
304
signal will be fired too.</p>
305
<div class="refsect3">
306
<a name="id-1.8.6.11.5.5"></a><h4>Parameters</h4>
307
<div class="informaltable"><table width="100%" border="0">
309
<col width="150px" class="parameters_name">
310
<col class="parameters_description">
311
<col width="200px" class="parameters_annotations">
315
<td class="parameter_name"><p>self</p></td>
316
<td class="parameter_description"><p>A <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> instance</p></td>
317
<td class="parameter_annotations"> </td>
320
<td class="parameter_name"><p>timestamp</p></td>
321
<td class="parameter_description"><p>Time of the message, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for right now</p></td>
322
<td class="parameter_annotations"> </td>
325
<td class="parameter_name"><p>formatted</p></td>
326
<td class="parameter_description"><p>Place to store the formatted message, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not required</p></td>
327
<td class="parameter_annotations"> </td>
330
<td class="parameter_name"><p>domain</p></td>
331
<td class="parameter_description"><p>Message domain</p></td>
332
<td class="parameter_annotations"> </td>
335
<td class="parameter_name"><p>level</p></td>
336
<td class="parameter_description"><p>The message level</p></td>
337
<td class="parameter_annotations"> </td>
340
<td class="parameter_name"><p>format</p></td>
341
<td class="parameter_description"><p>The <code class="function">printf()</code> format string</p></td>
342
<td class="parameter_annotations"> </td>
345
<td class="parameter_name"><p>...</p></td>
346
<td class="parameter_description"><p>The parameters to insert into <em class="parameter"><code>format</code></em>
348
<td class="parameter_annotations"> </td>
353
<p class="since">Since 0.13.13</p>
356
<div class="refsect2">
357
<a name="tp-debug-sender-log-handler"></a><h3>tp_debug_sender_log_handler ()</h3>
358
<pre class="programlisting"><span class="returnvalue">void</span>
359
tp_debug_sender_log_handler (<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> *log_domain</code></em>,
360
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> log_level</code></em>,
361
<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> *message</code></em>,
362
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> exclude</code></em>);</pre>
363
<p>A generic log handler designed to be used by CMs. It initially calls
142
<div class="variablelist"><table border="0" class="variablelist">
144
<col align="left" valign="top">
148
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
149
<td>a reference to the <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> instance for the current starter
153
<p class="since">Since 0.7.36</p>
156
<div class="refsect2">
157
<a name="tp-debug-sender-add-message"></a><h3>tp_debug_sender_add_message ()</h3>
158
<pre class="programlisting"><span class="returnvalue">void</span> tp_debug_sender_add_message (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
159
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal"><span class="type">GTimeVal</span></a> *timestamp</code></em>,
160
<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> *domain</code></em>,
161
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> level</code></em>,
162
<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> *string</code></em>);</pre>
164
Adds a new message to the debug sender message queue. If the
165
<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender--enabled" title='The "enabled" property'><span class="type">"enabled"</span></a> property is set to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then a NewDebugMessage
166
signal will be fired too.
168
<div class="variablelist"><table border="0" class="variablelist">
170
<col align="left" valign="top">
175
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
176
<td>A <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> instance</td>
179
<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
180
<td>Time of the message or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for right now</td>
183
<td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
184
<td>Message domain</td>
187
<td><p><span class="term"><em class="parameter"><code>level</code></em> :</span></p></td>
188
<td>The message level</td>
191
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
192
<td>The message string itself</td>
196
<p class="since">Since 0.7.36</p>
199
<div class="refsect2">
200
<a name="tp-debug-sender-add-message-vprintf"></a><h3>tp_debug_sender_add_message_vprintf ()</h3>
201
<pre class="programlisting"><span class="returnvalue">void</span> tp_debug_sender_add_message_vprintf (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
202
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal"><span class="type">GTimeVal</span></a> *timestamp</code></em>,
203
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **formatted</code></em>,
204
<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> *domain</code></em>,
205
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> level</code></em>,
206
<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> *format</code></em>,
207
<em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre>
209
Formats and adds a new message to the debug sender message queue. If the
210
<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender--enabled" title='The "enabled" property'><span class="type">"enabled"</span></a> property is set to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then a NewDebugMessage
211
signal will be fired too.
213
<div class="variablelist"><table border="0" class="variablelist">
215
<col align="left" valign="top">
220
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
221
<td>A <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> instance</td>
224
<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
225
<td>Time of the message, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for right now</td>
228
<td><p><span class="term"><em class="parameter"><code>formatted</code></em> :</span></p></td>
229
<td>Place to store the formatted message, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not needed</td>
232
<td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
233
<td>Message domain</td>
236
<td><p><span class="term"><em class="parameter"><code>level</code></em> :</span></p></td>
237
<td>The message level</td>
240
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
241
<td>The <code class="function">printf()</code> format string</td>
244
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
245
<td>the <span class="type">va_list</span> of parameters to insert into <em class="parameter"><code>format</code></em>
250
<p class="since">Since 0.13.13</p>
253
<div class="refsect2">
254
<a name="tp-debug-sender-add-message-printf"></a><h3>tp_debug_sender_add_message_printf ()</h3>
255
<pre class="programlisting"><span class="returnvalue">void</span> tp_debug_sender_add_message_printf (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
256
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal"><span class="type">GTimeVal</span></a> *timestamp</code></em>,
257
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **formatted</code></em>,
258
<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> *domain</code></em>,
259
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> level</code></em>,
260
<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> *format</code></em>,
261
<em class="parameter"><code>...</code></em>);</pre>
263
Formats and adds a new message to the debug sender message queue. If the
264
<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender--enabled" title='The "enabled" property'><span class="type">"enabled"</span></a> property is set to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then a NewDebugMessage
265
signal will be fired too.
267
<div class="variablelist"><table border="0" class="variablelist">
269
<col align="left" valign="top">
274
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
275
<td>A <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> instance</td>
278
<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
279
<td>Time of the message, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for right now</td>
282
<td><p><span class="term"><em class="parameter"><code>formatted</code></em> :</span></p></td>
283
<td>Place to store the formatted message, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not required</td>
286
<td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
287
<td>Message domain</td>
290
<td><p><span class="term"><em class="parameter"><code>level</code></em> :</span></p></td>
291
<td>The message level</td>
294
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
295
<td>The <code class="function">printf()</code> format string</td>
298
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
299
<td>The parameters to insert into <em class="parameter"><code>format</code></em>
304
<p class="since">Since 0.13.13</p>
307
<div class="refsect2">
308
<a name="tp-debug-sender-log-handler"></a><h3>tp_debug_sender_log_handler ()</h3>
309
<pre class="programlisting"><span class="returnvalue">void</span> tp_debug_sender_log_handler (<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> *log_domain</code></em>,
310
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#GLogLevelFlags"><span class="type">GLogLevelFlags</span></a> log_level</code></em>,
311
<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> *message</code></em>,
312
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> exclude</code></em>);</pre>
314
A generic log handler designed to be used by CMs. It initially calls
364
315
<a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#g-log-default-handler"><code class="function">g_log_default_handler()</code></a>, and then sends the message on the bus
365
<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a>.</p>
366
<p>The <em class="parameter"><code>exclude</code></em>
367
parameter is designed to allow filtering one domain, instead of
316
<a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a>.
319
The <em class="parameter"><code>exclude</code></em> parameter is designed to allow filtering one domain, instead of
368
320
sending every message to the <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a>: typical usage is for a
369
321
process to filter out messages from its own <a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#G-LOG-DOMAIN:CAPS"><code class="literal">G_LOG_DOMAIN</code></a>, so that it can
370
322
append a category to its own messages and pass them directly to
371
323
tp_debug_sender_add_message. Note that every message, regardless of
372
domain, is given to <a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#g-log-default-handler"><code class="function">g_log_default_handler()</code></a>.</p>
373
<p>Note that a ref to a <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> must be kept at all times otherwise
324
domain, is given to <a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#g-log-default-handler"><code class="function">g_log_default_handler()</code></a>.
327
Note that a ref to a <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> must be kept at all times otherwise
374
328
no messages given to the handler will be sent to the Telepathy debug
376
<p>An example of its usage, taking in mind the notes above, follows:</p>
332
An example of its usage, taking in mind the notes above, follows:
377
334
<div class="informalexample">
378
335
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
395
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc opt">/<!-- -->*</span> Create a main loop <span class="keyword">and</span> debug sender <span class="gtkdoc opt">*<!-- -->/</span>
396
GMainLoop <span class="gtkdoc opt">*</span>loop <span class="gtkdoc opt">=</span> <span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-new">g_main_loop_new</a></span> <span class="gtkdoc opt">(</span>NULL<span class="gtkdoc opt">,</span> FALSE<span class="gtkdoc opt">);</span>
397
TpDebugSender <span class="gtkdoc opt">*</span>sender <span class="gtkdoc opt">=</span> <span class="function"><a href="telepathy-glib-debug-sender.html#tp-debug-sender-dup">tp_debug_sender_dup</a></span> <span class="gtkdoc opt">();</span>
399
<span class="gtkdoc opt">/<!-- -->*</span> Set the <span class="keyword">default</span> handler <span class="gtkdoc opt">*<!-- -->/</span>
400
<span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#g-log-set-default-handler">g_log_set_default_handler</a></span> <span class="gtkdoc opt">(</span>tp_debug_sender_log_handler<span class="gtkdoc opt">,</span> G_LOG_DOMAIN<span class="gtkdoc opt">);</span>
402
<span class="gtkdoc opt">/<!-- -->*</span> Run the main loop<span class="gtkdoc opt">,</span> but keeping a ref on the TpDebugSender from
403
<span class="gtkdoc opt">*</span> the beginning of <span class="keyword">this</span> code sample<span class="gtkdoc opt">. *<!-- -->/</span>
404
<span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-run">g_main_loop_run</a></span> <span class="gtkdoc opt">(</span>loop<span class="gtkdoc opt">);</span>
406
<span class="gtkdoc opt">/<!-- -->*</span> g_main_loop_quit was called<span class="gtkdoc opt">,</span> so only now can we clean up the
407
<span class="gtkdoc opt">*</span> TpDebugSender<span class="gtkdoc opt">. *<!-- -->/</span>
408
<span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span> <span class="gtkdoc opt">(</span>sender<span class="gtkdoc opt">);</span></pre></td>
352
<td class="listing_code"><pre class="programlisting"><span class="comment">/* Create a main loop and debug sender */</span>
353
<span class="usertype">GMainLoop</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">loop </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-new">g_main_loop_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
354
<span class="usertype">TpDebugSender</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">sender </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="telepathy-glib-debug-sender.html#tp-debug-sender-dup">tp_debug_sender_dup</a></span><span class="normal"> </span><span class="symbol">();</span>
356
<span class="comment">/* Set the default handler */</span>
357
<span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#g-log-set-default-handler">g_log_set_default_handler</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="telepathy-glib-debug-sender.html#tp-debug-sender-log-handler">tp_debug_sender_log_handler</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#G-LOG-DOMAIN:CAPS">G_LOG_DOMAIN</a></span><span class="symbol">);</span>
359
<span class="comment">/* Run the main loop, but keeping a ref on the TpDebugSender from</span>
360
<span class="comment"> * the beginning of this code sample. */</span>
361
<span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-run">g_main_loop_run</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">loop</span><span class="symbol">);</span>
363
<span class="comment">/* g_main_loop_quit was called, so only now can we clean up the</span>
364
<span class="comment"> * TpDebugSender. */</span>
365
<span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">sender</span><span class="symbol">);</span></pre></td>
415
<p>(In a connection manager, replace <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-run"><code class="function">g_main_loop_run()</code></a> in the above example
416
with <a class="link" href="telepathy-glib-run.html#tp-run-connection-manager" title="tp_run_connection_manager ()"><code class="function">tp_run_connection_manager()</code></a>.)</p>
417
<p>This function is merely for convenience if it meets the requirements.
374
(In a connection manager, replace <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-run"><code class="function">g_main_loop_run()</code></a> in the above example
375
with <a class="link" href="telepathy-glib-run.html#tp-run-connection-manager" title="tp_run_connection_manager ()"><code class="function">tp_run_connection_manager()</code></a>.)
378
This function is merely for convenience if it meets the requirements.
418
379
It can easily be re-implemented in services, and does not need to be
420
<p>If timestamps should be prepended to messages (like in
421
<a class="link" href="telepathy-glib-debug.html#tp-debug-timestamped-log-handler" title="tp_debug_timestamped_log_handler ()"><code class="function">tp_debug_timestamped_log_handler()</code></a>), <a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-set-timestamps" title="tp_debug_sender_set_timestamps ()"><code class="function">tp_debug_sender_set_timestamps()</code></a>
422
should also be called.</p>
423
<p>Since version 0.11.15, this function can be called from any thread.</p>
424
<div class="refsect3">
425
<a name="id-1.8.6.11.6.14"></a><h4>Parameters</h4>
426
<div class="informaltable"><table width="100%" border="0">
383
If timestamps should be prepended to messages (like in
384
<a class="link" href="telepathy-glib-debug.html#tp-debug-timestamped-log-handler" title="tp_debug_timestamped_log_handler ()"><code class="function">tp_debug_timestamped_log_handler()</code></a>), <a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-set-timestamps" title="tp_debug_sender_set_timestamps ()"><code class="function">tp_debug_sender_set_timestamps()</code></a>
385
should also be called.
388
Since version 0.11.15, this function can be called from any thread.
390
<div class="variablelist"><table border="0" class="variablelist">
428
<col width="150px" class="parameters_name">
429
<col class="parameters_description">
430
<col width="200px" class="parameters_annotations">
392
<col align="left" valign="top">
434
<td class="parameter_name"><p>log_domain</p></td>
435
<td class="parameter_description"><p>domain of the message</p></td>
436
<td class="parameter_annotations"> </td>
439
<td class="parameter_name"><p>log_level</p></td>
440
<td class="parameter_description"><p>log leve of the message</p></td>
441
<td class="parameter_annotations"> </td>
444
<td class="parameter_name"><p>message</p></td>
445
<td class="parameter_description"><p>the message itself</p></td>
446
<td class="parameter_annotations"> </td>
449
<td class="parameter_name"><p>exclude</p></td>
450
<td class="parameter_description"><p>a log domain string to exclude from the <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
451
<td class="parameter_annotations"> </td>
397
<td><p><span class="term"><em class="parameter"><code>log_domain</code></em> :</span></p></td>
398
<td>domain of the message</td>
401
<td><p><span class="term"><em class="parameter"><code>log_level</code></em> :</span></p></td>
402
<td>log leve of the message</td>
405
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
406
<td>the message itself</td>
409
<td><p><span class="term"><em class="parameter"><code>exclude</code></em> :</span></p></td>
410
<td>a log domain string to exclude from the <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
456
415
<p class="since">Since 0.7.36</p>
459
418
<div class="refsect2">
460
<a name="tp-debug-sender-set-timestamps"></a><h3>tp_debug_sender_set_timestamps ()</h3>
461
<pre class="programlisting"><span class="returnvalue">void</span>
462
tp_debug_sender_set_timestamps (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
463
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> maybe</code></em>);</pre>
464
<p>If the log handler is <a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-log-handler" title="tp_debug_sender_log_handler ()"><code class="function">tp_debug_sender_log_handler()</code></a> then calling
419
<a name="tp-debug-sender-set-timestamps"></a><h3>tp_debug_sender_set_timestamps ()</h3>
420
<pre class="programlisting"><span class="returnvalue">void</span> tp_debug_sender_set_timestamps (<em class="parameter"><code><a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a> *self</code></em>,
421
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> maybe</code></em>);</pre>
423
If the log handler is <a class="link" href="telepathy-glib-debug-sender.html#tp-debug-sender-log-handler" title="tp_debug_sender_log_handler ()"><code class="function">tp_debug_sender_log_handler()</code></a> then calling
465
424
this function with <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on the debug sender will prepend the
466
425
message to be printed to stdout with the UTC time (currently in ISO
467
426
8601 format, with microsecond resolution). This is equivalent to
468
using <a class="link" href="telepathy-glib-debug.html#tp-debug-timestamped-log-handler" title="tp_debug_timestamped_log_handler ()"><code class="function">tp_debug_timestamped_log_handler()</code></a> as the log handler, but
469
also logging to the debug sender.</p>
470
<div class="refsect3">
471
<a name="id-1.8.6.11.7.5"></a><h4>Parameters</h4>
472
<div class="informaltable"><table width="100%" border="0">
427
using <a class="link" href="telepathy-glib-debug.html#tp-debug-timestamped-log-handler" title="tp_debug_timestamped_log_handler ()"><code class="function">tp_debug_timestamped_log_handler()</code></a> as the log handler, but
428
also logging to the debug sender.
430
<div class="variablelist"><table border="0" class="variablelist">
474
<col width="150px" class="parameters_name">
475
<col class="parameters_description">
476
<col width="200px" class="parameters_annotations">
432
<col align="left" valign="top">
480
<td class="parameter_name"><p>self</p></td>
481
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a></p></td>
482
<td class="parameter_annotations"> </td>
437
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
438
<td>a <a class="link" href="telepathy-glib-debug-sender.html#TpDebugSender"><span class="type">TpDebugSender</span></a>
485
<td class="parameter_name"><p>maybe</p></td>
486
<td class="parameter_description"><p>whether to display message timestamps</p></td>
487
<td class="parameter_annotations"> </td>
442
<td><p><span class="term"><em class="parameter"><code>maybe</code></em> :</span></p></td>
443
<td>whether to display message timestamps</td>
492
447
<p class="since">Since 0.15.5</p>
495
450
<div class="refsect1">
496
<a name="telepathy-glib-debug-sender.other_details"></a><h2>Types and Values</h2>
497
<div class="refsect2">
498
<a name="TpDebugSender-struct"></a><h3>struct TpDebugSender</h3>
499
<pre class="programlisting">struct TpDebugSender;</pre>
500
<p>An object for exposing the Telepathy debug interface.</p>
501
<p class="since">Since 0.7.36</p>
504
<div class="refsect1">
505
451
<a name="telepathy-glib-debug-sender.property-details"></a><h2>Property Details</h2>
506
452
<div class="refsect2">
507
<a name="TpDebugSender--enabled"></a><h3>The <code class="literal">“enabled”</code> property</h3>
508
<pre class="programlisting"> “enabled” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
509
<p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the NewDebugMessage signal should be emitted when a new debug
510
message is generated.</p>
511
<p>Flags: Read / Write</p>
453
<a name="TpDebugSender--enabled"></a><h3>The <code class="literal">"enabled"</code> property</h3>
454
<pre class="programlisting"> "enabled" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
456
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the NewDebugMessage signal should be emitted when a new debug
457
message is generated.
512
459
<p>Default value: FALSE</p>
516
463
<div class="footer">
518
Generated by GTK-Doc V1.20</div>
465
Generated by GTK-Doc V1.19</div>
b'\\ No newline at end of file'