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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-02-15 13:00:43 UTC
  • mfrom: (1.3.1 upstream) (69.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20090215130043-q47fbt3owmt42m2f
Tags: 2.18.4-2
* Release to unstable
* debian/rules:
- bump SHVER, since we are already forcing a 2.18.0 dependecy on the
  symbols introduced in the development versions
* debian/control.in:
- added Homepage and Vcs-* control fields

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
<html>
3
3
<head>
4
 
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
 
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>GOutputStream</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
 
<link rel="start" href="index.html" title="GIO Reference Manual">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
 
7
<link rel="home" href="index.html" title="GIO Reference Manual">
8
8
<link rel="up" href="streaming.html" title="Streaming I/O">
9
9
<link rel="prev" href="GInputStream.html" title="GInputStream">
10
10
<link rel="next" href="GFileInputStream.html" title="GFileInputStream">
11
 
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
 
<link rel="part" href="pt01.html" title="Part&#160;I.&#160;GIO Overview">
 
13
<link rel="part" href="pt01.html" title="Part I. GIO Overview">
14
14
<link rel="chapter" href="ch01.html" title="Introduction">
15
15
<link rel="chapter" href="ch02.html" title="Compiling GIO applications">
16
16
<link rel="chapter" href="ch03.html" title="Running GIO applications">
17
 
<link rel="chapter" href="gio-extension-points.html" title="Extending GIO">
18
 
<link rel="part" href="pt02.html" title="Part&#160;II.&#160;API Reference">
 
17
<link rel="chapter" href="extending-gio.html" title="Extending GIO">
 
18
<link rel="part" href="pt02.html" title="Part II. API Reference">
19
19
<link rel="chapter" href="file_ops.html" title="File Operations">
20
20
<link rel="chapter" href="file_mon.html" title="File System Monitoring">
21
21
<link rel="chapter" href="async.html" title="Asynchronous I/O">
25
25
<link rel="chapter" href="icons.html" title="Icons">
26
26
<link rel="chapter" href="utils.html" title="Utilities">
27
27
<link rel="chapter" href="extending.html" title="Extending GIO">
28
 
<link rel="part" href="migrating.html" title="Part&#160;III.&#160;Migrating to GIO">
 
28
<link rel="part" href="migrating.html" title="Part III. Migrating to GIO">
29
29
<link rel="chapter" href="ch14.html" title="Migrating from POSIX to GIO">
30
30
<link rel="chapter" href="ch15.html" title="Migrating from GnomeVFS to GIO">
31
31
<link rel="chapter" href="gio-hierarchy.html" title="Object Hierarchy">
32
32
<link rel="index" href="ix01.html" title="Index">
 
33
<link rel="index" href="ix02.html" title="Index of new symbols in 2.18">
33
34
</head>
34
35
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
35
36
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
40
41
<th width="100%" align="center">GIO Reference Manual</th>
41
42
<td><a accesskey="n" href="GFileInputStream.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
42
43
</tr>
43
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2774597" class="shortcut">Top</a>
44
 
                  &#160;|&#160;
45
 
                  <a href="#id2853666" class="shortcut">Description</a>
46
 
                  &#160;|&#160;
47
 
                  <a href="#id2853617" class="shortcut">Object Hierarchy</a></nobr></td></tr>
 
44
<tr><td colspan="5" class="shortcuts">
 
45
<a href="#GOutputStream.synopsis" class="shortcut">Top</a>
 
46
                 | 
 
47
                <a href="#GOutputStream.description" class="shortcut">Description</a>
 
48
                 | 
 
49
                <a href="#GOutputStream.object-hierarchy" class="shortcut">Object Hierarchy</a>
 
50
</td></tr>
48
51
</table>
49
52
<div class="refentry" lang="en">
50
53
<a name="GOutputStream"></a><div class="titlepage"></div>
51
54
<div class="refnamediv"><table width="100%"><tr>
52
55
<td valign="top">
53
 
<h2>
54
 
<a name="id2774597"></a><span class="refentrytitle">GOutputStream</span>
55
 
</h2>
56
 
<p>GOutputStream &#8212; Base class for implementing streaming output</p>
 
56
<h2><span class="refentrytitle"><a name="GOutputStream.top_of_page"></a>GOutputStream</span></h2>
 
57
<p>GOutputStream — Base class for implementing streaming output</p>
57
58
</td>
58
59
<td valign="top" align="right"></td>
59
60
</tr></table></div>
60
61
<div class="refsynopsisdiv">
61
 
<h2>Synopsis</h2>
 
62
<a name="GOutputStream.synopsis"></a><h2>Synopsis</h2>
62
63
<pre class="synopsis">
63
64
 
64
65
#include &lt;gio/gio.h&gt;
65
66
 
66
 
 
67
 
enum                <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags">GOutputStreamSpliceFlags</a>;
68
 
                    <a class="link" href="GOutputStream.html#GOutputStream-struct">GOutputStream</a>;
 
67
enum                <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags" title="enum GOutputStreamSpliceFlags">GOutputStreamSpliceFlags</a>;
 
68
                    <a class="link" href="GOutputStream.html#GOutputStream-struct" title="GOutputStream">GOutputStream</a>;
69
69
<a
70
70
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"
71
 
>gssize</a>              <a class="link" href="GOutputStream.html#g-output-stream-write">g_output_stream_write</a>               (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
71
>gssize</a>              <a class="link" href="GOutputStream.html#g-output-stream-write" title="g_output_stream_write ()">g_output_stream_write</a>               (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
72
72
                                                         const void *buffer,
73
73
                                                         <a
74
74
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
79
79
>GError</a> **error);
80
80
<a
81
81
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
82
 
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-write-all">g_output_stream_write_all</a>           (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
82
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-write-all" title="g_output_stream_write_all ()">g_output_stream_write_all</a>           (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
83
83
                                                         const void *buffer,
84
84
                                                         <a
85
85
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
93
93
>GError</a> **error);
94
94
<a
95
95
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"
96
 
>gssize</a>              <a class="link" href="GOutputStream.html#g-output-stream-splice">g_output_stream_splice</a>              (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
96
>gssize</a>              <a class="link" href="GOutputStream.html#g-output-stream-splice" title="g_output_stream_splice ()">g_output_stream_splice</a>              (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
97
97
                                                         <a class="link" href="GInputStream.html" title="GInputStream">GInputStream</a> *source,
98
 
                                                         <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags">GOutputStreamSpliceFlags</a> flags,
99
 
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
100
 
                                                         <a
101
 
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
102
 
>GError</a> **error);
103
 
<a
104
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
105
 
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-flush">g_output_stream_flush</a>               (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
106
 
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
107
 
                                                         <a
108
 
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
109
 
>GError</a> **error);
110
 
<a
111
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
112
 
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-close">g_output_stream_close</a>               (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
113
 
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
114
 
                                                         <a
115
 
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
116
 
>GError</a> **error);
117
 
void                <a class="link" href="GOutputStream.html#g-output-stream-write-async">g_output_stream_write_async</a>         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
98
                                                         <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags" title="enum GOutputStreamSpliceFlags">GOutputStreamSpliceFlags</a> flags,
 
99
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
 
100
                                                         <a
 
101
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
 
102
>GError</a> **error);
 
103
<a
 
104
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
105
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-flush" title="g_output_stream_flush ()">g_output_stream_flush</a>               (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
106
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
 
107
                                                         <a
 
108
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
 
109
>GError</a> **error);
 
110
<a
 
111
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
112
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-close" title="g_output_stream_close ()">g_output_stream_close</a>               (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
113
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
 
114
                                                         <a
 
115
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
 
116
>GError</a> **error);
 
117
void                <a class="link" href="GOutputStream.html#g-output-stream-write-async" title="g_output_stream_write_async ()">g_output_stream_write_async</a>         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
118
118
                                                         const void *buffer,
119
119
                                                         <a
120
120
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
121
121
>gsize</a> count,
122
122
                                                         int io_priority,
123
123
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
124
 
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
 
124
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()">GAsyncReadyCallback</a> callback,
125
125
                                                         <a
126
126
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
127
127
>gpointer</a> user_data);
128
128
<a
129
129
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"
130
 
>gssize</a>              <a class="link" href="GOutputStream.html#g-output-stream-write-finish">g_output_stream_write_finish</a>        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
130
>gssize</a>              <a class="link" href="GOutputStream.html#g-output-stream-write-finish" title="g_output_stream_write_finish ()">g_output_stream_write_finish</a>        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
131
131
                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,
132
132
                                                         <a
133
133
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
134
134
>GError</a> **error);
135
 
void                <a class="link" href="GOutputStream.html#g-output-stream-splice-async">g_output_stream_splice_async</a>        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
135
void                <a class="link" href="GOutputStream.html#g-output-stream-splice-async" title="g_output_stream_splice_async ()">g_output_stream_splice_async</a>        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
136
136
                                                         <a class="link" href="GInputStream.html" title="GInputStream">GInputStream</a> *source,
137
 
                                                         <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags">GOutputStreamSpliceFlags</a> flags,
 
137
                                                         <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags" title="enum GOutputStreamSpliceFlags">GOutputStreamSpliceFlags</a> flags,
138
138
                                                         int io_priority,
139
139
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
140
 
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
 
140
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()">GAsyncReadyCallback</a> callback,
141
141
                                                         <a
142
142
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
143
143
>gpointer</a> user_data);
144
144
<a
145
145
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"
146
 
>gssize</a>              <a class="link" href="GOutputStream.html#g-output-stream-splice-finish">g_output_stream_splice_finish</a>       (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
147
 
                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,
148
 
                                                         <a
149
 
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
150
 
>GError</a> **error);
151
 
void                <a class="link" href="GOutputStream.html#g-output-stream-flush-async">g_output_stream_flush_async</a>         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
152
 
                                                         int io_priority,
153
 
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
154
 
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
155
 
                                                         <a
156
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
157
 
>gpointer</a> user_data);
158
 
<a
159
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
160
 
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-flush-finish">g_output_stream_flush_finish</a>        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
161
 
                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,
162
 
                                                         <a
163
 
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
164
 
>GError</a> **error);
165
 
void                <a class="link" href="GOutputStream.html#g-output-stream-close-async">g_output_stream_close_async</a>         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
166
 
                                                         int io_priority,
167
 
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
168
 
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
169
 
                                                         <a
170
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
171
 
>gpointer</a> user_data);
172
 
<a
173
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
174
 
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-close-finish">g_output_stream_close_finish</a>        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
175
 
                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,
176
 
                                                         <a
177
 
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
178
 
>GError</a> **error);
179
 
<a
180
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
181
 
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-is-closed">g_output_stream_is_closed</a>           (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream);
182
 
<a
183
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
184
 
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-has-pending">g_output_stream_has_pending</a>         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream);
185
 
<a
186
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
187
 
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-set-pending">g_output_stream_set_pending</a>         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
188
 
                                                         <a
189
 
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
190
 
>GError</a> **error);
191
 
void                <a class="link" href="GOutputStream.html#g-output-stream-clear-pending">g_output_stream_clear_pending</a>       (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream);
192
 
 
193
 
 
 
146
>gssize</a>              <a class="link" href="GOutputStream.html#g-output-stream-splice-finish" title="g_output_stream_splice_finish ()">g_output_stream_splice_finish</a>       (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
147
                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,
 
148
                                                         <a
 
149
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
 
150
>GError</a> **error);
 
151
void                <a class="link" href="GOutputStream.html#g-output-stream-flush-async" title="g_output_stream_flush_async ()">g_output_stream_flush_async</a>         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
152
                                                         int io_priority,
 
153
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
 
154
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()">GAsyncReadyCallback</a> callback,
 
155
                                                         <a
 
156
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
 
157
>gpointer</a> user_data);
 
158
<a
 
159
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
160
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-flush-finish" title="g_output_stream_flush_finish ()">g_output_stream_flush_finish</a>        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
161
                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,
 
162
                                                         <a
 
163
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
 
164
>GError</a> **error);
 
165
void                <a class="link" href="GOutputStream.html#g-output-stream-close-async" title="g_output_stream_close_async ()">g_output_stream_close_async</a>         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
166
                                                         int io_priority,
 
167
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
 
168
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()">GAsyncReadyCallback</a> callback,
 
169
                                                         <a
 
170
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
 
171
>gpointer</a> user_data);
 
172
<a
 
173
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
174
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-close-finish" title="g_output_stream_close_finish ()">g_output_stream_close_finish</a>        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
175
                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,
 
176
                                                         <a
 
177
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
 
178
>GError</a> **error);
 
179
<a
 
180
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
181
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-is-closed" title="g_output_stream_is_closed ()">g_output_stream_is_closed</a>           (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream);
 
182
<a
 
183
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
184
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-has-pending" title="g_output_stream_has_pending ()">g_output_stream_has_pending</a>         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream);
 
185
<a
 
186
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
187
>gboolean</a>            <a class="link" href="GOutputStream.html#g-output-stream-set-pending" title="g_output_stream_set_pending ()">g_output_stream_set_pending</a>         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
188
                                                         <a
 
189
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
 
190
>GError</a> **error);
 
191
void                <a class="link" href="GOutputStream.html#g-output-stream-clear-pending" title="g_output_stream_clear_pending ()">g_output_stream_clear_pending</a>       (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream);
194
192
</pre>
195
193
</div>
196
194
<div class="refsect1" lang="en">
197
 
<a name="id2853617"></a><h2>Object Hierarchy</h2>
 
195
<a name="GOutputStream.object-hierarchy"></a><h2>Object Hierarchy</h2>
198
196
<pre class="synopsis">
199
 
 
200
197
  <a
201
198
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
202
199
>GObject</a>
203
200
   +----GOutputStream
204
201
         +----<a class="link" href="GFilterOutputStream.html" title="GFilterOutputStream">GFilterOutputStream</a>
205
 
         +----<a class="link" href="GUnixOutputStream.html" title="GUnixOutputStream">GUnixOutputStream</a>
206
202
         +----<a class="link" href="GFileOutputStream.html" title="GFileOutputStream">GFileOutputStream</a>
207
203
         +----<a class="link" href="GMemoryOutputStream.html" title="GMemoryOutputStream">GMemoryOutputStream</a>
 
204
         +----<a class="link" href="GUnixOutputStream.html" title="GUnixOutputStream">GUnixOutputStream</a>
208
205
</pre>
209
206
</div>
210
207
<div class="refsect1" lang="en">
211
 
<a name="id2853666"></a><h2>Description</h2>
212
 
<p>
213
 
</p>
214
 
<p>
215
 
 
 
208
<a name="GOutputStream.description"></a><h2>Description</h2>
 
209
<p>
 
210
GOutputStream has functions to write to a stream (<a class="link" href="GOutputStream.html#g-output-stream-write" title="g_output_stream_write ()"><code class="function">g_output_stream_write()</code></a>),
 
211
to close a stream (<a class="link" href="GOutputStream.html#g-output-stream-close" title="g_output_stream_close ()"><code class="function">g_output_stream_close()</code></a>) and to flush pending writes
 
212
(<a class="link" href="GOutputStream.html#g-output-stream-flush" title="g_output_stream_flush ()"><code class="function">g_output_stream_flush()</code></a>). 
 
213
</p>
 
214
<p>
 
215
To copy the content of an input stream to an output stream without 
 
216
manually handling the reads and writes, use <a class="link" href="GOutputStream.html#g-output-stream-splice" title="g_output_stream_splice ()"><code class="function">g_output_stream_splice()</code></a>. 
 
217
</p>
 
218
<p>
 
219
All of these functions have async variants too.</p>
 
220
<p>
216
221
</p>
217
222
</div>
218
223
<div class="refsect1" lang="en">
219
 
<a name="id2853686"></a><h2>Details</h2>
 
224
<a name="GOutputStream.details"></a><h2>Details</h2>
220
225
<div class="refsect2" lang="en">
221
 
<a name="id2853697"></a><h3>
222
 
<a name="GOutputStreamSpliceFlags"></a>enum GOutputStreamSpliceFlags</h3>
223
 
<a class="indexterm" name="id2853708"></a><pre class="programlisting">typedef enum {
224
 
  G_OUTPUT_STREAM_SPLICE_NONE = 0,
225
 
  G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE = 1 &lt;&lt; 0,
226
 
  G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET = 1 &lt;&lt; 1
 
226
<a name="GOutputStreamSpliceFlags"></a><h3>enum GOutputStreamSpliceFlags</h3>
 
227
<pre class="programlisting">typedef enum {
 
228
  G_OUTPUT_STREAM_SPLICE_NONE         = 0,
 
229
  G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE = (1 &lt;&lt; 0),
 
230
  G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET = (1 &lt;&lt; 1)
227
231
} GOutputStreamSpliceFlags;
228
232
</pre>
229
233
<p>
230
234
GOutputStreamSpliceFlags determine how streams should be spliced.</p>
231
235
<p>
232
 
 
233
236
</p>
234
237
<div class="variablelist"><table border="0">
235
238
<col align="left" valign="top">
236
239
<tbody>
237
240
<tr>
238
 
<td><p><span class="term"><a name="G-OUTPUT-STREAM-SPLICE-NONE:CAPS"></a><code class="literal">G_OUTPUT_STREAM_SPLICE_NONE</code></span></p></td>
 
241
<td><p><a name="G-OUTPUT-STREAM-SPLICE-NONE--CAPS"></a><span class="term"><code class="literal">G_OUTPUT_STREAM_SPLICE_NONE</code></span></p></td>
239
242
<td> Do not close either stream.
240
243
</td>
241
244
</tr>
242
245
<tr>
243
 
<td><p><span class="term"><a name="G-OUTPUT-STREAM-SPLICE-CLOSE-SOURCE:CAPS"></a><code class="literal">G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE</code></span></p></td>
244
 
<td> Close the source stream after the splice.
 
246
<td><p><a name="G-OUTPUT-STREAM-SPLICE-CLOSE-SOURCE--CAPS"></a><span class="term"><code class="literal">G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE</code></span></p></td>
 
247
<td> Close the source stream after
 
248
    the splice.
245
249
</td>
246
250
</tr>
247
251
<tr>
248
 
<td><p><span class="term"><a name="G-OUTPUT-STREAM-SPLICE-CLOSE-TARGET:CAPS"></a><code class="literal">G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET</code></span></p></td>
249
 
<td> Close the target stream after the splice.
 
252
<td><p><a name="G-OUTPUT-STREAM-SPLICE-CLOSE-TARGET--CAPS"></a><span class="term"><code class="literal">G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET</code></span></p></td>
 
253
<td> Close the target stream after
 
254
    the splice.
250
255
</td>
251
256
</tr>
252
257
</tbody>
254
259
</div>
255
260
<hr>
256
261
<div class="refsect2" lang="en">
257
 
<a name="id2853798"></a><h3>
258
 
<a name="GOutputStream-struct"></a>GOutputStream</h3>
259
 
<a class="indexterm" name="id2853809"></a><pre class="programlisting">typedef struct _GOutputStream GOutputStream;</pre>
 
262
<a name="GOutputStream-struct"></a><h3>GOutputStream</h3>
 
263
<pre class="programlisting">typedef struct _GOutputStream GOutputStream;</pre>
260
264
<p>
261
 
Base class for writing output. 
 
265
Base class for writing output.
262
266
</p>
263
267
<p>
264
 
All classes derived from GOutputStream should implement synchronous 
 
268
All classes derived from GOutputStream should implement synchronous
265
269
writing, splicing, flushing and closing streams, but may implement
266
270
asynchronous versions.</p>
267
271
<p>
268
 
 
269
272
</p>
270
273
</div>
271
274
<hr>
272
275
<div class="refsect2" lang="en">
273
 
<a name="id2853836"></a><h3>
274
 
<a name="g-output-stream-write"></a>g_output_stream_write ()</h3>
275
 
<a class="indexterm" name="id2853847"></a><pre class="programlisting"><a
 
276
<a name="g-output-stream-write"></a><h3>g_output_stream_write ()</h3>
 
277
<pre class="programlisting"><a
276
278
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"
277
279
>gssize</a>              g_output_stream_write               (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
278
280
                                                         const void *buffer,
290
292
<p>
291
293
If count is zero returns zero and does nothing. A value of <em class="parameter"><code>count</code></em>
292
294
larger than <a
293
 
href="/usr/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html#G-MAXSSIZE:CAPS"
294
 
><code class="literal">G_MAXSSIZE</code></a> will cause a <a class="link" href="gio-GIOError.html#G-IO-ERROR-INVALID-ARGUMENT:CAPS"><code class="literal">G_IO_ERROR_INVALID_ARGUMENT</code></a> error.
 
295
href="/usr/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html#G-MAXSSIZE--CAPS"
 
296
><code class="literal">G_MAXSSIZE</code></a> will cause a <a class="link" href="gio-GIOError.html#G-IO-ERROR-INVALID-ARGUMENT--CAPS"><code class="literal">G_IO_ERROR_INVALID_ARGUMENT</code></a> error.
295
297
</p>
296
298
<p>
297
299
On success, the number of bytes written to the stream is returned.
310
312
<p>
311
313
On error -1 is returned and <em class="parameter"><code>error</code></em> is set accordingly.</p>
312
314
<p>
313
 
 
314
315
</p>
315
316
<div class="variablelist"><table border="0">
316
317
<col align="left" valign="top">
317
318
<tbody>
318
319
<tr>
319
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
320
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
320
321
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
321
322
</td>
322
323
</tr>
323
324
<tr>
324
 
<td><p><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></p></td>
 
325
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
325
326
<td> the buffer containing the data to write. 
326
327
</td>
327
328
</tr>
328
329
<tr>
329
 
<td><p><span class="term"><em class="parameter"><code>count</code></em>&#160;:</span></p></td>
 
330
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
330
331
<td> the number of bytes to write
331
332
</td>
332
333
</tr>
333
334
<tr>
334
 
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em>&#160;:</span></p></td>
 
335
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
335
336
<td> optional cancellable object
336
337
</td>
337
338
</tr>
338
339
<tr>
339
 
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
 
340
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
340
341
<td> location to store the error occuring, or <a
341
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
342
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
342
343
><code class="literal">NULL</code></a> to ignore
343
344
</td>
344
345
</tr>
345
346
<tr>
346
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
347
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
347
348
<td> Number of bytes written, or -1 on error
348
349
</td>
349
350
</tr>
352
353
</div>
353
354
<hr>
354
355
<div class="refsect2" lang="en">
355
 
<a name="id2854092"></a><h3>
356
 
<a name="g-output-stream-write-all"></a>g_output_stream_write_all ()</h3>
357
 
<a class="indexterm" name="id2854104"></a><pre class="programlisting"><a
 
356
<a name="g-output-stream-write-all"></a><h3>g_output_stream_write_all ()</h3>
 
357
<pre class="programlisting"><a
358
358
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
359
359
>gboolean</a>            g_output_stream_write_all           (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
360
360
                                                         const void *buffer,
373
373
during the operation.
374
374
</p>
375
375
<p>
376
 
This function is similar to <a class="link" href="GOutputStream.html#g-output-stream-write"><code class="function">g_output_stream_write()</code></a>, except it tries to
 
376
This function is similar to <a class="link" href="GOutputStream.html#g-output-stream-write" title="g_output_stream_write ()"><code class="function">g_output_stream_write()</code></a>, except it tries to
377
377
write as many bytes as requested, only stopping on an error.
378
378
</p>
379
379
<p>
380
380
On a successful write of <em class="parameter"><code>count</code></em> bytes, <a
381
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
 
381
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
382
382
><code class="literal">TRUE</code></a> is returned, and <em class="parameter"><code>bytes_written</code></em>
383
383
is set to <em class="parameter"><code>count</code></em>.
384
384
</p>
387
387
is set to indicate the error status, <em class="parameter"><code>bytes_written</code></em> is updated to contain
388
388
the number of bytes written into the stream before the error occurred.</p>
389
389
<p>
390
 
 
391
390
</p>
392
391
<div class="variablelist"><table border="0">
393
392
<col align="left" valign="top">
394
393
<tbody>
395
394
<tr>
396
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
395
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
397
396
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
398
397
</td>
399
398
</tr>
400
399
<tr>
401
 
<td><p><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></p></td>
 
400
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
402
401
<td> the buffer containing the data to write. 
403
402
</td>
404
403
</tr>
405
404
<tr>
406
 
<td><p><span class="term"><em class="parameter"><code>count</code></em>&#160;:</span></p></td>
 
405
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
407
406
<td> the number of bytes to write
408
407
</td>
409
408
</tr>
410
409
<tr>
411
 
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em>&#160;:</span></p></td>
 
410
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em> :</span></p></td>
412
411
<td> location to store the number of bytes that was 
413
412
    written to the stream
414
413
</td>
415
414
</tr>
416
415
<tr>
417
 
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em>&#160;:</span></p></td>
 
416
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
418
417
<td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a
419
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
418
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
420
419
><code class="literal">NULL</code></a> to ignore.
421
420
</td>
422
421
</tr>
423
422
<tr>
424
 
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
 
423
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
425
424
<td> location to store the error occuring, or <a
426
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
425
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
427
426
><code class="literal">NULL</code></a> to ignore
428
427
</td>
429
428
</tr>
430
429
<tr>
431
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
430
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
432
431
<td> <a
433
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
 
432
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
434
433
><code class="literal">TRUE</code></a> on success, <a
435
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
 
434
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
436
435
><code class="literal">FALSE</code></a> if there was an error
437
436
</td>
438
437
</tr>
441
440
</div>
442
441
<hr>
443
442
<div class="refsect2" lang="en">
444
 
<a name="id2854402"></a><h3>
445
 
<a name="g-output-stream-splice"></a>g_output_stream_splice ()</h3>
446
 
<a class="indexterm" name="id2854413"></a><pre class="programlisting"><a
 
443
<a name="g-output-stream-splice"></a><h3>g_output_stream_splice ()</h3>
 
444
<pre class="programlisting"><a
447
445
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"
448
446
>gssize</a>              g_output_stream_splice              (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
449
447
                                                         <a class="link" href="GInputStream.html" title="GInputStream">GInputStream</a> *source,
450
 
                                                         <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags">GOutputStreamSpliceFlags</a> flags,
 
448
                                                         <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags" title="enum GOutputStreamSpliceFlags">GOutputStreamSpliceFlags</a> flags,
451
449
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
452
450
                                                         <a
453
451
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
455
453
<p>
456
454
Splices an input stream into an output stream.</p>
457
455
<p>
458
 
 
459
456
</p>
460
457
<div class="variablelist"><table border="0">
461
458
<col align="left" valign="top">
462
459
<tbody>
463
460
<tr>
464
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
461
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
465
462
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
466
463
</td>
467
464
</tr>
468
465
<tr>
469
 
<td><p><span class="term"><em class="parameter"><code>source</code></em>&#160;:</span></p></td>
 
466
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
470
467
<td> a <a class="link" href="GInputStream.html" title="GInputStream"><span class="type">GInputStream</span></a>.
471
468
</td>
472
469
</tr>
473
470
<tr>
474
 
<td><p><span class="term"><em class="parameter"><code>flags</code></em>&#160;:</span></p></td>
475
 
<td> a set of <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags"><span class="type">GOutputStreamSpliceFlags</span></a>.
 
471
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
 
472
<td> a set of <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags" title="enum GOutputStreamSpliceFlags"><span class="type">GOutputStreamSpliceFlags</span></a>.
476
473
</td>
477
474
</tr>
478
475
<tr>
479
 
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em>&#160;:</span></p></td>
 
476
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
480
477
<td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a
481
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
478
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
482
479
><code class="literal">NULL</code></a> to ignore. 
483
480
</td>
484
481
</tr>
485
482
<tr>
486
 
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
 
483
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
487
484
<td> a <a
488
485
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
489
486
><span class="type">GError</span></a> location to store the error occuring, or <a
490
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
487
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
491
488
><code class="literal">NULL</code></a> to 
492
489
ignore.
493
490
</td>
494
491
</tr>
495
492
<tr>
496
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
493
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
497
494
<td> a <a
498
495
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"
499
496
><span class="type">gssize</span></a> containing the size of the data spliced.
504
501
</div>
505
502
<hr>
506
503
<div class="refsect2" lang="en">
507
 
<a name="id2854622"></a><h3>
508
 
<a name="g-output-stream-flush"></a>g_output_stream_flush ()</h3>
509
 
<a class="indexterm" name="id2854633"></a><pre class="programlisting"><a
 
504
<a name="g-output-stream-flush"></a><h3>g_output_stream_flush ()</h3>
 
505
<pre class="programlisting"><a
510
506
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
511
507
>gboolean</a>            g_output_stream_flush               (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
512
508
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
522
518
</p>
523
519
<p>
524
520
If <em class="parameter"><code>cancellable</code></em> is not <a
525
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
521
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
526
522
><code class="literal">NULL</code></a>, then the operation can be cancelled by
527
523
triggering the cancellable object from another thread. If the operation
528
 
was cancelled, the error <a class="link" href="gio-GIOError.html#G-IO-ERROR-CANCELLED:CAPS"><code class="literal">G_IO_ERROR_CANCELLED</code></a> will be returned.</p>
 
524
was cancelled, the error <a class="link" href="gio-GIOError.html#G-IO-ERROR-CANCELLED--CAPS"><code class="literal">G_IO_ERROR_CANCELLED</code></a> will be returned.</p>
529
525
<p>
530
 
 
531
526
</p>
532
527
<div class="variablelist"><table border="0">
533
528
<col align="left" valign="top">
534
529
<tbody>
535
530
<tr>
536
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
531
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
537
532
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
538
533
</td>
539
534
</tr>
540
535
<tr>
541
 
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em>&#160;:</span></p></td>
 
536
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
542
537
<td> optional cancellable object
543
538
</td>
544
539
</tr>
545
540
<tr>
546
 
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
 
541
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
547
542
<td> location to store the error occuring, or <a
548
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
543
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
549
544
><code class="literal">NULL</code></a> to ignore
550
545
</td>
551
546
</tr>
552
547
<tr>
553
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
548
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
554
549
<td> <a
555
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
 
550
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
556
551
><code class="literal">TRUE</code></a> on success, <a
557
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
 
552
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
558
553
><code class="literal">FALSE</code></a> on error
559
554
</td>
560
555
</tr>
563
558
</div>
564
559
<hr>
565
560
<div class="refsect2" lang="en">
566
 
<a name="id2854809"></a><h3>
567
 
<a name="g-output-stream-close"></a>g_output_stream_close ()</h3>
568
 
<a class="indexterm" name="id2854820"></a><pre class="programlisting"><a
 
561
<a name="g-output-stream-close"></a><h3>g_output_stream_close ()</h3>
 
562
<pre class="programlisting"><a
569
563
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
570
564
>gboolean</a>            g_output_stream_close               (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
571
565
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
576
570
Closes the stream, releasing resources related to it.
577
571
</p>
578
572
<p>
579
 
Once the stream is closed, all other operations will return <a class="link" href="gio-GIOError.html#G-IO-ERROR-CLOSED:CAPS"><code class="literal">G_IO_ERROR_CLOSED</code></a>.
 
573
Once the stream is closed, all other operations will return <a class="link" href="gio-GIOError.html#G-IO-ERROR-CLOSED--CAPS"><code class="literal">G_IO_ERROR_CLOSED</code></a>.
580
574
Closing a stream multiple times will not return an error.
581
575
</p>
582
576
<p>
596
590
<p>
597
591
On failure the first error that happened will be reported, but the close
598
592
operation will finish as much as possible. A stream that failed to
599
 
close will still return <a class="link" href="gio-GIOError.html#G-IO-ERROR-CLOSED:CAPS"><code class="literal">G_IO_ERROR_CLOSED</code></a> for all operations. Still, it
 
593
close will still return <a class="link" href="gio-GIOError.html#G-IO-ERROR-CLOSED--CAPS"><code class="literal">G_IO_ERROR_CLOSED</code></a> for all operations. Still, it
600
594
is important to check and report the error to the user, otherwise
601
595
there might be a loss of data as all data might not be written.
602
596
</p>
603
597
<p>
604
598
If <em class="parameter"><code>cancellable</code></em> is not NULL, then the operation can be cancelled by
605
599
triggering the cancellable object from another thread. If the operation
606
 
was cancelled, the error <a class="link" href="gio-GIOError.html#G-IO-ERROR-CANCELLED:CAPS"><code class="literal">G_IO_ERROR_CANCELLED</code></a> will be returned.
 
600
was cancelled, the error <a class="link" href="gio-GIOError.html#G-IO-ERROR-CANCELLED--CAPS"><code class="literal">G_IO_ERROR_CANCELLED</code></a> will be returned.
607
601
Cancelling a close will still leave the stream closed, but there some streams
608
602
can use a faster close that doesn't block to e.g. check errors. On
609
603
cancellation (as with any error) there is no guarantee that all written
610
604
data will reach the target.</p>
611
605
<p>
612
 
 
613
606
</p>
614
607
<div class="variablelist"><table border="0">
615
608
<col align="left" valign="top">
616
609
<tbody>
617
610
<tr>
618
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
611
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
619
612
<td> A <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
620
613
</td>
621
614
</tr>
622
615
<tr>
623
 
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em>&#160;:</span></p></td>
 
616
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
624
617
<td> optional cancellable object
625
618
</td>
626
619
</tr>
627
620
<tr>
628
 
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
 
621
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
629
622
<td> location to store the error occuring, or <a
630
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
623
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
631
624
><code class="literal">NULL</code></a> to ignore
632
625
</td>
633
626
</tr>
634
627
<tr>
635
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
628
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
636
629
<td> <a
637
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
 
630
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
638
631
><code class="literal">TRUE</code></a> on success, <a
639
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
 
632
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
640
633
><code class="literal">FALSE</code></a> on failure
641
634
</td>
642
635
</tr>
645
638
</div>
646
639
<hr>
647
640
<div class="refsect2" lang="en">
648
 
<a name="id2855037"></a><h3>
649
 
<a name="g-output-stream-write-async"></a>g_output_stream_write_async ()</h3>
650
 
<a class="indexterm" name="id2855048"></a><pre class="programlisting">void                g_output_stream_write_async         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
641
<a name="g-output-stream-write-async"></a><h3>g_output_stream_write_async ()</h3>
 
642
<pre class="programlisting">void                g_output_stream_write_async         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
651
643
                                                         const void *buffer,
652
644
                                                         <a
653
645
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
654
646
>gsize</a> count,
655
647
                                                         int io_priority,
656
648
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
657
 
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
 
649
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()">GAsyncReadyCallback</a> callback,
658
650
                                                         <a
659
651
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
660
652
>gpointer</a> user_data);</pre>
661
653
<p>
662
654
Request an asynchronous write of <em class="parameter"><code>count</code></em> bytes from <em class="parameter"><code>buffer</code></em> into 
663
655
the stream. When the operation is finished <em class="parameter"><code>callback</code></em> will be called.
664
 
You can then call <a class="link" href="GOutputStream.html#g-output-stream-write-finish"><code class="function">g_output_stream_write_finish()</code></a> to get the result of the 
 
656
You can then call <a class="link" href="GOutputStream.html#g-output-stream-write-finish" title="g_output_stream_write_finish ()"><code class="function">g_output_stream_write_finish()</code></a> to get the result of the 
665
657
operation.
666
658
</p>
667
659
<p>
668
660
During an async request no other sync and async calls are allowed, 
669
 
and will result in <a class="link" href="gio-GIOError.html#G-IO-ERROR-PENDING:CAPS"><code class="literal">G_IO_ERROR_PENDING</code></a> errors. 
 
661
and will result in <a class="link" href="gio-GIOError.html#G-IO-ERROR-PENDING--CAPS"><code class="literal">G_IO_ERROR_PENDING</code></a> errors. 
670
662
</p>
671
663
<p>
672
664
A value of <em class="parameter"><code>count</code></em> larger than <a
673
 
href="/usr/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html#G-MAXSSIZE:CAPS"
 
665
href="/usr/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html#G-MAXSSIZE--CAPS"
674
666
><code class="literal">G_MAXSSIZE</code></a> will cause a 
675
 
<a class="link" href="gio-GIOError.html#G-IO-ERROR-INVALID-ARGUMENT:CAPS"><code class="literal">G_IO_ERROR_INVALID_ARGUMENT</code></a> error.
 
667
<a class="link" href="gio-GIOError.html#G-IO-ERROR-INVALID-ARGUMENT--CAPS"><code class="literal">G_IO_ERROR_INVALID_ARGUMENT</code></a> error.
676
668
</p>
677
669
<p>
678
670
On success, the number of bytes written will be passed to the
684
676
Any outstanding I/O request with higher priority (lower numerical 
685
677
value) will be executed before an outstanding request with lower 
686
678
priority. Default priority is <a
687
 
href="/usr/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT:CAPS"
 
679
href="/usr/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT--CAPS"
688
680
><code class="literal">G_PRIORITY_DEFAULT</code></a>.
689
681
</p>
690
682
<p>
694
686
</p>
695
687
<p>
696
688
For the synchronous, blocking version of this function, see 
697
 
<a class="link" href="GOutputStream.html#g-output-stream-write"><code class="function">g_output_stream_write()</code></a>.</p>
 
689
<a class="link" href="GOutputStream.html#g-output-stream-write" title="g_output_stream_write ()"><code class="function">g_output_stream_write()</code></a>.</p>
698
690
<p>
699
 
 
700
691
</p>
701
692
<div class="variablelist"><table border="0">
702
693
<col align="left" valign="top">
703
694
<tbody>
704
695
<tr>
705
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
696
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
706
697
<td> A <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
707
698
</td>
708
699
</tr>
709
700
<tr>
710
 
<td><p><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></p></td>
 
701
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
711
702
<td> the buffer containing the data to write. 
712
703
</td>
713
704
</tr>
714
705
<tr>
715
 
<td><p><span class="term"><em class="parameter"><code>count</code></em>&#160;:</span></p></td>
 
706
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
716
707
<td> the number of bytes to write
717
708
</td>
718
709
</tr>
719
710
<tr>
720
 
<td><p><span class="term"><em class="parameter"><code>io_priority</code></em>&#160;:</span></p></td>
 
711
<td><p><span class="term"><em class="parameter"><code>io_priority</code></em> :</span></p></td>
721
712
<td> the io priority of the request.
722
713
</td>
723
714
</tr>
724
715
<tr>
725
 
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em>&#160;:</span></p></td>
 
716
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
726
717
<td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a
727
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
718
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
728
719
><code class="literal">NULL</code></a> to ignore.
729
720
</td>
730
721
</tr>
731
722
<tr>
732
 
<td><p><span class="term"><em class="parameter"><code>callback</code></em>&#160;:</span></p></td>
 
723
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
733
724
<td> callback to call when the request is satisfied
734
725
</td>
735
726
</tr>
736
727
<tr>
737
 
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
 
728
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
738
729
<td> the data to pass to callback function
739
730
</td>
740
731
</tr>
743
734
</div>
744
735
<hr>
745
736
<div class="refsect2" lang="en">
746
 
<a name="id2855376"></a><h3>
747
 
<a name="g-output-stream-write-finish"></a>g_output_stream_write_finish ()</h3>
748
 
<a class="indexterm" name="id2855389"></a><pre class="programlisting"><a
 
737
<a name="g-output-stream-write-finish"></a><h3>g_output_stream_write_finish ()</h3>
 
738
<pre class="programlisting"><a
749
739
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"
750
740
>gssize</a>              g_output_stream_write_finish        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
751
741
                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,
755
745
<p>
756
746
Finishes a stream write operation.</p>
757
747
<p>
758
 
 
759
748
</p>
760
749
<div class="variablelist"><table border="0">
761
750
<col align="left" valign="top">
762
751
<tbody>
763
752
<tr>
764
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
753
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
765
754
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
766
755
</td>
767
756
</tr>
768
757
<tr>
769
 
<td><p><span class="term"><em class="parameter"><code>result</code></em>&#160;:</span></p></td>
 
758
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
770
759
<td> a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.
771
760
</td>
772
761
</tr>
773
762
<tr>
774
 
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
 
763
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
775
764
<td> a <a
776
765
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
777
766
><span class="type">GError</span></a> location to store the error occuring, or <a
778
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
767
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
779
768
><code class="literal">NULL</code></a> to 
780
769
ignore.
781
770
</td>
782
771
</tr>
783
772
<tr>
784
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
773
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
785
774
<td> a <a
786
775
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"
787
776
><span class="type">gssize</span></a> containing the number of bytes written to the stream.
792
781
</div>
793
782
<hr>
794
783
<div class="refsect2" lang="en">
795
 
<a name="id2855533"></a><h3>
796
 
<a name="g-output-stream-splice-async"></a>g_output_stream_splice_async ()</h3>
797
 
<a class="indexterm" name="id2855546"></a><pre class="programlisting">void                g_output_stream_splice_async        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
784
<a name="g-output-stream-splice-async"></a><h3>g_output_stream_splice_async ()</h3>
 
785
<pre class="programlisting">void                g_output_stream_splice_async        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
798
786
                                                         <a class="link" href="GInputStream.html" title="GInputStream">GInputStream</a> *source,
799
 
                                                         <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags">GOutputStreamSpliceFlags</a> flags,
 
787
                                                         <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags" title="enum GOutputStreamSpliceFlags">GOutputStreamSpliceFlags</a> flags,
800
788
                                                         int io_priority,
801
789
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
802
 
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
 
790
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()">GAsyncReadyCallback</a> callback,
803
791
                                                         <a
804
792
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
805
793
>gpointer</a> user_data);</pre>
806
794
<p>
807
795
Splices a stream asynchronously.
808
796
When the operation is finished <em class="parameter"><code>callback</code></em> will be called.
809
 
You can then call <a class="link" href="GOutputStream.html#g-output-stream-splice-finish"><code class="function">g_output_stream_splice_finish()</code></a> to get the 
 
797
You can then call <a class="link" href="GOutputStream.html#g-output-stream-splice-finish" title="g_output_stream_splice_finish ()"><code class="function">g_output_stream_splice_finish()</code></a> to get the 
810
798
result of the operation.
811
799
</p>
812
800
<p>
813
801
For the synchronous, blocking version of this function, see 
814
 
<a class="link" href="GOutputStream.html#g-output-stream-splice"><code class="function">g_output_stream_splice()</code></a>.</p>
 
802
<a class="link" href="GOutputStream.html#g-output-stream-splice" title="g_output_stream_splice ()"><code class="function">g_output_stream_splice()</code></a>.</p>
815
803
<p>
816
 
 
817
804
</p>
818
805
<div class="variablelist"><table border="0">
819
806
<col align="left" valign="top">
820
807
<tbody>
821
808
<tr>
822
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
809
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
823
810
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
824
811
</td>
825
812
</tr>
826
813
<tr>
827
 
<td><p><span class="term"><em class="parameter"><code>source</code></em>&#160;:</span></p></td>
 
814
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
828
815
<td> a <a class="link" href="GInputStream.html" title="GInputStream"><span class="type">GInputStream</span></a>. 
829
816
</td>
830
817
</tr>
831
818
<tr>
832
 
<td><p><span class="term"><em class="parameter"><code>flags</code></em>&#160;:</span></p></td>
833
 
<td> a set of <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags"><span class="type">GOutputStreamSpliceFlags</span></a>.
 
819
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
 
820
<td> a set of <a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags" title="enum GOutputStreamSpliceFlags"><span class="type">GOutputStreamSpliceFlags</span></a>.
834
821
</td>
835
822
</tr>
836
823
<tr>
837
 
<td><p><span class="term"><em class="parameter"><code>io_priority</code></em>&#160;:</span></p></td>
 
824
<td><p><span class="term"><em class="parameter"><code>io_priority</code></em> :</span></p></td>
838
825
<td> the io priority of the request.
839
826
</td>
840
827
</tr>
841
828
<tr>
842
 
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em>&#160;:</span></p></td>
 
829
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
843
830
<td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a
844
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
831
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
845
832
><code class="literal">NULL</code></a> to ignore. 
846
833
</td>
847
834
</tr>
848
835
<tr>
849
 
<td><p><span class="term"><em class="parameter"><code>callback</code></em>&#160;:</span></p></td>
850
 
<td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a>. 
 
836
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
 
837
<td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a>. 
851
838
</td>
852
839
</tr>
853
840
<tr>
854
 
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
 
841
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
855
842
<td> user data passed to <em class="parameter"><code>callback</code></em>.
856
843
</td>
857
844
</tr>
860
847
</div>
861
848
<hr>
862
849
<div class="refsect2" lang="en">
863
 
<a name="id2857339"></a><h3>
864
 
<a name="g-output-stream-splice-finish"></a>g_output_stream_splice_finish ()</h3>
865
 
<a class="indexterm" name="id2857352"></a><pre class="programlisting"><a
 
850
<a name="g-output-stream-splice-finish"></a><h3>g_output_stream_splice_finish ()</h3>
 
851
<pre class="programlisting"><a
866
852
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"
867
853
>gssize</a>              g_output_stream_splice_finish       (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
868
854
                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,
872
858
<p>
873
859
Finishes an asynchronous stream splice operation.</p>
874
860
<p>
875
 
 
876
861
</p>
877
862
<div class="variablelist"><table border="0">
878
863
<col align="left" valign="top">
879
864
<tbody>
880
865
<tr>
881
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
866
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
882
867
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
883
868
</td>
884
869
</tr>
885
870
<tr>
886
 
<td><p><span class="term"><em class="parameter"><code>result</code></em>&#160;:</span></p></td>
 
871
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
887
872
<td> a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.
888
873
</td>
889
874
</tr>
890
875
<tr>
891
 
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
 
876
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
892
877
<td> a <a
893
878
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
894
879
><span class="type">GError</span></a> location to store the error occuring, or <a
895
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
880
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
896
881
><code class="literal">NULL</code></a> to 
897
882
ignore.
898
883
</td>
899
884
</tr>
900
885
<tr>
901
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
886
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
902
887
<td> a <a
903
888
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"
904
889
><span class="type">gssize</span></a> of the number of bytes spliced.
909
894
</div>
910
895
<hr>
911
896
<div class="refsect2" lang="en">
912
 
<a name="id2857480"></a><h3>
913
 
<a name="g-output-stream-flush-async"></a>g_output_stream_flush_async ()</h3>
914
 
<a class="indexterm" name="id2857491"></a><pre class="programlisting">void                g_output_stream_flush_async         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
897
<a name="g-output-stream-flush-async"></a><h3>g_output_stream_flush_async ()</h3>
 
898
<pre class="programlisting">void                g_output_stream_flush_async         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
915
899
                                                         int io_priority,
916
900
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
917
 
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
 
901
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()">GAsyncReadyCallback</a> callback,
918
902
                                                         <a
919
903
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
920
904
>gpointer</a> user_data);</pre>
921
905
<p>
922
906
Flushes a stream asynchronously.
923
 
For behaviour details see <a class="link" href="GOutputStream.html#g-output-stream-flush"><code class="function">g_output_stream_flush()</code></a>.
 
907
For behaviour details see <a class="link" href="GOutputStream.html#g-output-stream-flush" title="g_output_stream_flush ()"><code class="function">g_output_stream_flush()</code></a>.
924
908
</p>
925
909
<p>
926
910
When the operation is finished <em class="parameter"><code>callback</code></em> will be 
927
 
called. You can then call <a class="link" href="GOutputStream.html#g-output-stream-flush-finish"><code class="function">g_output_stream_flush_finish()</code></a> to get the 
 
911
called. You can then call <a class="link" href="GOutputStream.html#g-output-stream-flush-finish" title="g_output_stream_flush_finish ()"><code class="function">g_output_stream_flush_finish()</code></a> to get the 
928
912
result of the operation.</p>
929
913
<p>
930
 
 
931
914
</p>
932
915
<div class="variablelist"><table border="0">
933
916
<col align="left" valign="top">
934
917
<tbody>
935
918
<tr>
936
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
919
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
937
920
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
938
921
</td>
939
922
</tr>
940
923
<tr>
941
 
<td><p><span class="term"><em class="parameter"><code>io_priority</code></em>&#160;:</span></p></td>
 
924
<td><p><span class="term"><em class="parameter"><code>io_priority</code></em> :</span></p></td>
942
925
<td> the io priority of the request.
943
926
</td>
944
927
</tr>
945
928
<tr>
946
 
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em>&#160;:</span></p></td>
 
929
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
947
930
<td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a
948
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
931
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
949
932
><code class="literal">NULL</code></a> to ignore.
950
933
</td>
951
934
</tr>
952
935
<tr>
953
 
<td><p><span class="term"><em class="parameter"><code>callback</code></em>&#160;:</span></p></td>
954
 
<td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied
 
936
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
 
937
<td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied
955
938
</td>
956
939
</tr>
957
940
<tr>
958
 
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
 
941
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
959
942
<td> the data to pass to callback function
960
943
</td>
961
944
</tr>
964
947
</div>
965
948
<hr>
966
949
<div class="refsect2" lang="en">
967
 
<a name="id2857670"></a><h3>
968
 
<a name="g-output-stream-flush-finish"></a>g_output_stream_flush_finish ()</h3>
969
 
<a class="indexterm" name="id2857683"></a><pre class="programlisting"><a
 
950
<a name="g-output-stream-flush-finish"></a><h3>g_output_stream_flush_finish ()</h3>
 
951
<pre class="programlisting"><a
970
952
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
971
953
>gboolean</a>            g_output_stream_flush_finish        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
972
954
                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,
976
958
<p>
977
959
Finishes flushing an output stream.</p>
978
960
<p>
979
 
 
980
961
</p>
981
962
<div class="variablelist"><table border="0">
982
963
<col align="left" valign="top">
983
964
<tbody>
984
965
<tr>
985
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
966
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
986
967
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
987
968
</td>
988
969
</tr>
989
970
<tr>
990
 
<td><p><span class="term"><em class="parameter"><code>result</code></em>&#160;:</span></p></td>
 
971
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
991
972
<td> a GAsyncResult.
992
973
</td>
993
974
</tr>
994
975
<tr>
995
 
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
 
976
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
996
977
<td> a <a
997
978
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
998
979
><span class="type">GError</span></a> location to store the error occuring, or <a
999
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
980
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
1000
981
><code class="literal">NULL</code></a> to 
1001
982
ignore.
1002
983
</td>
1003
984
</tr>
1004
985
<tr>
1005
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
986
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1006
987
<td> <a
1007
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
 
988
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
1008
989
><code class="literal">TRUE</code></a> if flush operation suceeded, <a
1009
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
 
990
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
1010
991
><code class="literal">FALSE</code></a> otherwise.
1011
992
</td>
1012
993
</tr>
1015
996
</div>
1016
997
<hr>
1017
998
<div class="refsect2" lang="en">
1018
 
<a name="id2857815"></a><h3>
1019
 
<a name="g-output-stream-close-async"></a>g_output_stream_close_async ()</h3>
1020
 
<a class="indexterm" name="id2857826"></a><pre class="programlisting">void                g_output_stream_close_async         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
 
999
<a name="g-output-stream-close-async"></a><h3>g_output_stream_close_async ()</h3>
 
1000
<pre class="programlisting">void                g_output_stream_close_async         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
1021
1001
                                                         int io_priority,
1022
1002
                                                         <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
1023
 
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
 
1003
                                                         <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()">GAsyncReadyCallback</a> callback,
1024
1004
                                                         <a
1025
1005
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1026
1006
>gpointer</a> user_data);</pre>
1027
1007
<p>
1028
1008
Requests an asynchronous close of the stream, releasing resources 
1029
1009
related to it. When the operation is finished <em class="parameter"><code>callback</code></em> will be 
1030
 
called. You can then call <a class="link" href="GOutputStream.html#g-output-stream-close-finish"><code class="function">g_output_stream_close_finish()</code></a> to get 
 
1010
called. You can then call <a class="link" href="GOutputStream.html#g-output-stream-close-finish" title="g_output_stream_close_finish ()"><code class="function">g_output_stream_close_finish()</code></a> to get 
1031
1011
the result of the operation.
1032
1012
</p>
1033
1013
<p>
1034
 
For behaviour details see <a class="link" href="GOutputStream.html#g-output-stream-close"><code class="function">g_output_stream_close()</code></a>.
 
1014
For behaviour details see <a class="link" href="GOutputStream.html#g-output-stream-close" title="g_output_stream_close ()"><code class="function">g_output_stream_close()</code></a>.
1035
1015
</p>
1036
1016
<p>
1037
1017
The asyncronous methods have a default fallback that uses threads 
1038
1018
to implement asynchronicity, so they are optional for inheriting 
1039
1019
classes. However, if you override one you must override all.</p>
1040
1020
<p>
1041
 
 
1042
1021
</p>
1043
1022
<div class="variablelist"><table border="0">
1044
1023
<col align="left" valign="top">
1045
1024
<tbody>
1046
1025
<tr>
1047
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
1026
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1048
1027
<td> A <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
1049
1028
</td>
1050
1029
</tr>
1051
1030
<tr>
1052
 
<td><p><span class="term"><em class="parameter"><code>io_priority</code></em>&#160;:</span></p></td>
 
1031
<td><p><span class="term"><em class="parameter"><code>io_priority</code></em> :</span></p></td>
1053
1032
<td> the io priority of the request.
1054
1033
</td>
1055
1034
</tr>
1056
1035
<tr>
1057
 
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em>&#160;:</span></p></td>
 
1036
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1058
1037
<td> optional cancellable object
1059
1038
</td>
1060
1039
</tr>
1061
1040
<tr>
1062
 
<td><p><span class="term"><em class="parameter"><code>callback</code></em>&#160;:</span></p></td>
 
1041
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1063
1042
<td> callback to call when the request is satisfied
1064
1043
</td>
1065
1044
</tr>
1066
1045
<tr>
1067
 
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
 
1046
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1068
1047
<td> the data to pass to callback function
1069
1048
</td>
1070
1049
</tr>
1073
1052
</div>
1074
1053
<hr>
1075
1054
<div class="refsect2" lang="en">
1076
 
<a name="id2857992"></a><h3>
1077
 
<a name="g-output-stream-close-finish"></a>g_output_stream_close_finish ()</h3>
1078
 
<a class="indexterm" name="id2858005"></a><pre class="programlisting"><a
 
1055
<a name="g-output-stream-close-finish"></a><h3>g_output_stream_close_finish ()</h3>
 
1056
<pre class="programlisting"><a
1079
1057
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1080
1058
>gboolean</a>            g_output_stream_close_finish        (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
1081
1059
                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,
1085
1063
<p>
1086
1064
Closes an output stream.</p>
1087
1065
<p>
1088
 
 
1089
1066
</p>
1090
1067
<div class="variablelist"><table border="0">
1091
1068
<col align="left" valign="top">
1092
1069
<tbody>
1093
1070
<tr>
1094
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
1071
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1095
1072
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
1096
1073
</td>
1097
1074
</tr>
1098
1075
<tr>
1099
 
<td><p><span class="term"><em class="parameter"><code>result</code></em>&#160;:</span></p></td>
 
1076
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1100
1077
<td> a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.
1101
1078
</td>
1102
1079
</tr>
1103
1080
<tr>
1104
 
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
 
1081
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1105
1082
<td> a <a
1106
1083
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
1107
1084
><span class="type">GError</span></a> location to store the error occuring, or <a
1108
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
1085
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
1109
1086
><code class="literal">NULL</code></a> to 
1110
1087
ignore.
1111
1088
</td>
1112
1089
</tr>
1113
1090
<tr>
1114
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1091
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1115
1092
<td> <a
1116
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
 
1093
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
1117
1094
><code class="literal">TRUE</code></a> if stream was successfully closed, <a
1118
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
 
1095
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
1119
1096
><code class="literal">FALSE</code></a> otherwise.
1120
1097
</td>
1121
1098
</tr>
1124
1101
</div>
1125
1102
<hr>
1126
1103
<div class="refsect2" lang="en">
1127
 
<a name="id2858142"></a><h3>
1128
 
<a name="g-output-stream-is-closed"></a>g_output_stream_is_closed ()</h3>
1129
 
<a class="indexterm" name="id2858153"></a><pre class="programlisting"><a
 
1104
<a name="g-output-stream-is-closed"></a><h3>g_output_stream_is_closed ()</h3>
 
1105
<pre class="programlisting"><a
1130
1106
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1131
1107
>gboolean</a>            g_output_stream_is_closed           (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream);</pre>
1132
1108
<p>
1133
1109
Checks if an output stream has already been closed.</p>
1134
1110
<p>
1135
 
 
1136
1111
</p>
1137
1112
<div class="variablelist"><table border="0">
1138
1113
<col align="left" valign="top">
1139
1114
<tbody>
1140
1115
<tr>
1141
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
1116
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1142
1117
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
1143
1118
</td>
1144
1119
</tr>
1145
1120
<tr>
1146
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1121
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1147
1122
<td> <a
1148
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
 
1123
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
1149
1124
><code class="literal">TRUE</code></a> if <em class="parameter"><code>stream</code></em> is closed. <a
1150
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
 
1125
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
1151
1126
><code class="literal">FALSE</code></a> otherwise. 
1152
1127
</td>
1153
1128
</tr>
1156
1131
</div>
1157
1132
<hr>
1158
1133
<div class="refsect2" lang="en">
1159
 
<a name="id2858236"></a><h3>
1160
 
<a name="g-output-stream-has-pending"></a>g_output_stream_has_pending ()</h3>
1161
 
<a class="indexterm" name="id2858247"></a><pre class="programlisting"><a
 
1134
<a name="g-output-stream-has-pending"></a><h3>g_output_stream_has_pending ()</h3>
 
1135
<pre class="programlisting"><a
1162
1136
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1163
1137
>gboolean</a>            g_output_stream_has_pending         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream);</pre>
1164
1138
<p>
1165
1139
Checks if an ouput stream has pending actions.</p>
1166
1140
<p>
1167
 
 
1168
1141
</p>
1169
1142
<div class="variablelist"><table border="0">
1170
1143
<col align="left" valign="top">
1171
1144
<tbody>
1172
1145
<tr>
1173
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
1146
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1174
1147
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
1175
1148
</td>
1176
1149
</tr>
1177
1150
<tr>
1178
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1151
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1179
1152
<td> <a
1180
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
 
1153
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
1181
1154
><code class="literal">TRUE</code></a> if <em class="parameter"><code>stream</code></em> has pending actions. 
1182
1155
</td>
1183
1156
</tr>
1186
1159
</div>
1187
1160
<hr>
1188
1161
<div class="refsect2" lang="en">
1189
 
<a name="id2858321"></a><h3>
1190
 
<a name="g-output-stream-set-pending"></a>g_output_stream_set_pending ()</h3>
1191
 
<a class="indexterm" name="id2858332"></a><pre class="programlisting"><a
 
1162
<a name="g-output-stream-set-pending"></a><h3>g_output_stream_set_pending ()</h3>
 
1163
<pre class="programlisting"><a
1192
1164
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1193
1165
>gboolean</a>            g_output_stream_set_pending         (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream,
1194
1166
                                                         <a
1197
1169
<p>
1198
1170
Sets <em class="parameter"><code>stream</code></em> to have actions pending. If the pending flag is
1199
1171
already set or <em class="parameter"><code>stream</code></em> is closed, it will return <a
1200
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
 
1172
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
1201
1173
><code class="literal">FALSE</code></a> and set
1202
1174
<em class="parameter"><code>error</code></em>.</p>
1203
1175
<p>
1204
 
 
1205
1176
</p>
1206
1177
<div class="variablelist"><table border="0">
1207
1178
<col align="left" valign="top">
1208
1179
<tbody>
1209
1180
<tr>
1210
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
1181
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1211
1182
<td> a <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>.
1212
1183
</td>
1213
1184
</tr>
1214
1185
<tr>
1215
 
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
 
1186
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1216
1187
<td> a <a
1217
1188
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
1218
1189
><span class="type">GError</span></a> location to store the error occuring, or <a
1219
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
1190
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
1220
1191
><code class="literal">NULL</code></a> to 
1221
1192
ignore.
1222
1193
</td>
1223
1194
</tr>
1224
1195
<tr>
1225
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1196
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1226
1197
<td> <a
1227
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
 
1198
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
1228
1199
><code class="literal">TRUE</code></a> if pending was previously unset and is now set.
1229
1200
</td>
1230
1201
</tr>
1233
1204
</div>
1234
1205
<hr>
1235
1206
<div class="refsect2" lang="en">
1236
 
<a name="id2858460"></a><h3>
1237
 
<a name="g-output-stream-clear-pending"></a>g_output_stream_clear_pending ()</h3>
1238
 
<a class="indexterm" name="id2858473"></a><pre class="programlisting">void                g_output_stream_clear_pending       (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream);</pre>
 
1207
<a name="g-output-stream-clear-pending"></a><h3>g_output_stream_clear_pending ()</h3>
 
1208
<pre class="programlisting">void                g_output_stream_clear_pending       (<a class="link" href="GOutputStream.html" title="GOutputStream">GOutputStream</a> *stream);</pre>
1239
1209
<p>
1240
1210
Clears the pending flag on <em class="parameter"><code>stream</code></em>.</p>
1241
1211
<p>
1242
 
 
1243
1212
</p>
1244
1213
<div class="variablelist"><table border="0">
1245
1214
<col align="left" valign="top">
1246
1215
<tbody><tr>
1247
 
<td><p><span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></p></td>
 
1216
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1248
1217
<td> output stream
1249
1218
</td>
1250
1219
</tr></tbody>
1251
1220
</table></div>
1252
1221
</div>
1253
1222
</div>
1254
 
<div class="refsect1" lang="en">
1255
 
<a name="id2858524"></a><div class="refsect2" lang="en"><a name="id2858525"></a></div>
 
1223
</div>
 
1224
<div class="footer">
1256
1225
<hr>
1257
 
<div class="refsect2" lang="en"><a name="id2858526"></a></div>
1258
 
</div>
1259
 
</div>
 
1226
          Generated by GTK-Doc V1.11</div>
1260
1227
</body>
1261
1228
</html>