re22.html 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>&lt;GIOChannel&gt;: </title>
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
  7. <link rel="home" href="index.html" title="">
  8. <link rel="up" href="ch01.html" title="GLib">
  9. <link rel="prev" href="re21.html" title="&lt;%GLibHookFlagMask&gt;">
  10. <link rel="next" href="re23.html" title="&lt;%GLibIOChannelError&gt;">
  11. <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
  12. <link rel="stylesheet" href="style.css" type="text/css">
  13. </head>
  14. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  15. <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
  16. <td width="100%" align="left" class="shortcuts"></td>
  17. <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
  18. <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
  19. <td><a accesskey="p" href="re21.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
  20. <td><a accesskey="n" href="re23.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
  21. </tr></table>
  22. <div class="refentry">
  23. <a name="id-1.1.23"></a><div class="titlepage"></div>
  24. <div class="refnamediv">
  25. <h2>&lt;GIOChannel&gt;</h2>
  26. <p>&lt;GIOChannel&gt;</p>
  27. </div>
  28. <div class="refsect1">
  29. <a name="id-1.1.23.2"></a><h2>Description</h2>
  30. <p>A data structure representing an IO Channel. The fields should be
  31. considered private and should only be accessed with the following
  32. functions.</p>
  33. </div>
  34. <div class="refsect1">
  35. <a name="id-1.1.23.3"></a><h2>Functions</h2>
  36. <div class="refsect2">
  37. <a name="id-1.1.23.3.2"></a><h3>close</h3>
  38. <div class="informalexample"><pre class="programlisting">(define-values () (iochannel:close self))
  39. </pre></div>
  40. <p>Close an IO channel. Any pending data to be written will be
  41. flushed, ignoring errors. The channel will not be freed until the
  42. last reference is dropped using <code class="function">g_io_channel_unref()</code>.</p>
  43. <div class="refsect3">
  44. <a name="id-1.1.23.3.2.4"></a><h4>Parameters</h4>
  45. <div class="informaltable"><table><tr>
  46. <td class="parameter_name"><p>channel</p></td>
  47. <td class="parameter_description">
  48. <p>A <span class="type">GIOChannel</span></p>
  49. <p>Passed as <code class="code">self</code></p>
  50. </td>
  51. </tr></table></div>
  52. </div>
  53. </div>
  54. <div class="refsect2">
  55. <a name="id-1.1.23.3.3"></a><h3>flush</h3>
  56. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:flush self))
  57. </pre></div>
  58. <p>Flushes the write buffer for the GIOChannel.</p>
  59. <div class="refsect3">
  60. <a name="id-1.1.23.3.3.4"></a><h4>Parameters</h4>
  61. <div class="informaltable"><table><tr>
  62. <td class="parameter_name"><p>channel</p></td>
  63. <td class="parameter_description">
  64. <p>a <span class="type">GIOChannel</span></p>
  65. <p>Passed as <code class="code">self</code></p>
  66. </td>
  67. </tr></table></div>
  68. </div>
  69. </div>
  70. <div class="refsect2">
  71. <a name="id-1.1.23.3.4"></a><h3>get-buffer-condition</h3>
  72. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:get-buffer-condition self))
  73. </pre></div>
  74. <p>This function returns a <span class="type">GIOCondition</span> depending on whether there
  75. is data to be read/space to write data in the internal buffers in
  76. the <span class="type">GIOChannel</span>. Only the flags <code class="constant">G_IO_IN</code> and <code class="constant">G_IO_OUT</code> may be set.</p>
  77. <div class="refsect3">
  78. <a name="id-1.1.23.3.4.4"></a><h4>Parameters</h4>
  79. <div class="informaltable"><table><tr>
  80. <td class="parameter_name"><p>channel</p></td>
  81. <td class="parameter_description">
  82. <p>A <span class="type">GIOChannel</span></p>
  83. <p>Passed as <code class="code">self</code></p>
  84. </td>
  85. </tr></table></div>
  86. </div>
  87. </div>
  88. <div class="refsect2">
  89. <a name="id-1.1.23.3.5"></a><h3>get-buffer-size</h3>
  90. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:get-buffer-size self))
  91. </pre></div>
  92. <p>Gets the buffer size.</p>
  93. <div class="refsect3">
  94. <a name="id-1.1.23.3.5.4"></a><h4>Parameters</h4>
  95. <div class="informaltable"><table><tr>
  96. <td class="parameter_name"><p>channel</p></td>
  97. <td class="parameter_description">
  98. <p>a <span class="type">GIOChannel</span></p>
  99. <p>Passed as <code class="code">self</code></p>
  100. </td>
  101. </tr></table></div>
  102. </div>
  103. </div>
  104. <div class="refsect2">
  105. <a name="id-1.1.23.3.6"></a><h3>get-buffered?</h3>
  106. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:get-buffered? self))
  107. </pre></div>
  108. <p>Returns whether <em class="parameter"><code>channel</code></em> is buffered.</p>
  109. <div class="refsect3">
  110. <a name="id-1.1.23.3.6.4"></a><h4>Parameters</h4>
  111. <div class="informaltable"><table><tr>
  112. <td class="parameter_name"><p>channel</p></td>
  113. <td class="parameter_description">
  114. <p>a <span class="type">GIOChannel</span></p>
  115. <p>Passed as <code class="code">self</code></p>
  116. </td>
  117. </tr></table></div>
  118. </div>
  119. </div>
  120. <div class="refsect2">
  121. <a name="id-1.1.23.3.7"></a><h3>get-close-on-unref?</h3>
  122. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:get-close-on-unref? self))
  123. </pre></div>
  124. <p>Returns whether the file/socket/whatever associated with <em class="parameter"><code>channel</code></em>
  125. will be closed when <em class="parameter"><code>channel</code></em> receives its final unref and is
  126. destroyed. The default value of this is <code class="constant">TRUE</code> for channels created
  127. by g_io_channel_new_file (), and <code class="constant">FALSE</code> for all other channels.</p>
  128. <div class="refsect3">
  129. <a name="id-1.1.23.3.7.4"></a><h4>Parameters</h4>
  130. <div class="informaltable"><table><tr>
  131. <td class="parameter_name"><p>channel</p></td>
  132. <td class="parameter_description">
  133. <p>a <span class="type">GIOChannel</span>.</p>
  134. <p>Passed as <code class="code">self</code></p>
  135. </td>
  136. </tr></table></div>
  137. </div>
  138. </div>
  139. <div class="refsect2">
  140. <a name="id-1.1.23.3.8"></a><h3>get-encoding</h3>
  141. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:get-encoding self))
  142. </pre></div>
  143. <p>Gets the encoding for the input/output of the channel.
  144. The internal encoding is always UTF-8. The encoding <code class="constant">NULL</code>
  145. makes the channel safe for binary data.</p>
  146. <div class="refsect3">
  147. <a name="id-1.1.23.3.8.4"></a><h4>Parameters</h4>
  148. <div class="informaltable"><table><tr>
  149. <td class="parameter_name"><p>channel</p></td>
  150. <td class="parameter_description">
  151. <p>a <span class="type">GIOChannel</span></p>
  152. <p>Passed as <code class="code">self</code></p>
  153. </td>
  154. </tr></table></div>
  155. </div>
  156. </div>
  157. <div class="refsect2">
  158. <a name="id-1.1.23.3.9"></a><h3>get-flags</h3>
  159. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:get-flags self))
  160. </pre></div>
  161. <p>Gets the current flags for a <span class="type">GIOChannel</span>, including read-only
  162. flags such as <code class="constant">G_IO_FLAG_IS_READABLE</code>.
  163. </p>
  164. <p>The values of the flags <code class="constant">G_IO_FLAG_IS_READABLE</code> and <code class="constant">G_IO_FLAG_IS_WRITABLE</code>
  165. are cached for internal use by the channel when it is created.
  166. If they should change at some later point (e.g. partial shutdown
  167. of a socket with the UNIX <code class="function">shutdown()</code> function), the user
  168. should immediately call <code class="function">g_io_channel_get_flags()</code> to update
  169. the internal values of these flags.</p>
  170. <div class="refsect3">
  171. <a name="id-1.1.23.3.9.5"></a><h4>Parameters</h4>
  172. <div class="informaltable"><table><tr>
  173. <td class="parameter_name"><p>channel</p></td>
  174. <td class="parameter_description">
  175. <p>a <span class="type">GIOChannel</span></p>
  176. <p>Passed as <code class="code">self</code></p>
  177. </td>
  178. </tr></table></div>
  179. </div>
  180. </div>
  181. <div class="refsect2">
  182. <a name="id-1.1.23.3.10"></a><h3>get-line-term</h3>
  183. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:get-line-term self length))
  184. </pre></div>
  185. <p>This returns the string that <span class="type">GIOChannel</span> uses to determine
  186. where in the file a line break occurs. A value of <code class="constant">NULL</code>
  187. indicates autodetection.</p>
  188. <div class="refsect3">
  189. <a name="id-1.1.23.3.10.4"></a><h4>Parameters</h4>
  190. <div class="informaltable"><table>
  191. <tr>
  192. <td class="parameter_name"><p>channel</p></td>
  193. <td class="parameter_description">
  194. <p>a <span class="type">GIOChannel</span></p>
  195. <p>Passed as <code class="code">self</code></p>
  196. </td>
  197. </tr>
  198. <tr>
  199. <td class="parameter_name"><p>length</p></td>
  200. <td class="parameter_description">
  201. <p>a location to return the length of the line terminator</p>
  202. <p>Passed as <code class="code">length</code></p>
  203. </td>
  204. </tr>
  205. </table></div>
  206. </div>
  207. </div>
  208. <div class="refsect2">
  209. <a name="id-1.1.23.3.11"></a><h3>init</h3>
  210. <div class="informalexample"><pre class="programlisting">(define-values () (iochannel:init self))
  211. </pre></div>
  212. <p>Initializes a <span class="type">GIOChannel</span> struct.
  213. </p>
  214. <p>This is called by each of the above functions when creating a
  215. <span class="type">GIOChannel</span>, and so is not often needed by the application
  216. programmer (unless you are creating a new type of <span class="type">GIOChannel</span>).</p>
  217. <div class="refsect3">
  218. <a name="id-1.1.23.3.11.5"></a><h4>Parameters</h4>
  219. <div class="informaltable"><table><tr>
  220. <td class="parameter_name"><p>channel</p></td>
  221. <td class="parameter_description">
  222. <p>a <span class="type">GIOChannel</span></p>
  223. <p>Passed as <code class="code">self</code></p>
  224. </td>
  225. </tr></table></div>
  226. </div>
  227. </div>
  228. <div class="refsect2">
  229. <a name="id-1.1.23.3.12"></a><h3>read</h3>
  230. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:read self buf count bytes-read))
  231. </pre></div>
  232. <p>Reads data from a <span class="type">GIOChannel</span>.</p>
  233. <div class="refsect3">
  234. <a name="id-1.1.23.3.12.4"></a><h4>Parameters</h4>
  235. <div class="informaltable"><table>
  236. <tr>
  237. <td class="parameter_name"><p>channel</p></td>
  238. <td class="parameter_description">
  239. <p>a <span class="type">GIOChannel</span></p>
  240. <p>Passed as <code class="code">self</code></p>
  241. </td>
  242. </tr>
  243. <tr>
  244. <td class="parameter_name"><p>buf</p></td>
  245. <td class="parameter_description">
  246. <p>a buffer to read the data into (which should be at least
  247. count bytes long)</p>
  248. <p>Passed as <code class="code">buf</code></p>
  249. </td>
  250. </tr>
  251. <tr>
  252. <td class="parameter_name"><p>count</p></td>
  253. <td class="parameter_description">
  254. <p>the number of bytes to read from the <span class="type">GIOChannel</span></p>
  255. <p>Passed as <code class="code">count</code></p>
  256. </td>
  257. </tr>
  258. <tr>
  259. <td class="parameter_name"><p>bytes_read</p></td>
  260. <td class="parameter_description">
  261. <p>returns the number of bytes actually read</p>
  262. <p>Passed as <code class="code">bytes-read</code></p>
  263. </td>
  264. </tr>
  265. </table></div>
  266. </div>
  267. </div>
  268. <div class="refsect2">
  269. <a name="id-1.1.23.3.13"></a><h3>read-chars!</h3>
  270. <div class="informalexample"><pre class="programlisting">(define-values (%return buf bytes-read) (iochannel:read-chars! self buf))
  271. </pre></div>
  272. <p>Replacement for <code class="function">g_io_channel_read()</code> with the new API.</p>
  273. <div class="refsect3">
  274. <a name="id-1.1.23.3.13.4"></a><h4>Parameters</h4>
  275. <div class="informaltable"><table>
  276. <tr>
  277. <td class="parameter_name"><p>channel</p></td>
  278. <td class="parameter_description">
  279. <p>a <span class="type">GIOChannel</span></p>
  280. <p>Passed as <code class="code">self</code></p>
  281. </td>
  282. </tr>
  283. <tr>
  284. <td class="parameter_name"><p>buf</p></td>
  285. <td class="parameter_description">
  286. <p>
  287. </p>
  288. <p>a buffer to read data into</p>
  289. <p>Passed as <code class="code">buf</code></p>
  290. </td>
  291. </tr>
  292. <tr>
  293. <td class="parameter_name"><p>count</p></td>
  294. <td class="parameter_description">
  295. <p>the size of the buffer. Note that the buffer may not be
  296. completely filled even if there is data in the buffer if the
  297. remaining data is not a complete character.</p>
  298. <p>Inferred from <code class="code">buf</code></p>
  299. </td>
  300. </tr>
  301. <tr>
  302. <td class="parameter_name"><p>bytes_read</p></td>
  303. <td class="parameter_description">
  304. <p>The number of bytes read. This may be
  305. zero even on success if count &lt; 6 and the channel's encoding
  306. is non-<code class="constant">NULL</code>. This indicates that the next UTF-8 character is
  307. too wide for the buffer.</p>
  308. <p>Passed as <code class="code">bytes-read</code></p>
  309. </td>
  310. </tr>
  311. </table></div>
  312. </div>
  313. </div>
  314. <div class="refsect2">
  315. <a name="id-1.1.23.3.14"></a><h3>read-line</h3>
  316. <div class="informalexample"><pre class="programlisting">(define-values
  317. (%return str-return length terminator-pos)
  318. (iochannel:read-line self))
  319. </pre></div>
  320. <p>Reads a line, including the terminating character(s),
  321. from a <span class="type">GIOChannel</span> into a newly-allocated string.
  322. <em class="parameter"><code>str_return</code></em> will contain allocated memory if the return
  323. is <code class="constant">G_IO_STATUS_NORMAL</code>.</p>
  324. <div class="refsect3">
  325. <a name="id-1.1.23.3.14.4"></a><h4>Parameters</h4>
  326. <div class="informaltable"><table>
  327. <tr>
  328. <td class="parameter_name"><p>channel</p></td>
  329. <td class="parameter_description">
  330. <p>a <span class="type">GIOChannel</span></p>
  331. <p>Passed as <code class="code">self</code></p>
  332. </td>
  333. </tr>
  334. <tr>
  335. <td class="parameter_name"><p>str_return</p></td>
  336. <td class="parameter_description">
  337. <p>The line read from the <span class="type">GIOChannel</span>, including the
  338. line terminator. This data should be freed with <code class="function">g_free()</code>
  339. when no longer needed. This is a nul-terminated string.
  340. If a <em class="parameter"><code>length</code></em> of zero is returned, this will be <code class="constant">NULL</code> instead.</p>
  341. <p>Passed as <code class="code">str-return</code></p>
  342. </td>
  343. </tr>
  344. <tr>
  345. <td class="parameter_name"><p>length</p></td>
  346. <td class="parameter_description">
  347. <p>location to store length of the read data, or <code class="constant">NULL</code></p>
  348. <p>Passed as <code class="code">length</code></p>
  349. </td>
  350. </tr>
  351. <tr>
  352. <td class="parameter_name"><p>terminator_pos</p></td>
  353. <td class="parameter_description">
  354. <p>location to store position of line terminator, or <code class="constant">NULL</code></p>
  355. <p>Passed as <code class="code">terminator-pos</code></p>
  356. </td>
  357. </tr>
  358. </table></div>
  359. </div>
  360. </div>
  361. <div class="refsect2">
  362. <a name="id-1.1.23.3.15"></a><h3>read-line-string</h3>
  363. <div class="informalexample"><pre class="programlisting">(define-values
  364. (%return)
  365. (iochannel:read-line-string self buffer terminator-pos))
  366. </pre></div>
  367. <p>Reads a line from a <span class="type">GIOChannel</span>, using a <span class="type">GString</span> as a buffer.</p>
  368. <div class="refsect3">
  369. <a name="id-1.1.23.3.15.4"></a><h4>Parameters</h4>
  370. <div class="informaltable"><table>
  371. <tr>
  372. <td class="parameter_name"><p>channel</p></td>
  373. <td class="parameter_description">
  374. <p>a <span class="type">GIOChannel</span></p>
  375. <p>Passed as <code class="code">self</code></p>
  376. </td>
  377. </tr>
  378. <tr>
  379. <td class="parameter_name"><p>buffer</p></td>
  380. <td class="parameter_description">
  381. <p>a <span class="type">GString</span> into which the line will be written.
  382. If <em class="parameter"><code>buffer</code></em> already contains data, the old data will
  383. be overwritten.</p>
  384. <p>Passed as <code class="code">buffer</code></p>
  385. </td>
  386. </tr>
  387. <tr>
  388. <td class="parameter_name"><p>terminator_pos</p></td>
  389. <td class="parameter_description">
  390. <p>location to store position of line terminator, or <code class="constant">NULL</code></p>
  391. <p>Passed as <code class="code">terminator-pos</code></p>
  392. </td>
  393. </tr>
  394. </table></div>
  395. </div>
  396. </div>
  397. <div class="refsect2">
  398. <a name="id-1.1.23.3.16"></a><h3>read-to-end</h3>
  399. <div class="informalexample"><pre class="programlisting">(define-values (%return str-return length) (iochannel:read-to-end self))
  400. </pre></div>
  401. <p>Reads all the remaining data from the file.</p>
  402. <div class="refsect3">
  403. <a name="id-1.1.23.3.16.4"></a><h4>Parameters</h4>
  404. <div class="informaltable"><table>
  405. <tr>
  406. <td class="parameter_name"><p>channel</p></td>
  407. <td class="parameter_description">
  408. <p>a <span class="type">GIOChannel</span></p>
  409. <p>Passed as <code class="code">self</code></p>
  410. </td>
  411. </tr>
  412. <tr>
  413. <td class="parameter_name"><p>str_return</p></td>
  414. <td class="parameter_description">
  415. <p>Location to
  416. store a pointer to a string holding the remaining data in the
  417. <span class="type">GIOChannel</span>. This data should be freed with <code class="function">g_free()</code> when no
  418. longer needed. This data is terminated by an extra nul
  419. character, but there may be other nuls in the intervening data.</p>
  420. <p>Passed as <code class="code">str-return</code></p>
  421. </td>
  422. </tr>
  423. <tr>
  424. <td class="parameter_name"><p>length</p></td>
  425. <td class="parameter_description">
  426. <p>location to store length of the data</p>
  427. <p>Inferred from <code class="code">str-return</code></p>
  428. </td>
  429. </tr>
  430. </table></div>
  431. </div>
  432. </div>
  433. <div class="refsect2">
  434. <a name="id-1.1.23.3.17"></a><h3>read-unichar</h3>
  435. <div class="informalexample"><pre class="programlisting">(define-values (%return thechar) (iochannel:read-unichar self))
  436. </pre></div>
  437. <p>Reads a Unicode character from <em class="parameter"><code>channel</code></em>.
  438. This function cannot be called on a channel with <code class="constant">NULL</code> encoding.</p>
  439. <div class="refsect3">
  440. <a name="id-1.1.23.3.17.4"></a><h4>Parameters</h4>
  441. <div class="informaltable"><table>
  442. <tr>
  443. <td class="parameter_name"><p>channel</p></td>
  444. <td class="parameter_description">
  445. <p>a <span class="type">GIOChannel</span></p>
  446. <p>Passed as <code class="code">self</code></p>
  447. </td>
  448. </tr>
  449. <tr>
  450. <td class="parameter_name"><p>thechar</p></td>
  451. <td class="parameter_description">
  452. <p>a location to return a character</p>
  453. <p>Passed as <code class="code">thechar</code></p>
  454. </td>
  455. </tr>
  456. </table></div>
  457. </div>
  458. </div>
  459. <div class="refsect2">
  460. <a name="id-1.1.23.3.18"></a><h3>ref</h3>
  461. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:ref self))
  462. </pre></div>
  463. <p>Increments the reference count of a <span class="type">GIOChannel</span>.</p>
  464. <div class="refsect3">
  465. <a name="id-1.1.23.3.18.4"></a><h4>Parameters</h4>
  466. <div class="informaltable"><table><tr>
  467. <td class="parameter_name"><p>channel</p></td>
  468. <td class="parameter_description">
  469. <p>a <span class="type">GIOChannel</span></p>
  470. <p>Passed as <code class="code">self</code></p>
  471. </td>
  472. </tr></table></div>
  473. </div>
  474. </div>
  475. <div class="refsect2">
  476. <a name="id-1.1.23.3.19"></a><h3>seek</h3>
  477. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:seek self offset type))
  478. </pre></div>
  479. <p>Sets the current position in the <span class="type">GIOChannel</span>, similar to the standard
  480. library function <code class="function">fseek()</code>.</p>
  481. <div class="refsect3">
  482. <a name="id-1.1.23.3.19.4"></a><h4>Parameters</h4>
  483. <div class="informaltable"><table>
  484. <tr>
  485. <td class="parameter_name"><p>channel</p></td>
  486. <td class="parameter_description">
  487. <p>a <span class="type">GIOChannel</span></p>
  488. <p>Passed as <code class="code">self</code></p>
  489. </td>
  490. </tr>
  491. <tr>
  492. <td class="parameter_name"><p>offset</p></td>
  493. <td class="parameter_description">
  494. <p>an offset, in bytes, which is added to the position specified
  495. by <em class="parameter"><code>type</code></em></p>
  496. <p>Passed as <code class="code">offset</code></p>
  497. </td>
  498. </tr>
  499. <tr>
  500. <td class="parameter_name"><p>type</p></td>
  501. <td class="parameter_description">
  502. <p>the position in the file, which can be <code class="constant">G_SEEK_CUR</code> (the current
  503. position), <code class="constant">G_SEEK_SET</code> (the start of the file), or <code class="constant">G_SEEK_END</code>
  504. (the end of the file)</p>
  505. <p>Passed as <code class="code">type</code></p>
  506. </td>
  507. </tr>
  508. </table></div>
  509. </div>
  510. </div>
  511. <div class="refsect2">
  512. <a name="id-1.1.23.3.20"></a><h3>seek-position</h3>
  513. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:seek-position self offset type))
  514. </pre></div>
  515. <p>Replacement for <code class="function">g_io_channel_seek()</code> with the new API.</p>
  516. <div class="refsect3">
  517. <a name="id-1.1.23.3.20.4"></a><h4>Parameters</h4>
  518. <div class="informaltable"><table>
  519. <tr>
  520. <td class="parameter_name"><p>channel</p></td>
  521. <td class="parameter_description">
  522. <p>a <span class="type">GIOChannel</span></p>
  523. <p>Passed as <code class="code">self</code></p>
  524. </td>
  525. </tr>
  526. <tr>
  527. <td class="parameter_name"><p>offset</p></td>
  528. <td class="parameter_description">
  529. <p>The offset in bytes from the position specified by <em class="parameter"><code>type</code></em></p>
  530. <p>Passed as <code class="code">offset</code></p>
  531. </td>
  532. </tr>
  533. <tr>
  534. <td class="parameter_name"><p>type</p></td>
  535. <td class="parameter_description">
  536. <p>a <span class="type">GSeekType</span>. The type <code class="constant">G_SEEK_CUR</code> is only allowed in those
  537. cases where a call to g_io_channel_set_encoding ()
  538. is allowed. See the documentation for
  539. g_io_channel_set_encoding () for details.</p>
  540. <p>Passed as <code class="code">type</code></p>
  541. </td>
  542. </tr>
  543. </table></div>
  544. </div>
  545. </div>
  546. <div class="refsect2">
  547. <a name="id-1.1.23.3.21"></a><h3>set-buffer-size</h3>
  548. <div class="informalexample"><pre class="programlisting">(define-values () (iochannel:set-buffer-size self size))
  549. </pre></div>
  550. <p>Sets the buffer size.</p>
  551. <div class="refsect3">
  552. <a name="id-1.1.23.3.21.4"></a><h4>Parameters</h4>
  553. <div class="informaltable"><table>
  554. <tr>
  555. <td class="parameter_name"><p>channel</p></td>
  556. <td class="parameter_description">
  557. <p>a <span class="type">GIOChannel</span></p>
  558. <p>Passed as <code class="code">self</code></p>
  559. </td>
  560. </tr>
  561. <tr>
  562. <td class="parameter_name"><p>size</p></td>
  563. <td class="parameter_description">
  564. <p>the size of the buffer, or 0 to let GLib pick a good size</p>
  565. <p>Passed as <code class="code">size</code></p>
  566. </td>
  567. </tr>
  568. </table></div>
  569. </div>
  570. </div>
  571. <div class="refsect2">
  572. <a name="id-1.1.23.3.22"></a><h3>set-buffered</h3>
  573. <div class="informalexample"><pre class="programlisting">(define-values () (iochannel:set-buffered self buffered))
  574. </pre></div>
  575. <p>The buffering state can only be set if the channel's encoding
  576. is <code class="constant">NULL</code>. For any other encoding, the channel must be buffered.
  577. </p>
  578. <p>A buffered channel can only be set unbuffered if the channel's
  579. internal buffers have been flushed. Newly created channels or
  580. channels which have returned <code class="constant">G_IO_STATUS_EOF</code>
  581. not require such a flush. For write-only channels, a call to
  582. g_io_channel_flush () is sufficient. For all other channels,
  583. the buffers may be flushed by a call to g_io_channel_seek_position ().
  584. This includes the possibility of seeking with seek type <code class="constant">G_SEEK_CUR</code>
  585. and an offset of zero. Note that this means that socket-based
  586. channels cannot be set unbuffered once they have had data
  587. read from them.
  588. </p>
  589. <p>On unbuffered channels, it is safe to mix read and write
  590. calls from the new and old APIs, if this is necessary for
  591. maintaining old code.
  592. </p>
  593. <p>The default state of the channel is buffered.</p>
  594. <div class="refsect3">
  595. <a name="id-1.1.23.3.22.7"></a><h4>Parameters</h4>
  596. <div class="informaltable"><table>
  597. <tr>
  598. <td class="parameter_name"><p>channel</p></td>
  599. <td class="parameter_description">
  600. <p>a <span class="type">GIOChannel</span></p>
  601. <p>Passed as <code class="code">self</code></p>
  602. </td>
  603. </tr>
  604. <tr>
  605. <td class="parameter_name"><p>buffered</p></td>
  606. <td class="parameter_description">
  607. <p>whether to set the channel buffered or unbuffered</p>
  608. <p>Passed as <code class="code">buffered</code></p>
  609. </td>
  610. </tr>
  611. </table></div>
  612. </div>
  613. </div>
  614. <div class="refsect2">
  615. <a name="id-1.1.23.3.23"></a><h3>set-close-on-unref</h3>
  616. <div class="informalexample"><pre class="programlisting">(define-values () (iochannel:set-close-on-unref self do-close))
  617. </pre></div>
  618. <p>Whether to close the channel on the final unref of the <span class="type">GIOChannel</span>
  619. data structure. The default value of this is <code class="constant">TRUE</code> for channels
  620. created by g_io_channel_new_file (), and <code class="constant">FALSE</code> for all other channels.
  621. </p>
  622. <p>Setting this flag to <code class="constant">TRUE</code> for a channel you have already closed
  623. can cause problems when the final reference to the <span class="type">GIOChannel</span> is dropped.</p>
  624. <div class="refsect3">
  625. <a name="id-1.1.23.3.23.5"></a><h4>Parameters</h4>
  626. <div class="informaltable"><table>
  627. <tr>
  628. <td class="parameter_name"><p>channel</p></td>
  629. <td class="parameter_description">
  630. <p>a <span class="type">GIOChannel</span></p>
  631. <p>Passed as <code class="code">self</code></p>
  632. </td>
  633. </tr>
  634. <tr>
  635. <td class="parameter_name"><p>do_close</p></td>
  636. <td class="parameter_description">
  637. <p>Whether to close the channel on the final unref of
  638. the GIOChannel data structure.</p>
  639. <p>Passed as <code class="code">do-close</code></p>
  640. </td>
  641. </tr>
  642. </table></div>
  643. </div>
  644. </div>
  645. <div class="refsect2">
  646. <a name="id-1.1.23.3.24"></a><h3>set-encoding</h3>
  647. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:set-encoding self encoding))
  648. </pre></div>
  649. <p>Sets the encoding for the input/output of the channel.
  650. The internal encoding is always UTF-8. The default encoding
  651. for the external file is UTF-8.
  652. </p>
  653. <p>The encoding <code class="constant">NULL</code> is safe to use with binary data.
  654. </p>
  655. <p>The encoding can only be set if one of the following conditions
  656. is true:
  657. </p>
  658. <p>- The channel was just created, and has not been written to or read from yet.
  659. </p>
  660. <p>- The channel is write-only.
  661. </p>
  662. <p>- The channel is a file, and the file pointer was just repositioned
  663. by a call to <code class="function">g_io_channel_seek_position()</code>. (This flushes all the
  664. internal buffers.)
  665. </p>
  666. <p>- The current encoding is <code class="constant">NULL</code> or UTF-8.
  667. </p>
  668. <p>- One of the (new API) read functions has just returned <code class="constant">G_IO_STATUS_EOF</code>
  669. (or, in the case of <code class="function">g_io_channel_read_to_end()</code>, <code class="constant">G_IO_STATUS_NORMAL</code>).
  670. </p>
  671. <p>- One of the functions <code class="function">g_io_channel_read_chars()</code> or
  672. <code class="function">g_io_channel_read_unichar()</code> has returned <code class="constant">G_IO_STATUS_AGAIN</code> or
  673. <code class="constant">G_IO_STATUS_ERROR</code>. This may be useful in the case of
  674. <code class="constant">G_CONVERT_ERROR_ILLEGAL_SEQUENCE</code>.
  675. Returning one of these statuses from <code class="function">g_io_channel_read_line()</code>,
  676. <code class="function">g_io_channel_read_line_string()</code>, or <code class="function">g_io_channel_read_to_end()</code>
  677. does not guarantee that the encoding can be changed.
  678. </p>
  679. <p>Channels which do not meet one of the above conditions cannot call
  680. <code class="function">g_io_channel_seek_position()</code> with an offset of <code class="constant">G_SEEK_CUR</code>, and, if
  681. they are "seekable", cannot call <code class="function">g_io_channel_write_chars()</code> after
  682. calling one of the API "read" functions.</p>
  683. <div class="refsect3">
  684. <a name="id-1.1.23.3.24.13"></a><h4>Parameters</h4>
  685. <div class="informaltable"><table>
  686. <tr>
  687. <td class="parameter_name"><p>channel</p></td>
  688. <td class="parameter_description">
  689. <p>a <span class="type">GIOChannel</span></p>
  690. <p>Passed as <code class="code">self</code></p>
  691. </td>
  692. </tr>
  693. <tr>
  694. <td class="parameter_name"><p>encoding</p></td>
  695. <td class="parameter_description">
  696. <p>the encoding type</p>
  697. <p>Passed as <code class="code">encoding</code></p>
  698. </td>
  699. </tr>
  700. </table></div>
  701. </div>
  702. </div>
  703. <div class="refsect2">
  704. <a name="id-1.1.23.3.25"></a><h3>set-flags</h3>
  705. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:set-flags self flags))
  706. </pre></div>
  707. <p>Sets the (writeable) flags in <em class="parameter"><code>channel</code></em> to (<em class="parameter"><code>flags</code></em> &amp; <code class="constant">G_IO_FLAG_SET_MASK</code>).</p>
  708. <div class="refsect3">
  709. <a name="id-1.1.23.3.25.4"></a><h4>Parameters</h4>
  710. <div class="informaltable"><table>
  711. <tr>
  712. <td class="parameter_name"><p>channel</p></td>
  713. <td class="parameter_description">
  714. <p>a <span class="type">GIOChannel</span></p>
  715. <p>Passed as <code class="code">self</code></p>
  716. </td>
  717. </tr>
  718. <tr>
  719. <td class="parameter_name"><p>flags</p></td>
  720. <td class="parameter_description">
  721. <p>the flags to set on the IO channel</p>
  722. <p>Passed as <code class="code">flags</code></p>
  723. </td>
  724. </tr>
  725. </table></div>
  726. </div>
  727. </div>
  728. <div class="refsect2">
  729. <a name="id-1.1.23.3.26"></a><h3>set-line-term</h3>
  730. <div class="informalexample"><pre class="programlisting">(define-values () (iochannel:set-line-term self line-term length))
  731. </pre></div>
  732. <p>This sets the string that <span class="type">GIOChannel</span> uses to determine
  733. where in the file a line break occurs.</p>
  734. <div class="refsect3">
  735. <a name="id-1.1.23.3.26.4"></a><h4>Parameters</h4>
  736. <div class="informaltable"><table>
  737. <tr>
  738. <td class="parameter_name"><p>channel</p></td>
  739. <td class="parameter_description">
  740. <p>a <span class="type">GIOChannel</span></p>
  741. <p>Passed as <code class="code">self</code></p>
  742. </td>
  743. </tr>
  744. <tr>
  745. <td class="parameter_name"><p>line_term</p></td>
  746. <td class="parameter_description">
  747. <p>The line termination string. Use <code class="constant">NULL</code> for
  748. autodetect. Autodetection breaks on "\n", "\r\n", "\r", "\0",
  749. and the Unicode paragraph separator. Autodetection should not be
  750. used for anything other than file-based channels.</p>
  751. <p>Passed as <code class="code">line-term</code></p>
  752. </td>
  753. </tr>
  754. <tr>
  755. <td class="parameter_name"><p>length</p></td>
  756. <td class="parameter_description">
  757. <p>The length of the termination string. If -1 is passed, the
  758. string is assumed to be nul-terminated. This option allows
  759. termination strings with embedded nuls.</p>
  760. <p>Passed as <code class="code">length</code></p>
  761. </td>
  762. </tr>
  763. </table></div>
  764. </div>
  765. </div>
  766. <div class="refsect2">
  767. <a name="id-1.1.23.3.27"></a><h3>shutdown</h3>
  768. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:shutdown self flush))
  769. </pre></div>
  770. <p>Close an IO channel. Any pending data to be written will be
  771. flushed if <em class="parameter"><code>flush</code></em> is <code class="constant">TRUE</code>. The channel will not be freed until the
  772. last reference is dropped using <code class="function">g_io_channel_unref()</code>.</p>
  773. <div class="refsect3">
  774. <a name="id-1.1.23.3.27.4"></a><h4>Parameters</h4>
  775. <div class="informaltable"><table>
  776. <tr>
  777. <td class="parameter_name"><p>channel</p></td>
  778. <td class="parameter_description">
  779. <p>a <span class="type">GIOChannel</span></p>
  780. <p>Passed as <code class="code">self</code></p>
  781. </td>
  782. </tr>
  783. <tr>
  784. <td class="parameter_name"><p>flush</p></td>
  785. <td class="parameter_description">
  786. <p>if <code class="constant">TRUE</code>, flush pending</p>
  787. <p>Passed as <code class="code">flush</code></p>
  788. </td>
  789. </tr>
  790. </table></div>
  791. </div>
  792. </div>
  793. <div class="refsect2">
  794. <a name="id-1.1.23.3.28"></a><h3>unix-get-fd</h3>
  795. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:unix-get-fd self))
  796. </pre></div>
  797. <p>Returns the file descriptor of the <span class="type">GIOChannel</span>.
  798. </p>
  799. <p>On Windows this function returns the file descriptor or socket of
  800. the <span class="type">GIOChannel</span>.</p>
  801. <div class="refsect3">
  802. <a name="id-1.1.23.3.28.5"></a><h4>Parameters</h4>
  803. <div class="informaltable"><table><tr>
  804. <td class="parameter_name"><p>channel</p></td>
  805. <td class="parameter_description">
  806. <p>a <span class="type">GIOChannel</span>, created with <code class="function">g_io_channel_unix_new()</code>.</p>
  807. <p>Passed as <code class="code">self</code></p>
  808. </td>
  809. </tr></table></div>
  810. </div>
  811. </div>
  812. <div class="refsect2">
  813. <a name="id-1.1.23.3.29"></a><h3>unref</h3>
  814. <div class="informalexample"><pre class="programlisting">(define-values () (iochannel:unref self))
  815. </pre></div>
  816. <p>Decrements the reference count of a <span class="type">GIOChannel</span>.</p>
  817. <div class="refsect3">
  818. <a name="id-1.1.23.3.29.4"></a><h4>Parameters</h4>
  819. <div class="informaltable"><table><tr>
  820. <td class="parameter_name"><p>channel</p></td>
  821. <td class="parameter_description">
  822. <p>a <span class="type">GIOChannel</span></p>
  823. <p>Passed as <code class="code">self</code></p>
  824. </td>
  825. </tr></table></div>
  826. </div>
  827. </div>
  828. <div class="refsect2">
  829. <a name="id-1.1.23.3.30"></a><h3>write</h3>
  830. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:write self buf count bytes-written))
  831. </pre></div>
  832. <p>Writes data to a <span class="type">GIOChannel</span>.</p>
  833. <div class="refsect3">
  834. <a name="id-1.1.23.3.30.4"></a><h4>Parameters</h4>
  835. <div class="informaltable"><table>
  836. <tr>
  837. <td class="parameter_name"><p>channel</p></td>
  838. <td class="parameter_description">
  839. <p>a <span class="type">GIOChannel</span></p>
  840. <p>Passed as <code class="code">self</code></p>
  841. </td>
  842. </tr>
  843. <tr>
  844. <td class="parameter_name"><p>buf</p></td>
  845. <td class="parameter_description">
  846. <p>the buffer containing the data to write</p>
  847. <p>Passed as <code class="code">buf</code></p>
  848. </td>
  849. </tr>
  850. <tr>
  851. <td class="parameter_name"><p>count</p></td>
  852. <td class="parameter_description">
  853. <p>the number of bytes to write</p>
  854. <p>Passed as <code class="code">count</code></p>
  855. </td>
  856. </tr>
  857. <tr>
  858. <td class="parameter_name"><p>bytes_written</p></td>
  859. <td class="parameter_description">
  860. <p>the number of bytes actually written</p>
  861. <p>Passed as <code class="code">bytes-written</code></p>
  862. </td>
  863. </tr>
  864. </table></div>
  865. </div>
  866. </div>
  867. <div class="refsect2">
  868. <a name="id-1.1.23.3.31"></a><h3>write-chars</h3>
  869. <div class="informalexample"><pre class="programlisting">(define-values (%return bytes-written) (iochannel:write-chars self buf count))
  870. </pre></div>
  871. <p>Replacement for <code class="function">g_io_channel_write()</code> with the new API.
  872. </p>
  873. <p>On seekable channels with encodings other than <code class="constant">NULL</code> or UTF-8, generic
  874. mixing of reading and writing is not allowed. A call to g_io_channel_write_chars ()
  875. may only be made on a channel from which data has been read in the
  876. cases described in the documentation for g_io_channel_set_encoding ().</p>
  877. <div class="refsect3">
  878. <a name="id-1.1.23.3.31.5"></a><h4>Parameters</h4>
  879. <div class="informaltable"><table>
  880. <tr>
  881. <td class="parameter_name"><p>channel</p></td>
  882. <td class="parameter_description">
  883. <p>a <span class="type">GIOChannel</span></p>
  884. <p>Passed as <code class="code">self</code></p>
  885. </td>
  886. </tr>
  887. <tr>
  888. <td class="parameter_name"><p>buf</p></td>
  889. <td class="parameter_description">
  890. <p>a buffer to write data from</p>
  891. <p>Passed as <code class="code">buf</code></p>
  892. </td>
  893. </tr>
  894. <tr>
  895. <td class="parameter_name"><p>count</p></td>
  896. <td class="parameter_description">
  897. <p>the size of the buffer. If -1, the buffer
  898. is taken to be a nul-terminated string.</p>
  899. <p>Passed as <code class="code">count</code></p>
  900. </td>
  901. </tr>
  902. <tr>
  903. <td class="parameter_name"><p>bytes_written</p></td>
  904. <td class="parameter_description">
  905. <p>The number of bytes written. This can be nonzero
  906. even if the return value is not <code class="constant">G_IO_STATUS_NORMAL</code>.
  907. If the return value is <code class="constant">G_IO_STATUS_NORMAL</code> and the
  908. channel is blocking, this will always be equal
  909. to <em class="parameter"><code>count</code></em> if <em class="parameter"><code>count</code></em> &gt;= 0.</p>
  910. <p>Passed as <code class="code">bytes-written</code></p>
  911. </td>
  912. </tr>
  913. </table></div>
  914. </div>
  915. </div>
  916. <div class="refsect2">
  917. <a name="id-1.1.23.3.32"></a><h3>write-unichar</h3>
  918. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:write-unichar self thechar))
  919. </pre></div>
  920. <p>Writes a Unicode character to <em class="parameter"><code>channel</code></em>.
  921. This function cannot be called on a channel with <code class="constant">NULL</code> encoding.</p>
  922. <div class="refsect3">
  923. <a name="id-1.1.23.3.32.4"></a><h4>Parameters</h4>
  924. <div class="informaltable"><table>
  925. <tr>
  926. <td class="parameter_name"><p>channel</p></td>
  927. <td class="parameter_description">
  928. <p>a <span class="type">GIOChannel</span></p>
  929. <p>Passed as <code class="code">self</code></p>
  930. </td>
  931. </tr>
  932. <tr>
  933. <td class="parameter_name"><p>thechar</p></td>
  934. <td class="parameter_description">
  935. <p>a character</p>
  936. <p>Passed as <code class="code">thechar</code></p>
  937. </td>
  938. </tr>
  939. </table></div>
  940. </div>
  941. </div>
  942. <div class="refsect2">
  943. <a name="id-1.1.23.3.33"></a><h3>iochannel:unix-new</h3>
  944. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:unix-new fd))
  945. </pre></div>
  946. <p>Undocumented</p>
  947. <div class="refsect3">
  948. <a name="id-1.1.23.3.33.4"></a><h4>Parameters</h4>
  949. <div class="informaltable"><table><tr>
  950. <td class="parameter_name"><p>fd</p></td>
  951. <td class="parameter_description">
  952. <p></p>
  953. <p>Passed as <code class="code">fd</code></p>
  954. </td>
  955. </tr></table></div>
  956. </div>
  957. </div>
  958. <div class="refsect2">
  959. <a name="id-1.1.23.3.34"></a><h3>iochannel:new-file</h3>
  960. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:new-file filename mode))
  961. </pre></div>
  962. <p>Undocumented</p>
  963. <div class="refsect3">
  964. <a name="id-1.1.23.3.34.4"></a><h4>Parameters</h4>
  965. <div class="informaltable"><table>
  966. <tr>
  967. <td class="parameter_name"><p>filename</p></td>
  968. <td class="parameter_description">
  969. <p></p>
  970. <p>Passed as <code class="code">filename</code></p>
  971. </td>
  972. </tr>
  973. <tr>
  974. <td class="parameter_name"><p>mode</p></td>
  975. <td class="parameter_description">
  976. <p></p>
  977. <p>Passed as <code class="code">mode</code></p>
  978. </td>
  979. </tr>
  980. </table></div>
  981. </div>
  982. </div>
  983. <div class="refsect2">
  984. <a name="id-1.1.23.3.35"></a><h3>iochannel:error-from-errno</h3>
  985. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:error-from-errno en))
  986. </pre></div>
  987. <p>Converts an <code class="code">errno</code> error number to a <span class="type">GIOChannelError</span>.</p>
  988. <div class="refsect3">
  989. <a name="id-1.1.23.3.35.4"></a><h4>Parameters</h4>
  990. <div class="informaltable"><table><tr>
  991. <td class="parameter_name"><p>en</p></td>
  992. <td class="parameter_description">
  993. <p>an <code class="code">errno</code> error number, e.g. <code class="code">EINVAL</code></p>
  994. <p>Passed as <code class="code">en</code></p>
  995. </td>
  996. </tr></table></div>
  997. </div>
  998. </div>
  999. <div class="refsect2">
  1000. <a name="id-1.1.23.3.36"></a><h3>iochannel:error-quark</h3>
  1001. <div class="informalexample"><pre class="programlisting">(define-values (%return) (iochannel:error-quark))
  1002. </pre></div>
  1003. <p>Undocumented</p>
  1004. </div>
  1005. </div>
  1006. </div>
  1007. <div class="footer">
  1008. <hr>Generated by GTK-Doc V1.33.1</div>
  1009. </body>
  1010. </html>