~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to docs/reference/gio/html/GAsyncResult.html

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
<link rel="home" href="index.html" title="GIO Reference Manual">
8
8
<link rel="up" href="async.html" title="Asynchronous I/O">
9
9
<link rel="prev" href="GCancellable.html" title="GCancellable">
10
 
<link rel="next" href="gio-GIOScheduler.html" title="GIOScheduler">
11
 
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
 
10
<link rel="next" href="GTask.html" title="GTask">
 
11
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
</head>
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
18
18
<td><a accesskey="u" href="async.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
20
<th width="100%" align="center">GIO Reference Manual</th>
21
 
<td><a accesskey="n" href="gio-GIOScheduler.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
 
21
<td><a accesskey="n" href="GTask.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
22
</tr>
23
23
<tr><td colspan="5" class="shortcuts">
24
24
<a href="#GAsyncResult.synopsis" class="shortcut">Top</a>
48
48
 
49
49
                    <a class="link" href="GAsyncResult.html#GAsyncResult-struct" title="GAsyncResult">GAsyncResult</a>;
50
50
struct              <a class="link" href="GAsyncResult.html#GAsyncResultIface" title="struct GAsyncResultIface">GAsyncResultIface</a>;
51
 
<span class="returnvalue">void</span>                (<a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()">*GAsyncReadyCallback</a>)              (<em class="parameter"><code><a href="./../gobject/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *source_object</code></em>,
 
51
<span class="returnvalue">void</span>                (<a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()">*GAsyncReadyCallback</a>)              (<em class="parameter"><code><a href="../gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *source_object</code></em>,
52
52
                                                         <em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>,
53
 
                                                         <em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
54
 
<a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            <a class="link" href="GAsyncResult.html#g-async-result-get-user-data" title="g_async_result_get_user_data ()">g_async_result_get_user_data</a>        (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>);
55
 
<a href="./../gobject/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *           <a class="link" href="GAsyncResult.html#g-async-result-get-source-object" title="g_async_result_get_source_object ()">g_async_result_get_source_object</a>    (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>);
 
53
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
 
54
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            <a class="link" href="GAsyncResult.html#g-async-result-get-user-data" title="g_async_result_get_user_data ()">g_async_result_get_user_data</a>        (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>);
 
55
<a href="../gobject/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *           <a class="link" href="GAsyncResult.html#g-async-result-get-source-object" title="g_async_result_get_source_object ()">g_async_result_get_source_object</a>    (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>);
 
56
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GAsyncResult.html#g-async-result-is-tagged" title="g_async_result_is_tagged ()">g_async_result_is_tagged</a>            (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>,
 
57
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> source_tag</code></em>);
 
58
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GAsyncResult.html#g-async-result-legacy-propagate-error" title="g_async_result_legacy_propagate_error ()">g_async_result_legacy_propagate_error</a>
 
59
                                                        (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>,
 
60
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
56
61
</pre>
57
62
</div>
58
63
<div class="refsect1">
66
71
<a name="GAsyncResult.prerequisites"></a><h2>Prerequisites</h2>
67
72
<p>
68
73
GAsyncResult requires
69
 
 <a href="./../gobject/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>.</p>
 
74
 <a href="../gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>.</p>
70
75
</div>
71
76
<div class="refsect1">
72
77
<a name="GAsyncResult.implementations"></a><h2>Known Implementations</h2>
73
78
<p>
74
79
GAsyncResult is implemented by
75
 
 <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a>.</p>
 
80
 <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a> and  <a class="link" href="GTask.html" title="GTask">GTask</a>.</p>
76
81
</div>
77
82
<div class="refsect1">
78
83
<a name="GAsyncResult.description"></a><h2>Description</h2>
100
105
operation is not needed, there is no need to call the "<code class="function">_finish()</code>"
101
106
function; GIO will take care of cleaning up the result and error
102
107
information after the <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a> returns. You can pass
103
 
<a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a> if you don't need to take any
 
108
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a> if you don't need to take any
104
109
action at all after the operation completes. Applications may also
105
110
take a reference to the <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> and call "<code class="function">_finish()</code>" later;
106
111
however, the "<code class="function">_finish()</code>" function may be called at most once.
164
169
<span class="normal">         </span><span class="usertype">GAsyncResult</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">res</span><span class="symbol">,</span>
165
170
<span class="normal">         </span><span class="usertype">gpointer</span><span class="normal">      user_data</span><span class="symbol">)</span>
166
171
<span class="cbracket">{</span>
167
 
<span class="normal">  </span><span class="usertype">gboolean</span><span class="normal"> success </span><span class="symbol">=</span><span class="normal"> <a href="./../glib/glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
 
172
<span class="normal">  </span><span class="usertype">gboolean</span><span class="normal"> success </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
168
173
 
169
 
<span class="normal">  success </span><span class="symbol">=</span><span class="normal"> </span><span class="function">_theoretical_frobnitz_finish</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">source_object</span><span class="symbol">,</span><span class="normal"> res</span><span class="symbol">,</span><span class="normal"> <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
 
174
<span class="normal">  success </span><span class="symbol">=</span><span class="normal"> </span><span class="function">_theoretical_frobnitz_finish</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">source_object</span><span class="symbol">,</span><span class="normal"> res</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
170
175
 
171
176
<span class="normal">  </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">success</span><span class="symbol">)</span>
172
 
<span class="normal">    </span><span class="function"><a href="./../glib/glib/glib-String-Utility-Functions.html#g-printf">g_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hurray!</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
 
177
<span class="normal">    </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-printf">g_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hurray!</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
173
178
<span class="normal">  </span><span class="keyword">else</span>
174
 
<span class="normal">    </span><span class="function"><a href="./../glib/glib/glib-String-Utility-Functions.html#g-printf">g_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Uh oh!</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
 
179
<span class="normal">    </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-printf">g_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Uh oh!</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
175
180
 
176
181
<span class="normal">  </span><span class="comment">/* ... */</span>
177
182
 
182
187
<span class="normal">   </span><span class="comment">/* ... */</span>
183
188
 
184
189
<span class="normal">   </span><span class="function">_theoretical_frobnitz_async</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">theoretical_data</span><span class="symbol">,</span>
185
 
<span class="normal">                                <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
 
190
<span class="normal">                                <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
186
191
<span class="normal">                                frobnitz_result_func</span><span class="symbol">,</span>
187
 
<span class="normal">                                <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
 
192
<span class="normal">                                <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
188
193
 
189
194
<span class="normal">   </span><span class="comment">/* ... */</span>
190
195
<span class="cbracket">}</span></pre></td>
200
205
always called, even in the case of a cancelled operation. On cancellation
201
206
the result is a <a class="link" href="gio-GIOError.html#G-IO-ERROR-CANCELLED:CAPS"><code class="literal">G_IO_ERROR_CANCELLED</code></a> error.
202
207
</p>
 
208
<p>
 
209
</p>
 
210
<p><a name="io-priority"></a> Many I/O-related asynchronous
 
211
operations have a priority parameter, which is used in certain
 
212
cases to determine the order in which operations are executed. They
 
213
are <span class="emphasis"><em>not</em></span> used to determine system-wide I/O
 
214
scheduling. Priorities are integers, with lower numbers indicating
 
215
higher priority. It is recommended to choose priorities between
 
216
<a href="../glib/glib-The-Main-Event-Loop.html#G-PRIORITY-LOW:CAPS"><code class="literal">G_PRIORITY_LOW</code></a> and <a href="../glib/glib-The-Main-Event-Loop.html#G-PRIORITY-HIGH:CAPS"><code class="literal">G_PRIORITY_HIGH</code></a>, with <a href="../glib/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT:CAPS"><code class="literal">G_PRIORITY_DEFAULT</code></a> as a
 
217
default. </p>
 
218
<p>
 
219
</p>
203
220
</div>
204
221
<div class="refsect1">
205
222
<a name="GAsyncResult.details"></a><h2>Details</h2>
221
238
 
222
239
  gpointer  (* get_user_data)     (GAsyncResult *res);
223
240
  GObject * (* get_source_object) (GAsyncResult *res);
 
241
 
 
242
  gboolean  (* is_tagged)         (GAsyncResult *res,
 
243
                                   gpointer      source_tag);
224
244
};
225
245
</pre>
226
246
<p>
233
253
</colgroup>
234
254
<tbody>
235
255
<tr>
236
 
<td><p><span class="term"><a href="./../gobject/gobject/gobject-Type-Information.html#GTypeInterface"><span class="type">GTypeInterface</span></a> <em class="structfield"><code><a name="GAsyncResultIface.g-iface"></a>g_iface</code></em>;</span></p></td>
 
256
<td><p><span class="term"><a href="../gobject/gobject-Type-Information.html#GTypeInterface"><span class="type">GTypeInterface</span></a> <em class="structfield"><code><a name="GAsyncResultIface.g-iface"></a>g_iface</code></em>;</span></p></td>
237
257
<td>The parent interface.</td>
238
258
</tr>
239
259
<tr>
244
264
<td><p><span class="term"><em class="structfield"><code><a name="GAsyncResultIface.get-source-object"></a>get_source_object</code></em> ()</span></p></td>
245
265
<td>Gets the source object that issued the asynchronous operation.</td>
246
266
</tr>
 
267
<tr>
 
268
<td><p><span class="term"><em class="structfield"><code><a name="GAsyncResultIface.is-tagged"></a>is_tagged</code></em> ()</span></p></td>
 
269
<td>Checks if a result is tagged with a particular source.</td>
 
270
</tr>
247
271
</tbody>
248
272
</table></div>
249
273
</div>
250
274
<hr>
251
275
<div class="refsect2">
252
276
<a name="GAsyncReadyCallback"></a><h3>GAsyncReadyCallback ()</h3>
253
 
<pre class="programlisting"><span class="returnvalue">void</span>                (*GAsyncReadyCallback)              (<em class="parameter"><code><a href="./../gobject/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *source_object</code></em>,
 
277
<pre class="programlisting"><span class="returnvalue">void</span>                (*GAsyncReadyCallback)              (<em class="parameter"><code><a href="../gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *source_object</code></em>,
254
278
                                                         <em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>,
255
 
                                                         <em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
 
279
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
256
280
<p>
257
281
Type definition for a function that will be called back when an asynchronous
258
282
operation within GIO has been completed.
281
305
<hr>
282
306
<div class="refsect2">
283
307
<a name="g-async-result-get-user-data"></a><h3>g_async_result_get_user_data ()</h3>
284
 
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            g_async_result_get_user_data        (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>);</pre>
 
308
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            g_async_result_get_user_data        (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>);</pre>
285
309
<p>
286
310
Gets the user data from a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.
287
311
</p>
306
330
<hr>
307
331
<div class="refsect2">
308
332
<a name="g-async-result-get-source-object"></a><h3>g_async_result_get_source_object ()</h3>
309
 
<pre class="programlisting"><a href="./../gobject/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *           g_async_result_get_source_object    (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>);</pre>
 
333
<pre class="programlisting"><a href="../gobject/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *           g_async_result_get_source_object    (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>);</pre>
310
334
<p>
311
335
Gets the source object from a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.
312
336
</p>
324
348
<tr>
325
349
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
326
350
<td>a new reference to the source object for the <em class="parameter"><code>res</code></em>,
327
 
or <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
328
 
</td>
329
 
</tr>
330
 
</tbody>
331
 
</table></div>
 
351
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
 
352
</td>
 
353
</tr>
 
354
</tbody>
 
355
</table></div>
 
356
</div>
 
357
<hr>
 
358
<div class="refsect2">
 
359
<a name="g-async-result-is-tagged"></a><h3>g_async_result_is_tagged ()</h3>
 
360
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            g_async_result_is_tagged            (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>,
 
361
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> source_tag</code></em>);</pre>
 
362
<p>
 
363
Checks if <em class="parameter"><code>res</code></em> has the given <em class="parameter"><code>source_tag</code></em> (generally a function
 
364
pointer indicating the function <em class="parameter"><code>res</code></em> was created by).
 
365
</p>
 
366
<div class="variablelist"><table border="0" class="variablelist">
 
367
<colgroup>
 
368
<col align="left" valign="top">
 
369
<col>
 
370
</colgroup>
 
371
<tbody>
 
372
<tr>
 
373
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
 
374
<td>a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>
 
375
</td>
 
376
</tr>
 
377
<tr>
 
378
<td><p><span class="term"><em class="parameter"><code>source_tag</code></em> :</span></p></td>
 
379
<td>an application-defined tag</td>
 
380
</tr>
 
381
<tr>
 
382
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
383
<td>
 
384
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>res</code></em> has the indicated <em class="parameter"><code>source_tag</code></em>, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if
 
385
not.</td>
 
386
</tr>
 
387
</tbody>
 
388
</table></div>
 
389
<p class="since">Since 2.34</p>
 
390
</div>
 
391
<hr>
 
392
<div class="refsect2">
 
393
<a name="g-async-result-legacy-propagate-error"></a><h3>g_async_result_legacy_propagate_error ()</h3>
 
394
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            g_async_result_legacy_propagate_error
 
395
                                                        (<em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *res</code></em>,
 
396
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
397
<p>
 
398
If <em class="parameter"><code>res</code></em> is a <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>, this is equivalent to
 
399
<a class="link" href="GSimpleAsyncResult.html#g-simple-async-result-propagate-error" title="g_simple_async_result_propagate_error ()"><code class="function">g_simple_async_result_propagate_error()</code></a>. Otherwise it returns
 
400
<a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.
 
401
</p>
 
402
<p>
 
403
This can be used for legacy error handling in async
 
404
<code class="literal"><code class="function">_finish()</code></code> wrapper functions that traditionally
 
405
handled <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a> error returns themselves rather than
 
406
calling into the virtual method. This should not be used in new
 
407
code; <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> errors that are set by virtual methods should
 
408
also be extracted by virtual methods, to enable subclasses to chain
 
409
up correctly.
 
410
</p>
 
411
<div class="variablelist"><table border="0" class="variablelist">
 
412
<colgroup>
 
413
<col align="left" valign="top">
 
414
<col>
 
415
</colgroup>
 
416
<tbody>
 
417
<tr>
 
418
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
 
419
<td>a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>
 
420
</td>
 
421
</tr>
 
422
<tr>
 
423
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
 
424
<td>a location to propagate the error to. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
 
425
</td>
 
426
</tr>
 
427
<tr>
 
428
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
429
<td>
 
430
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>error</code></em> is has been filled in with an error from
 
431
<em class="parameter"><code>res</code></em>, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if not.</td>
 
432
</tr>
 
433
</tbody>
 
434
</table></div>
 
435
<p class="since">Since 2.34</p>
332
436
</div>
333
437
</div>
334
438
<div class="refsect1">
335
439
<a name="GAsyncResult.see-also"></a><h2>See Also</h2>
336
 
<a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>
 
440
<a class="link" href="GTask.html" title="GTask"><span class="type">GTask</span></a>
337
441
</div>
338
442
</div>
339
443
<div class="footer">
340
444
<hr>
341
 
          Generated by GTK-Doc V1.18</div>
 
445
          Generated by GTK-Doc V1.18.1</div>
342
446
</body>
343
447
</html>
 
 
b'\\ No newline at end of file'