gsf 3.0.9-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +55 -0
  3. data/lib/gsf/input.rb +26 -0
  4. data/lib/gsf/loader.rb +57 -0
  5. data/lib/gsf.rb +53 -0
  6. data/test/gsf-test-utils.rb +22 -0
  7. data/test/run-test.rb +46 -0
  8. data/test/test-input-stdio.rb +25 -0
  9. data/vendor/local/bin/gsf-office-thumbnailer.exe +0 -0
  10. data/vendor/local/bin/gsf-vba-dump.exe +0 -0
  11. data/vendor/local/bin/gsf.exe +0 -0
  12. data/vendor/local/bin/libgsf-1-114.dll +0 -0
  13. data/vendor/local/bin/libgsf-win32-1-114.dll +0 -0
  14. data/vendor/local/include/libgsf-1/gsf/gsf-blob.h +39 -0
  15. data/vendor/local/include/libgsf-1/gsf/gsf-clip-data.h +72 -0
  16. data/vendor/local/include/libgsf-1/gsf/gsf-doc-meta-data.h +66 -0
  17. data/vendor/local/include/libgsf-1/gsf/gsf-docprop-vector.h +47 -0
  18. data/vendor/local/include/libgsf-1/gsf/gsf-fwd.h +121 -0
  19. data/vendor/local/include/libgsf-1/gsf/gsf-impl-utils.h +156 -0
  20. data/vendor/local/include/libgsf-1/gsf/gsf-infile-impl.h +50 -0
  21. data/vendor/local/include/libgsf-1/gsf/gsf-infile-msole.h +45 -0
  22. data/vendor/local/include/libgsf-1/gsf/gsf-infile-msvba.h +49 -0
  23. data/vendor/local/include/libgsf-1/gsf/gsf-infile-stdio.h +43 -0
  24. data/vendor/local/include/libgsf-1/gsf/gsf-infile-tar.h +40 -0
  25. data/vendor/local/include/libgsf-1/gsf/gsf-infile-zip.h +43 -0
  26. data/vendor/local/include/libgsf-1/gsf/gsf-infile.h +46 -0
  27. data/vendor/local/include/libgsf-1/gsf/gsf-input-bzip.h +34 -0
  28. data/vendor/local/include/libgsf-1/gsf/gsf-input-gio.h +44 -0
  29. data/vendor/local/include/libgsf-1/gsf/gsf-input-gzip.h +43 -0
  30. data/vendor/local/include/libgsf-1/gsf/gsf-input-http.h +45 -0
  31. data/vendor/local/include/libgsf-1/gsf/gsf-input-impl.h +68 -0
  32. data/vendor/local/include/libgsf-1/gsf/gsf-input-iochannel.h +35 -0
  33. data/vendor/local/include/libgsf-1/gsf/gsf-input-memory.h +46 -0
  34. data/vendor/local/include/libgsf-1/gsf/gsf-input-proxy.h +46 -0
  35. data/vendor/local/include/libgsf-1/gsf/gsf-input-stdio.h +48 -0
  36. data/vendor/local/include/libgsf-1/gsf/gsf-input-textline.h +46 -0
  37. data/vendor/local/include/libgsf-1/gsf/gsf-input.h +69 -0
  38. data/vendor/local/include/libgsf-1/gsf/gsf-libxml.h +225 -0
  39. data/vendor/local/include/libgsf-1/gsf/gsf-meta-names.h +482 -0
  40. data/vendor/local/include/libgsf-1/gsf/gsf-msole-utils.h +70 -0
  41. data/vendor/local/include/libgsf-1/gsf/gsf-open-pkg-utils.h +95 -0
  42. data/vendor/local/include/libgsf-1/gsf/gsf-opendoc-utils.h +162 -0
  43. data/vendor/local/include/libgsf-1/gsf/gsf-outfile-impl.h +46 -0
  44. data/vendor/local/include/libgsf-1/gsf/gsf-outfile-msole.h +47 -0
  45. data/vendor/local/include/libgsf-1/gsf/gsf-outfile-stdio.h +49 -0
  46. data/vendor/local/include/libgsf-1/gsf/gsf-outfile-zip.h +61 -0
  47. data/vendor/local/include/libgsf-1/gsf/gsf-outfile.h +49 -0
  48. data/vendor/local/include/libgsf-1/gsf/gsf-output-bzip.h +43 -0
  49. data/vendor/local/include/libgsf-1/gsf/gsf-output-csv.h +84 -0
  50. data/vendor/local/include/libgsf-1/gsf/gsf-output-gio.h +44 -0
  51. data/vendor/local/include/libgsf-1/gsf/gsf-output-gzip.h +43 -0
  52. data/vendor/local/include/libgsf-1/gsf/gsf-output-iconv.h +47 -0
  53. data/vendor/local/include/libgsf-1/gsf/gsf-output-impl.h +37 -0
  54. data/vendor/local/include/libgsf-1/gsf/gsf-output-iochannel.h +43 -0
  55. data/vendor/local/include/libgsf-1/gsf/gsf-output-memory.h +44 -0
  56. data/vendor/local/include/libgsf-1/gsf/gsf-output-stdio.h +52 -0
  57. data/vendor/local/include/libgsf-1/gsf/gsf-output.h +99 -0
  58. data/vendor/local/include/libgsf-1/gsf/gsf-shared-memory.h +51 -0
  59. data/vendor/local/include/libgsf-1/gsf/gsf-structured-blob.h +45 -0
  60. data/vendor/local/include/libgsf-1/gsf/gsf-timestamp.h +70 -0
  61. data/vendor/local/include/libgsf-1/gsf/gsf-utils.h +340 -0
  62. data/vendor/local/include/libgsf-1/gsf/gsf.h +98 -0
  63. data/vendor/local/include/libgsf-1/gsf-win32/gsf-input-win32.h +41 -0
  64. data/vendor/local/include/libgsf-1/gsf-win32/gsf-output-win32.h +41 -0
  65. data/vendor/local/lib/libgsf-1.a +0 -0
  66. data/vendor/local/lib/libgsf-1.dll.a +0 -0
  67. data/vendor/local/lib/libgsf-1.la +41 -0
  68. data/vendor/local/lib/libgsf-win32-1.a +0 -0
  69. data/vendor/local/lib/libgsf-win32-1.dll.a +0 -0
  70. data/vendor/local/lib/libgsf-win32-1.la +41 -0
  71. data/vendor/local/lib/pkgconfig/libgsf-1.pc +11 -0
  72. data/vendor/local/lib/pkgconfig/libgsf-win32-1.pc +11 -0
  73. data/vendor/local/share/gtk-doc/html/gsf/annotation-glossary.html +56 -0
  74. data/vendor/local/share/gtk-doc/html/gsf/api.html +107 -0
  75. data/vendor/local/share/gtk-doc/html/gsf/dependencies.html +109 -0
  76. data/vendor/local/share/gtk-doc/html/gsf/gsf-Compression.html +369 -0
  77. data/vendor/local/share/gtk-doc/html/gsf/gsf-GIO.html +307 -0
  78. data/vendor/local/share/gtk-doc/html/gsf/gsf-GIOChannel.html +119 -0
  79. data/vendor/local/share/gtk-doc/html/gsf/gsf-Infile-reading-structed-files.html +397 -0
  80. data/vendor/local/share/gtk-doc/html/gsf/gsf-Input-from-unstructured-files.html +887 -0
  81. data/vendor/local/share/gtk-doc/html/gsf/gsf-MS-OLE2.html +894 -0
  82. data/vendor/local/share/gtk-doc/html/gsf/gsf-OASIS-Open-Document.html +398 -0
  83. data/vendor/local/share/gtk-doc/html/gsf/gsf-Outfile-writing-structed-files.html +237 -0
  84. data/vendor/local/share/gtk-doc/html/gsf/gsf-Output-to-unstructured-files.html +830 -0
  85. data/vendor/local/share/gtk-doc/html/gsf/gsf-Reading-and-Writing-from-local-files-and-directories.html +593 -0
  86. data/vendor/local/share/gtk-doc/html/gsf/gsf-Text.html +523 -0
  87. data/vendor/local/share/gtk-doc/html/gsf/gsf-XML-and-libxml.html +2032 -0
  88. data/vendor/local/share/gtk-doc/html/gsf/gsf-Zip.html +338 -0
  89. data/vendor/local/share/gtk-doc/html/gsf/gsf-blobs.html +56 -0
  90. data/vendor/local/share/gtk-doc/html/gsf/gsf-clip-data.html +444 -0
  91. data/vendor/local/share/gtk-doc/html/gsf/gsf-index.html +875 -0
  92. data/vendor/local/share/gtk-doc/html/gsf/gsf-memory.html +332 -0
  93. data/vendor/local/share/gtk-doc/html/gsf/gsf-metadata.html +1762 -0
  94. data/vendor/local/share/gtk-doc/html/gsf/gsf-users.html +73 -0
  95. data/vendor/local/share/gtk-doc/html/gsf/gsf-utils.html +2503 -0
  96. data/vendor/local/share/gtk-doc/html/gsf/gsf.devhelp2 +440 -0
  97. data/vendor/local/share/gtk-doc/html/gsf/history.html +45 -0
  98. data/vendor/local/share/gtk-doc/html/gsf/home.png +0 -0
  99. data/vendor/local/share/gtk-doc/html/gsf/index.html +98 -0
  100. data/vendor/local/share/gtk-doc/html/gsf/index.sgml +572 -0
  101. data/vendor/local/share/gtk-doc/html/gsf/intro.html +39 -0
  102. data/vendor/local/share/gtk-doc/html/gsf/io.html +38 -0
  103. data/vendor/local/share/gtk-doc/html/gsf/left-insensitive.png +0 -0
  104. data/vendor/local/share/gtk-doc/html/gsf/left.png +0 -0
  105. data/vendor/local/share/gtk-doc/html/gsf/misc.html +33 -0
  106. data/vendor/local/share/gtk-doc/html/gsf/parsers.html +59 -0
  107. data/vendor/local/share/gtk-doc/html/gsf/right-insensitive.png +0 -0
  108. data/vendor/local/share/gtk-doc/html/gsf/right.png +0 -0
  109. data/vendor/local/share/gtk-doc/html/gsf/sources.html +50 -0
  110. data/vendor/local/share/gtk-doc/html/gsf/style.css +461 -0
  111. data/vendor/local/share/gtk-doc/html/gsf/up-insensitive.png +0 -0
  112. data/vendor/local/share/gtk-doc/html/gsf/up.png +0 -0
  113. data/vendor/local/share/license/libgsf/AUTHORS +3 -0
  114. data/vendor/local/share/license/libgsf/COPYING +340 -0
  115. data/vendor/local/share/license/libgsf/COPYING.LIB +504 -0
  116. data/vendor/local/share/locale/as/LC_MESSAGES/libgsf.mo +0 -0
  117. data/vendor/local/share/locale/bs/LC_MESSAGES/libgsf.mo +0 -0
  118. data/vendor/local/share/locale/ca/LC_MESSAGES/libgsf.mo +0 -0
  119. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/libgsf.mo +0 -0
  120. data/vendor/local/share/locale/cs/LC_MESSAGES/libgsf.mo +0 -0
  121. data/vendor/local/share/locale/da/LC_MESSAGES/libgsf.mo +0 -0
  122. data/vendor/local/share/locale/de/LC_MESSAGES/libgsf.mo +0 -0
  123. data/vendor/local/share/locale/el/LC_MESSAGES/libgsf.mo +0 -0
  124. data/vendor/local/share/locale/en_GB/LC_MESSAGES/libgsf.mo +0 -0
  125. data/vendor/local/share/locale/eo/LC_MESSAGES/libgsf.mo +0 -0
  126. data/vendor/local/share/locale/es/LC_MESSAGES/libgsf.mo +0 -0
  127. data/vendor/local/share/locale/eu/LC_MESSAGES/libgsf.mo +0 -0
  128. data/vendor/local/share/locale/fi/LC_MESSAGES/libgsf.mo +0 -0
  129. data/vendor/local/share/locale/fr/LC_MESSAGES/libgsf.mo +0 -0
  130. data/vendor/local/share/locale/gl/LC_MESSAGES/libgsf.mo +0 -0
  131. data/vendor/local/share/locale/he/LC_MESSAGES/libgsf.mo +0 -0
  132. data/vendor/local/share/locale/hu/LC_MESSAGES/libgsf.mo +0 -0
  133. data/vendor/local/share/locale/id/LC_MESSAGES/libgsf.mo +0 -0
  134. data/vendor/local/share/locale/it/LC_MESSAGES/libgsf.mo +0 -0
  135. data/vendor/local/share/locale/ja/LC_MESSAGES/libgsf.mo +0 -0
  136. data/vendor/local/share/locale/ko/LC_MESSAGES/libgsf.mo +0 -0
  137. data/vendor/local/share/locale/lt/LC_MESSAGES/libgsf.mo +0 -0
  138. data/vendor/local/share/locale/lv/LC_MESSAGES/libgsf.mo +0 -0
  139. data/vendor/local/share/locale/ml/LC_MESSAGES/libgsf.mo +0 -0
  140. data/vendor/local/share/locale/nb/LC_MESSAGES/libgsf.mo +0 -0
  141. data/vendor/local/share/locale/nn/LC_MESSAGES/libgsf.mo +0 -0
  142. data/vendor/local/share/locale/oc/LC_MESSAGES/libgsf.mo +0 -0
  143. data/vendor/local/share/locale/pa/LC_MESSAGES/libgsf.mo +0 -0
  144. data/vendor/local/share/locale/pl/LC_MESSAGES/libgsf.mo +0 -0
  145. data/vendor/local/share/locale/pt/LC_MESSAGES/libgsf.mo +0 -0
  146. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/libgsf.mo +0 -0
  147. data/vendor/local/share/locale/ro/LC_MESSAGES/libgsf.mo +0 -0
  148. data/vendor/local/share/locale/ru/LC_MESSAGES/libgsf.mo +0 -0
  149. data/vendor/local/share/locale/sk/LC_MESSAGES/libgsf.mo +0 -0
  150. data/vendor/local/share/locale/sl/LC_MESSAGES/libgsf.mo +0 -0
  151. data/vendor/local/share/locale/sr/LC_MESSAGES/libgsf.mo +0 -0
  152. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/libgsf.mo +0 -0
  153. data/vendor/local/share/locale/sv/LC_MESSAGES/libgsf.mo +0 -0
  154. data/vendor/local/share/locale/ta/LC_MESSAGES/libgsf.mo +0 -0
  155. data/vendor/local/share/locale/tg/LC_MESSAGES/libgsf.mo +0 -0
  156. data/vendor/local/share/locale/th/LC_MESSAGES/libgsf.mo +0 -0
  157. data/vendor/local/share/locale/tr/LC_MESSAGES/libgsf.mo +0 -0
  158. data/vendor/local/share/locale/uk/LC_MESSAGES/libgsf.mo +0 -0
  159. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/libgsf.mo +0 -0
  160. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/libgsf.mo +0 -0
  161. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/libgsf.mo +0 -0
  162. data/vendor/local/share/man/man1/gsf-office-thumbnailer.1 +71 -0
  163. data/vendor/local/share/man/man1/gsf-vba-dump.1 +61 -0
  164. data/vendor/local/share/man/man1/gsf.1 +91 -0
  165. data/vendor/local/share/thumbnailers/gsf-office.thumbnailer +4 -0
  166. metadata +235 -0
@@ -0,0 +1,887 @@
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>GSF Reference Manual: Input from unstructured files</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
+ <link rel="home" href="index.html" title="GSF Reference Manual">
8
+ <link rel="up" href="io.html" title="Basic Input/Output">
9
+ <link rel="prev" href="io.html" title="Basic Input/Output">
10
+ <link rel="next" href="gsf-Output-to-unstructured-files.html" title="Output to unstructured files">
11
+ <meta name="generator" content="GTK-Doc V1.20 (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="10"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts">
17
+ <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 
18
+ <a href="#gsf-Input-from-unstructured-files.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 
19
+ <a href="#gsf-Input-from-unstructured-files.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span> 
20
+ <a href="#gsf-Input-from-unstructured-files.properties" class="shortcut">Properties</a></span>
21
+ </td>
22
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
23
+ <td><a accesskey="u" href="io.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
24
+ <td><a accesskey="p" href="io.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
25
+ <td><a accesskey="n" href="gsf-Output-to-unstructured-files.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26
+ </tr></table>
27
+ <div class="refentry">
28
+ <a name="gsf-Input-from-unstructured-files"></a><div class="titlepage"></div>
29
+ <div class="refnamediv"><table width="100%"><tr>
30
+ <td valign="top">
31
+ <h2><span class="refentrytitle"><a name="gsf-Input-from-unstructured-files.top_of_page"></a>Input from unstructured files</span></h2>
32
+ <p>Input from unstructured files</p>
33
+ </td>
34
+ <td class="gallery_image" valign="top" align="right"></td>
35
+ </tr></table></div>
36
+ <div class="refsect1">
37
+ <a name="gsf-Input-from-unstructured-files.functions"></a><h2>Functions</h2>
38
+ <div class="informaltable"><table width="100%" border="0">
39
+ <colgroup>
40
+ <col width="150px" class="functions_return">
41
+ <col class="functions_name">
42
+ </colgroup>
43
+ <tbody>
44
+ <tr>
45
+ <td class="function_type">
46
+ <span class="returnvalue">guint8</span> const *
47
+ </td>
48
+ <td class="function_name">
49
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-read" title="gsf_input_read ()">gsf_input_read</a> <span class="c_punctuation">()</span>
50
+ </td>
51
+ </tr>
52
+ <tr>
53
+ <td class="function_type">
54
+ <a class="link" href="gsf-utils.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a>
55
+ </td>
56
+ <td class="function_name">
57
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-tell" title="gsf_input_tell ()">gsf_input_tell</a> <span class="c_punctuation">()</span>
58
+ </td>
59
+ </tr>
60
+ <tr>
61
+ <td class="function_type">
62
+ <span class="returnvalue">gboolean</span>
63
+ </td>
64
+ <td class="function_name">
65
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-seek" title="gsf_input_seek ()">gsf_input_seek</a> <span class="c_punctuation">()</span>
66
+ </td>
67
+ </tr>
68
+ <tr>
69
+ <td class="function_type">
70
+ <a class="link" href="gsf-Infile-reading-structed-files.html#GsfInfile"><span class="returnvalue">GsfInfile</span></a> *
71
+ </td>
72
+ <td class="function_name">
73
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-container" title="gsf_input_container ()">gsf_input_container</a> <span class="c_punctuation">()</span>
74
+ </td>
75
+ </tr>
76
+ <tr>
77
+ <td class="function_type">
78
+ <a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="returnvalue">GsfInput</span></a> *
79
+ </td>
80
+ <td class="function_name">
81
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-dup" title="gsf_input_dup ()">gsf_input_dup</a> <span class="c_punctuation">()</span>
82
+ </td>
83
+ </tr>
84
+ <tr>
85
+ <td class="function_type">
86
+ <a class="link" href="gsf-utils.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a>
87
+ </td>
88
+ <td class="function_name">
89
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-size" title="gsf_input_size ()">gsf_input_size</a> <span class="c_punctuation">()</span>
90
+ </td>
91
+ </tr>
92
+ <tr>
93
+ <td class="function_type">
94
+ <span class="returnvalue">gboolean</span>
95
+ </td>
96
+ <td class="function_name">
97
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-eof" title="gsf_input_eof ()">gsf_input_eof</a> <span class="c_punctuation">()</span>
98
+ </td>
99
+ </tr>
100
+ <tr>
101
+ <td class="function_type">
102
+ <a class="link" href="gsf-utils.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a>
103
+ </td>
104
+ <td class="function_name">
105
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-remaining" title="gsf_input_remaining ()">gsf_input_remaining</a> <span class="c_punctuation">()</span>
106
+ </td>
107
+ </tr>
108
+ <tr>
109
+ <td class="function_type">
110
+ <span class="returnvalue">GQuark</span>
111
+ </td>
112
+ <td class="function_name">
113
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-error-id" title="gsf_input_error_id ()">gsf_input_error_id</a> <span class="c_punctuation">()</span>
114
+ </td>
115
+ </tr>
116
+ <tr>
117
+ <td class="function_type">
118
+ <a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="returnvalue">GsfInput</span></a> *
119
+ </td>
120
+ <td class="function_name">
121
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-sibling" title="gsf_input_sibling ()">gsf_input_sibling</a> <span class="c_punctuation">()</span>
122
+ </td>
123
+ </tr>
124
+ <tr>
125
+ <td class="function_type">
126
+ <span class="returnvalue">GQuark</span>
127
+ </td>
128
+ <td class="function_name">
129
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-error" title="gsf_input_error ()">gsf_input_error</a> <span class="c_punctuation">()</span>
130
+ </td>
131
+ </tr>
132
+ <tr>
133
+ <td class="function_type">
134
+ <span class="returnvalue">char</span> const *
135
+ </td>
136
+ <td class="function_name">
137
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-name" title="gsf_input_name ()">gsf_input_name</a> <span class="c_punctuation">()</span>
138
+ </td>
139
+ </tr>
140
+ <tr>
141
+ <td class="function_type">
142
+ <span class="returnvalue">gboolean</span>
143
+ </td>
144
+ <td class="function_name">
145
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-set-name-from-filename" title="gsf_input_set_name_from_filename ()">gsf_input_set_name_from_filename</a> <span class="c_punctuation">()</span>
146
+ </td>
147
+ </tr>
148
+ <tr>
149
+ <td class="function_type">
150
+ <a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="returnvalue">GsfInput</span></a> *
151
+ </td>
152
+ <td class="function_name">
153
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-proxy-new" title="gsf_input_proxy_new ()">gsf_input_proxy_new</a> <span class="c_punctuation">()</span>
154
+ </td>
155
+ </tr>
156
+ <tr>
157
+ <td class="function_type">
158
+ <a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="returnvalue">GsfInput</span></a> *
159
+ </td>
160
+ <td class="function_name">
161
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-proxy-new-section" title="gsf_input_proxy_new_section ()">gsf_input_proxy_new_section</a> <span class="c_punctuation">()</span>
162
+ </td>
163
+ </tr>
164
+ <tr>
165
+ <td class="function_type">
166
+ <span class="returnvalue">gboolean</span>
167
+ </td>
168
+ <td class="function_name">
169
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-copy" title="gsf_input_copy ()">gsf_input_copy</a> <span class="c_punctuation">()</span>
170
+ </td>
171
+ </tr>
172
+ <tr>
173
+ <td class="function_type">
174
+ <a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="returnvalue">GsfInput</span></a> *
175
+ </td>
176
+ <td class="function_name">
177
+ <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-uncompress" title="gsf_input_uncompress ()">gsf_input_uncompress</a> <span class="c_punctuation">()</span>
178
+ </td>
179
+ </tr>
180
+ </tbody>
181
+ </table></div>
182
+ </div>
183
+ <div class="refsect1">
184
+ <a name="gsf-Input-from-unstructured-files.properties"></a><h2>Properties</h2>
185
+ <div class="informaltable"><table border="0">
186
+ <colgroup>
187
+ <col width="150px" class="properties_type">
188
+ <col width="300px" class="properties_name">
189
+ <col width="200px" class="properties_flags">
190
+ </colgroup>
191
+ <tbody>
192
+ <tr>
193
+ <td class="property_type">
194
+ <a class="link" href="gsf-Infile-reading-structed-files.html#GsfInfile"><span class="type">GsfInfile</span></a> *</td>
195
+ <td class="property_name"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput--container" title="The “container” property">container</a></td>
196
+ <td class="property_flags">Read</td>
197
+ </tr>
198
+ <tr>
199
+ <td class="property_type"><span class="type">gboolean</span></td>
200
+ <td class="property_name"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput--eof" title="The “eof” property">eof</a></td>
201
+ <td class="property_flags">Read</td>
202
+ </tr>
203
+ <tr>
204
+ <td class="property_type">
205
+ <span class="type">GDateTime</span> *</td>
206
+ <td class="property_name"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput--modtime" title="The “modtime” property">modtime</a></td>
207
+ <td class="property_flags">Read</td>
208
+ </tr>
209
+ <tr>
210
+ <td class="property_type">
211
+ <span class="type">gchar</span> *</td>
212
+ <td class="property_name"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput--name" title="The “name” property">name</a></td>
213
+ <td class="property_flags">Read</td>
214
+ </tr>
215
+ <tr>
216
+ <td class="property_type"><span class="type">gint64</span></td>
217
+ <td class="property_name"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput--position" title="The “position” property">position</a></td>
218
+ <td class="property_flags">Read</td>
219
+ </tr>
220
+ <tr>
221
+ <td class="property_type"><span class="type">gint64</span></td>
222
+ <td class="property_name"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput--remaining" title="The “remaining” property">remaining</a></td>
223
+ <td class="property_flags">Read</td>
224
+ </tr>
225
+ <tr>
226
+ <td class="property_type"><span class="type">gint64</span></td>
227
+ <td class="property_name"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput--size" title="The “size” property">size</a></td>
228
+ <td class="property_flags">Read</td>
229
+ </tr>
230
+ </tbody>
231
+ </table></div>
232
+ </div>
233
+ <a name="GsfInput"></a><a name="GsfInputProxy"></a><div class="refsect1">
234
+ <a name="gsf-Input-from-unstructured-files.other"></a><h2>Types and Values</h2>
235
+ <div class="informaltable"><table width="100%" border="0">
236
+ <colgroup>
237
+ <col width="150px" class="name">
238
+ <col class="description">
239
+ </colgroup>
240
+ <tbody>
241
+ <tr>
242
+ <td class="datatype_keyword"> </td>
243
+ <td class="function_name"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput-struct" title="GsfInput">GsfInput</a></td>
244
+ </tr>
245
+ <tr>
246
+ <td class="datatype_keyword"> </td>
247
+ <td class="function_name"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInputProxy-struct" title="GsfInputProxy">GsfInputProxy</a></td>
248
+ </tr>
249
+ </tbody>
250
+ </table></div>
251
+ </div>
252
+ <div class="refsect1">
253
+ <a name="gsf-Input-from-unstructured-files.object-hierarchy"></a><h2>Object Hierarchy</h2>
254
+ <pre class="screen"> GObject
255
+ <span class="lineart">├──</span> <a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput">GsfInput</a>
256
+ <span class="lineart">│</span> <span class="lineart">╰──</span> GsfInputProxy
257
+ <span class="lineart">╰──</span> GsfInput
258
+ <span class="lineart">├──</span> <a class="link" href="gsf-Infile-reading-structed-files.html#GsfInfile">GsfInfile</a>
259
+ <span class="lineart">├──</span> <a class="link" href="gsf-Compression.html#GsfInputGZip">GsfInputGZip</a>
260
+ <span class="lineart">├──</span> <a class="link" href="gsf-memory.html#GsfInputMemory">GsfInputMemory</a>
261
+ <span class="lineart">├──</span> <a class="link" href="gsf-Input-from-unstructured-files.html#GsfInputProxy">GsfInputProxy</a>
262
+ <span class="lineart">├──</span> <a class="link" href="gsf-Reading-and-Writing-from-local-files-and-directories.html#GsfInputStdio">GsfInputStdio</a>
263
+ <span class="lineart">╰──</span> <a class="link" href="gsf-Text.html#GsfInputTextline">GsfInputTextline</a>
264
+ </pre>
265
+ </div>
266
+ <div class="refsect1">
267
+ <a name="gsf-Input-from-unstructured-files.description"></a><h2>Description</h2>
268
+ <p>
269
+ </p>
270
+ </div>
271
+ <div class="refsect1">
272
+ <a name="gsf-Input-from-unstructured-files.functions_details"></a><h2>Functions</h2>
273
+ <div class="refsect2">
274
+ <a name="gsf-input-read"></a><h3>gsf_input_read ()</h3>
275
+ <pre class="programlisting"><span class="returnvalue">guint8</span> const *
276
+ gsf_input_read (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *input</code></em>,
277
+ <em class="parameter"><code><span class="type">size_t</span> num_bytes</code></em>,
278
+ <em class="parameter"><code><span class="type">guint8</span> *optional_buffer</code></em>);</pre>
279
+ <p>Read at least <em class="parameter"><code>num_bytes</code></em>
280
+ . Does not change the current position if there
281
+ is an error. Will only read if the entire amount can be read. Invalidates
282
+ the buffer associated with previous calls to gsf_input_read.</p>
283
+ <div class="refsect3">
284
+ <a name="id-1.6.3.2.10.2.5"></a><h4>Parameters</h4>
285
+ <div class="informaltable"><table width="100%" border="0">
286
+ <colgroup>
287
+ <col width="150px" class="parameters_name">
288
+ <col class="parameters_description">
289
+ <col width="200px" class="parameters_annotations">
290
+ </colgroup>
291
+ <tbody>
292
+ <tr>
293
+ <td class="parameter_name"><p>input</p></td>
294
+ <td class="parameter_description"><p>the input stream</p></td>
295
+ <td class="parameter_annotations"> </td>
296
+ </tr>
297
+ <tr>
298
+ <td class="parameter_name"><p>num_bytes</p></td>
299
+ <td class="parameter_description"><p>number of bytes to read</p></td>
300
+ <td class="parameter_annotations"> </td>
301
+ </tr>
302
+ <tr>
303
+ <td class="parameter_name"><p>optional_buffer</p></td>
304
+ <td class="parameter_description"><p>Pointer to destination memory area</p></td>
305
+ <td class="parameter_annotations"> </td>
306
+ </tr>
307
+ </tbody>
308
+ </table></div>
309
+ </div>
310
+ <div class="refsect3">
311
+ <a name="id-1.6.3.2.10.2.6"></a><h4>Returns</h4>
312
+ <p> pointer to the buffer or <code class="literal">NULL</code> if there is an error or 0
313
+ bytes are requested.</p>
314
+ <p></p>
315
+ </div>
316
+ </div>
317
+ <hr>
318
+ <div class="refsect2">
319
+ <a name="gsf-input-tell"></a><h3>gsf_input_tell ()</h3>
320
+ <pre class="programlisting"><a class="link" href="gsf-utils.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a>
321
+ gsf_input_tell (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *input</code></em>);</pre>
322
+ <div class="refsect3">
323
+ <a name="id-1.6.3.2.10.3.4"></a><h4>Parameters</h4>
324
+ <div class="informaltable"><table width="100%" border="0">
325
+ <colgroup>
326
+ <col width="150px" class="parameters_name">
327
+ <col class="parameters_description">
328
+ <col width="200px" class="parameters_annotations">
329
+ </colgroup>
330
+ <tbody><tr>
331
+ <td class="parameter_name"><p>input</p></td>
332
+ <td class="parameter_description"><p>the input stream</p></td>
333
+ <td class="parameter_annotations"> </td>
334
+ </tr></tbody>
335
+ </table></div>
336
+ </div>
337
+ <div class="refsect3">
338
+ <a name="id-1.6.3.2.10.3.5"></a><h4>Returns</h4>
339
+ <p> the current offset in the file.</p>
340
+ <p></p>
341
+ </div>
342
+ </div>
343
+ <hr>
344
+ <div class="refsect2">
345
+ <a name="gsf-input-seek"></a><h3>gsf_input_seek ()</h3>
346
+ <pre class="programlisting"><span class="returnvalue">gboolean</span>
347
+ gsf_input_seek (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *input</code></em>,
348
+ <em class="parameter"><code><a class="link" href="gsf-utils.html#gsf-off-t" title="gsf_off_t"><span class="type">gsf_off_t</span></a> offset</code></em>,
349
+ <em class="parameter"><code><span class="type">GSeekType</span> whence</code></em>);</pre>
350
+ <p>Move the current location in the input stream.</p>
351
+ <div class="refsect3">
352
+ <a name="id-1.6.3.2.10.4.5"></a><h4>Parameters</h4>
353
+ <div class="informaltable"><table width="100%" border="0">
354
+ <colgroup>
355
+ <col width="150px" class="parameters_name">
356
+ <col class="parameters_description">
357
+ <col width="200px" class="parameters_annotations">
358
+ </colgroup>
359
+ <tbody>
360
+ <tr>
361
+ <td class="parameter_name"><p>input</p></td>
362
+ <td class="parameter_description"><p>the input stream</p></td>
363
+ <td class="parameter_annotations"> </td>
364
+ </tr>
365
+ <tr>
366
+ <td class="parameter_name"><p>offset</p></td>
367
+ <td class="parameter_description"><p>target offset</p></td>
368
+ <td class="parameter_annotations"> </td>
369
+ </tr>
370
+ <tr>
371
+ <td class="parameter_name"><p>whence</p></td>
372
+ <td class="parameter_description"><p>determines whether the offset is relative to the beginning or
373
+ the end of the stream, or to the current location.</p></td>
374
+ <td class="parameter_annotations"> </td>
375
+ </tr>
376
+ </tbody>
377
+ </table></div>
378
+ </div>
379
+ <div class="refsect3">
380
+ <a name="id-1.6.3.2.10.4.6"></a><h4>Returns</h4>
381
+ <p> <code class="literal">TRUE</code> on error.</p>
382
+ <p></p>
383
+ </div>
384
+ </div>
385
+ <hr>
386
+ <div class="refsect2">
387
+ <a name="gsf-input-container"></a><h3>gsf_input_container ()</h3>
388
+ <pre class="programlisting"><a class="link" href="gsf-Infile-reading-structed-files.html#GsfInfile"><span class="returnvalue">GsfInfile</span></a> *
389
+ gsf_input_container (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *input</code></em>);</pre>
390
+ <div class="refsect3">
391
+ <a name="id-1.6.3.2.10.5.4"></a><h4>Parameters</h4>
392
+ <div class="informaltable"><table width="100%" border="0">
393
+ <colgroup>
394
+ <col width="150px" class="parameters_name">
395
+ <col class="parameters_description">
396
+ <col width="200px" class="parameters_annotations">
397
+ </colgroup>
398
+ <tbody><tr>
399
+ <td class="parameter_name"><p>input</p></td>
400
+ <td class="parameter_description"><p>the input stream</p></td>
401
+ <td class="parameter_annotations"> </td>
402
+ </tr></tbody>
403
+ </table></div>
404
+ </div>
405
+ <div class="refsect3">
406
+ <a name="id-1.6.3.2.10.5.5"></a><h4>Returns</h4>
407
+ <p> <em class="parameter"><code>input</code></em>
408
+ 's container, potentially <code class="literal">NULL</code>. </p>
409
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
410
+ </div>
411
+ </div>
412
+ <hr>
413
+ <div class="refsect2">
414
+ <a name="gsf-input-dup"></a><h3>gsf_input_dup ()</h3>
415
+ <pre class="programlisting"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="returnvalue">GsfInput</span></a> *
416
+ gsf_input_dup (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *input</code></em>,
417
+ <em class="parameter"><code><span class="type">GError</span> **err</code></em>);</pre>
418
+ <p>Duplicates input <em class="parameter"><code>src</code></em>
419
+ leaving the new one at the same offset.</p>
420
+ <div class="refsect3">
421
+ <a name="id-1.6.3.2.10.6.5"></a><h4>Parameters</h4>
422
+ <div class="informaltable"><table width="100%" border="0">
423
+ <colgroup>
424
+ <col width="150px" class="parameters_name">
425
+ <col class="parameters_description">
426
+ <col width="200px" class="parameters_annotations">
427
+ </colgroup>
428
+ <tbody>
429
+ <tr>
430
+ <td class="parameter_name"><p>input</p></td>
431
+ <td class="parameter_description"><p>The input to duplicate</p></td>
432
+ <td class="parameter_annotations"> </td>
433
+ </tr>
434
+ <tr>
435
+ <td class="parameter_name"><p>err</p></td>
436
+ <td class="parameter_description"><p> place to store a <span class="type">GError</span> if anything goes wrong. </p></td>
437
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
438
+ </tr>
439
+ </tbody>
440
+ </table></div>
441
+ </div>
442
+ <div class="refsect3">
443
+ <a name="id-1.6.3.2.10.6.6"></a><h4>Returns</h4>
444
+ <p> the duplicate, or <code class="literal">NULL</code> on error. </p>
445
+ <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
446
+ </div>
447
+ </div>
448
+ <hr>
449
+ <div class="refsect2">
450
+ <a name="gsf-input-size"></a><h3>gsf_input_size ()</h3>
451
+ <pre class="programlisting"><a class="link" href="gsf-utils.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a>
452
+ gsf_input_size (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *input</code></em>);</pre>
453
+ <div class="refsect3">
454
+ <a name="id-1.6.3.2.10.7.4"></a><h4>Parameters</h4>
455
+ <div class="informaltable"><table width="100%" border="0">
456
+ <colgroup>
457
+ <col width="150px" class="parameters_name">
458
+ <col class="parameters_description">
459
+ <col width="200px" class="parameters_annotations">
460
+ </colgroup>
461
+ <tbody><tr>
462
+ <td class="parameter_name"><p>input</p></td>
463
+ <td class="parameter_description"><p>The input</p></td>
464
+ <td class="parameter_annotations"> </td>
465
+ </tr></tbody>
466
+ </table></div>
467
+ </div>
468
+ <div class="refsect3">
469
+ <a name="id-1.6.3.2.10.7.5"></a><h4>Returns</h4>
470
+ <p> the total number of bytes in the input or -1 on error</p>
471
+ <p></p>
472
+ </div>
473
+ </div>
474
+ <hr>
475
+ <div class="refsect2">
476
+ <a name="gsf-input-eof"></a><h3>gsf_input_eof ()</h3>
477
+ <pre class="programlisting"><span class="returnvalue">gboolean</span>
478
+ gsf_input_eof (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *input</code></em>);</pre>
479
+ <p>Are we at the end of the file?</p>
480
+ <div class="refsect3">
481
+ <a name="id-1.6.3.2.10.8.5"></a><h4>Parameters</h4>
482
+ <div class="informaltable"><table width="100%" border="0">
483
+ <colgroup>
484
+ <col width="150px" class="parameters_name">
485
+ <col class="parameters_description">
486
+ <col width="200px" class="parameters_annotations">
487
+ </colgroup>
488
+ <tbody><tr>
489
+ <td class="parameter_name"><p>input</p></td>
490
+ <td class="parameter_description"><p>the input</p></td>
491
+ <td class="parameter_annotations"> </td>
492
+ </tr></tbody>
493
+ </table></div>
494
+ </div>
495
+ <div class="refsect3">
496
+ <a name="id-1.6.3.2.10.8.6"></a><h4>Returns</h4>
497
+ <p> <code class="literal">TRUE</code> if the input is at the eof.</p>
498
+ <p></p>
499
+ </div>
500
+ </div>
501
+ <hr>
502
+ <div class="refsect2">
503
+ <a name="gsf-input-remaining"></a><h3>gsf_input_remaining ()</h3>
504
+ <pre class="programlisting"><a class="link" href="gsf-utils.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a>
505
+ gsf_input_remaining (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *input</code></em>);</pre>
506
+ <div class="refsect3">
507
+ <a name="id-1.6.3.2.10.9.4"></a><h4>Parameters</h4>
508
+ <div class="informaltable"><table width="100%" border="0">
509
+ <colgroup>
510
+ <col width="150px" class="parameters_name">
511
+ <col class="parameters_description">
512
+ <col width="200px" class="parameters_annotations">
513
+ </colgroup>
514
+ <tbody><tr>
515
+ <td class="parameter_name"><p>input</p></td>
516
+ <td class="parameter_description"><p>the input stream</p></td>
517
+ <td class="parameter_annotations"> </td>
518
+ </tr></tbody>
519
+ </table></div>
520
+ </div>
521
+ <div class="refsect3">
522
+ <a name="id-1.6.3.2.10.9.5"></a><h4>Returns</h4>
523
+ <p> the number of bytes left in the file.</p>
524
+ <p></p>
525
+ </div>
526
+ </div>
527
+ <hr>
528
+ <div class="refsect2">
529
+ <a name="gsf-input-error-id"></a><h3>gsf_input_error_id ()</h3>
530
+ <pre class="programlisting"><span class="returnvalue">GQuark</span>
531
+ gsf_input_error_id (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
532
+ <div class="refsect3">
533
+ <a name="id-1.6.3.2.10.10.4"></a><h4>Returns</h4>
534
+ <p> A utility quark to flag a <span class="type">GError</span> as being an input problem.</p>
535
+ <p></p>
536
+ </div>
537
+ </div>
538
+ <hr>
539
+ <div class="refsect2">
540
+ <a name="gsf-input-sibling"></a><h3>gsf_input_sibling ()</h3>
541
+ <pre class="programlisting"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="returnvalue">GsfInput</span></a> *
542
+ gsf_input_sibling (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> const *input</code></em>,
543
+ <em class="parameter"><code><span class="type">char</span> const *name</code></em>,
544
+ <em class="parameter"><code><span class="type">GError</span> **err</code></em>);</pre>
545
+ <p>UNIMPLEMENTED BY ANY BACKEND
546
+ and it is probably unnecessary. gsf_input_get_container provides
547
+ enough power to do what is necessary.</p>
548
+ <p>Attempts to open a 'sibling' of <em class="parameter"><code>input</code></em>
549
+ . The caller is responsible for
550
+ managing the resulting object.</p>
551
+ <div class="refsect3">
552
+ <a name="id-1.6.3.2.10.11.6"></a><h4>Parameters</h4>
553
+ <div class="informaltable"><table width="100%" border="0">
554
+ <colgroup>
555
+ <col width="150px" class="parameters_name">
556
+ <col class="parameters_description">
557
+ <col width="200px" class="parameters_annotations">
558
+ </colgroup>
559
+ <tbody>
560
+ <tr>
561
+ <td class="parameter_name"><p>input</p></td>
562
+ <td class="parameter_description"><p>The input</p></td>
563
+ <td class="parameter_annotations"> </td>
564
+ </tr>
565
+ <tr>
566
+ <td class="parameter_name"><p>name</p></td>
567
+ <td class="parameter_description"><p>name.</p></td>
568
+ <td class="parameter_annotations"> </td>
569
+ </tr>
570
+ <tr>
571
+ <td class="parameter_name"><p>err</p></td>
572
+ <td class="parameter_description"><p> place to store a <span class="type">GError</span> if anything goes wrong. </p></td>
573
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
574
+ </tr>
575
+ </tbody>
576
+ </table></div>
577
+ </div>
578
+ <div class="refsect3">
579
+ <a name="id-1.6.3.2.10.11.7"></a><h4>Returns</h4>
580
+ <p> A related <a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> or <code class="literal">NULL</code> on failure. </p>
581
+ <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
582
+ </div>
583
+ </div>
584
+ <hr>
585
+ <div class="refsect2">
586
+ <a name="gsf-input-error"></a><h3>gsf_input_error ()</h3>
587
+ <pre class="programlisting"><span class="returnvalue">GQuark</span>
588
+ gsf_input_error (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
589
+ <div class="warning"><p><code class="literal">gsf_input_error</code> is deprecated and should not be used in newly-written code.</p></div>
590
+ <p>Deprecated as of GSF 1.12.0; use <a class="link" href="gsf-Input-from-unstructured-files.html#gsf-input-error-id" title="gsf_input_error_id ()"><code class="function">gsf_input_error_id()</code></a> instead.</p>
591
+ <div class="refsect3">
592
+ <a name="id-1.6.3.2.10.12.6"></a><h4>Returns</h4>
593
+ <p> A utility quark to flag a <span class="type">GError</span> as being an input problem.</p>
594
+ <p></p>
595
+ </div>
596
+ </div>
597
+ <hr>
598
+ <div class="refsect2">
599
+ <a name="gsf-input-name"></a><h3>gsf_input_name ()</h3>
600
+ <pre class="programlisting"><span class="returnvalue">char</span> const *
601
+ gsf_input_name (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *input</code></em>);</pre>
602
+ <p>The name of the input stream.</p>
603
+ <div class="refsect3">
604
+ <a name="id-1.6.3.2.10.13.5"></a><h4>Parameters</h4>
605
+ <div class="informaltable"><table width="100%" border="0">
606
+ <colgroup>
607
+ <col width="150px" class="parameters_name">
608
+ <col class="parameters_description">
609
+ <col width="200px" class="parameters_annotations">
610
+ </colgroup>
611
+ <tbody><tr>
612
+ <td class="parameter_name"><p>input</p></td>
613
+ <td class="parameter_description"><p>the input stream</p></td>
614
+ <td class="parameter_annotations"> </td>
615
+ </tr></tbody>
616
+ </table></div>
617
+ </div>
618
+ <div class="refsect3">
619
+ <a name="id-1.6.3.2.10.13.6"></a><h4>Returns</h4>
620
+ <p> <em class="parameter"><code>input</code></em>
621
+ 's name in utf8 form, or <code class="literal">NULL</code> if it
622
+ has no name. </p>
623
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
624
+ </div>
625
+ </div>
626
+ <hr>
627
+ <div class="refsect2">
628
+ <a name="gsf-input-set-name-from-filename"></a><h3>gsf_input_set_name_from_filename ()</h3>
629
+ <pre class="programlisting"><span class="returnvalue">gboolean</span>
630
+ gsf_input_set_name_from_filename (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *input</code></em>,
631
+ <em class="parameter"><code><span class="type">char</span> const *filename</code></em>);</pre>
632
+ <p>protected.</p>
633
+ <div class="refsect3">
634
+ <a name="id-1.6.3.2.10.14.5"></a><h4>Parameters</h4>
635
+ <div class="informaltable"><table width="100%" border="0">
636
+ <colgroup>
637
+ <col width="150px" class="parameters_name">
638
+ <col class="parameters_description">
639
+ <col width="200px" class="parameters_annotations">
640
+ </colgroup>
641
+ <tbody>
642
+ <tr>
643
+ <td class="parameter_name"><p>input</p></td>
644
+ <td class="parameter_description"><p>the input stream</p></td>
645
+ <td class="parameter_annotations"> </td>
646
+ </tr>
647
+ <tr>
648
+ <td class="parameter_name"><p>filename</p></td>
649
+ <td class="parameter_description"><p>the (fs-sys encoded) filename</p></td>
650
+ <td class="parameter_annotations"> </td>
651
+ </tr>
652
+ </tbody>
653
+ </table></div>
654
+ </div>
655
+ <div class="refsect3">
656
+ <a name="id-1.6.3.2.10.14.6"></a><h4>Returns</h4>
657
+ <p> <code class="literal">TRUE</code> if the assignment was ok.</p>
658
+ <p></p>
659
+ </div>
660
+ </div>
661
+ <hr>
662
+ <div class="refsect2">
663
+ <a name="gsf-input-proxy-new"></a><h3>gsf_input_proxy_new ()</h3>
664
+ <pre class="programlisting"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="returnvalue">GsfInput</span></a> *
665
+ gsf_input_proxy_new (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *source</code></em>);</pre>
666
+ <p>This creates a new proxy to the entire, given input source. See
667
+ gsf_input_proxy_new_section for details.</p>
668
+ <div class="refsect3">
669
+ <a name="id-1.6.3.2.10.15.5"></a><h4>Parameters</h4>
670
+ <div class="informaltable"><table width="100%" border="0">
671
+ <colgroup>
672
+ <col width="150px" class="parameters_name">
673
+ <col class="parameters_description">
674
+ <col width="200px" class="parameters_annotations">
675
+ </colgroup>
676
+ <tbody><tr>
677
+ <td class="parameter_name"><p>source</p></td>
678
+ <td class="parameter_description"><p>The underlying data source.</p></td>
679
+ <td class="parameter_annotations"> </td>
680
+ </tr></tbody>
681
+ </table></div>
682
+ </div>
683
+ <div class="refsect3">
684
+ <a name="id-1.6.3.2.10.15.6"></a><h4>Returns</h4>
685
+ <p> a new input object.</p>
686
+ <p></p>
687
+ </div>
688
+ </div>
689
+ <hr>
690
+ <div class="refsect2">
691
+ <a name="gsf-input-proxy-new-section"></a><h3>gsf_input_proxy_new_section ()</h3>
692
+ <pre class="programlisting"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="returnvalue">GsfInput</span></a> *
693
+ gsf_input_proxy_new_section (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *source</code></em>,
694
+ <em class="parameter"><code><a class="link" href="gsf-utils.html#gsf-off-t" title="gsf_off_t"><span class="type">gsf_off_t</span></a> offset</code></em>,
695
+ <em class="parameter"><code><a class="link" href="gsf-utils.html#gsf-off-t" title="gsf_off_t"><span class="type">gsf_off_t</span></a> size</code></em>);</pre>
696
+ <p>This creates a new proxy to a section of the given source. The new
697
+ object will have its own current position, but any operation on it
698
+ can change the source's position.</p>
699
+ <p>If a proxy to a proxy is created, the intermediate proxy is short-
700
+ circuited.</p>
701
+ <p>This function will ref the source.</p>
702
+ <div class="refsect3">
703
+ <a name="id-1.6.3.2.10.16.7"></a><h4>Parameters</h4>
704
+ <div class="informaltable"><table width="100%" border="0">
705
+ <colgroup>
706
+ <col width="150px" class="parameters_name">
707
+ <col class="parameters_description">
708
+ <col width="200px" class="parameters_annotations">
709
+ </colgroup>
710
+ <tbody>
711
+ <tr>
712
+ <td class="parameter_name"><p>source</p></td>
713
+ <td class="parameter_description"><p>The underlying data source.</p></td>
714
+ <td class="parameter_annotations"> </td>
715
+ </tr>
716
+ <tr>
717
+ <td class="parameter_name"><p>offset</p></td>
718
+ <td class="parameter_description"><p>Offset into source for start of section.</p></td>
719
+ <td class="parameter_annotations"> </td>
720
+ </tr>
721
+ <tr>
722
+ <td class="parameter_name"><p>size</p></td>
723
+ <td class="parameter_description"><p>Length of section.</p></td>
724
+ <td class="parameter_annotations"> </td>
725
+ </tr>
726
+ </tbody>
727
+ </table></div>
728
+ </div>
729
+ <div class="refsect3">
730
+ <a name="id-1.6.3.2.10.16.8"></a><h4>Returns</h4>
731
+ <p> a new input object.</p>
732
+ <p></p>
733
+ </div>
734
+ </div>
735
+ <hr>
736
+ <div class="refsect2">
737
+ <a name="gsf-input-copy"></a><h3>gsf_input_copy ()</h3>
738
+ <pre class="programlisting"><span class="returnvalue">gboolean</span>
739
+ gsf_input_copy (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *input</code></em>,
740
+ <em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *output</code></em>);</pre>
741
+ <p>Copy the contents from <em class="parameter"><code>input</code></em>
742
+ to <em class="parameter"><code>output</code></em>
743
+ from their respective
744
+ current positions. So if you want to be sure to copy *everything*,
745
+ make sure to call gsf_input_seek (input, 0, G_SEEK_SET) and
746
+ gsf_output_seek (output, 0, G_SEEK_SET) first, if applicable.</p>
747
+ <div class="refsect3">
748
+ <a name="id-1.6.3.2.10.17.5"></a><h4>Parameters</h4>
749
+ <div class="informaltable"><table width="100%" border="0">
750
+ <colgroup>
751
+ <col width="150px" class="parameters_name">
752
+ <col class="parameters_description">
753
+ <col width="200px" class="parameters_annotations">
754
+ </colgroup>
755
+ <tbody>
756
+ <tr>
757
+ <td class="parameter_name"><p>input</p></td>
758
+ <td class="parameter_description"><p>a non-null <a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a></p></td>
759
+ <td class="parameter_annotations"> </td>
760
+ </tr>
761
+ <tr>
762
+ <td class="parameter_name"><p>output</p></td>
763
+ <td class="parameter_description"><p>a non-null <a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a></p></td>
764
+ <td class="parameter_annotations"> </td>
765
+ </tr>
766
+ </tbody>
767
+ </table></div>
768
+ </div>
769
+ <div class="refsect3">
770
+ <a name="id-1.6.3.2.10.17.6"></a><h4>Returns</h4>
771
+ <p> <code class="literal">TRUE</code> on success</p>
772
+ <p></p>
773
+ </div>
774
+ </div>
775
+ <hr>
776
+ <div class="refsect2">
777
+ <a name="gsf-input-uncompress"></a><h3>gsf_input_uncompress ()</h3>
778
+ <pre class="programlisting"><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="returnvalue">GsfInput</span></a> *
779
+ gsf_input_uncompress (<em class="parameter"><code><a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a> *src</code></em>);</pre>
780
+ <p>This functions takes ownership of the incoming reference and yields a
781
+ new one as its output.</p>
782
+ <div class="refsect3">
783
+ <a name="id-1.6.3.2.10.18.5"></a><h4>Parameters</h4>
784
+ <div class="informaltable"><table width="100%" border="0">
785
+ <colgroup>
786
+ <col width="150px" class="parameters_name">
787
+ <col class="parameters_description">
788
+ <col width="200px" class="parameters_annotations">
789
+ </colgroup>
790
+ <tbody><tr>
791
+ <td class="parameter_name"><p>src</p></td>
792
+ <td class="parameter_description"><p> stream to be uncompressed. </p></td>
793
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
794
+ </tr></tbody>
795
+ </table></div>
796
+ </div>
797
+ <div class="refsect3">
798
+ <a name="id-1.6.3.2.10.18.6"></a><h4>Returns</h4>
799
+ <p> A stream equivalent to the source stream,
800
+ but uncompressed if the source was compressed. </p>
801
+ <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
802
+ </div>
803
+ </div>
804
+ </div>
805
+ <div class="refsect1">
806
+ <a name="gsf-Input-from-unstructured-files.other_details"></a><h2>Types and Values</h2>
807
+ <div class="refsect2">
808
+ <a name="GsfInput-struct"></a><h3>GsfInput</h3>
809
+ <pre class="programlisting">typedef struct _GsfInput GsfInput;</pre>
810
+ <p>Class representing an input stream.</p>
811
+ </div>
812
+ <hr>
813
+ <div class="refsect2">
814
+ <a name="GsfInputProxy-struct"></a><h3>GsfInputProxy</h3>
815
+ <pre class="programlisting">typedef struct _GsfInputProxy GsfInputProxy;</pre>
816
+ <p>
817
+ </p>
818
+ </div>
819
+ </div>
820
+ <div class="refsect1">
821
+ <a name="gsf-Input-from-unstructured-files.property-details"></a><h2>Property Details</h2>
822
+ <div class="refsect2">
823
+ <a name="GsfInput--container"></a><h3>The <code class="literal">“container”</code> property</h3>
824
+ <pre class="programlisting"> “container” <a class="link" href="gsf-Infile-reading-structed-files.html#GsfInfile"><span class="type">GsfInfile</span></a> *</pre>
825
+ <p>The container, optionally <code class="literal">NULL</code>, in which this input lives.</p>
826
+ <p>Flags: Read</p>
827
+ </div>
828
+ <hr>
829
+ <div class="refsect2">
830
+ <a name="GsfInput--eof"></a><h3>The <code class="literal">“eof”</code> property</h3>
831
+ <pre class="programlisting"> “eof” <span class="type">gboolean</span></pre>
832
+ <p><code class="literal">TRUE</code> if the end of the file has been reached.</p>
833
+ <p>Flags: Read</p>
834
+ <p>Default value: FALSE</p>
835
+ </div>
836
+ <hr>
837
+ <div class="refsect2">
838
+ <a name="GsfInput--modtime"></a><h3>The <code class="literal">“modtime”</code> property</h3>
839
+ <pre class="programlisting"> “modtime” <span class="type">GDateTime</span> *</pre>
840
+ <p>The time the input was last updated. This represents the
841
+ timestamp from the originating file or <em class="parameter"><code>GsfInfile</code></em>
842
+ member.
843
+ It is not supported by all derived classes.</p>
844
+ <p>Flags: Read</p>
845
+ </div>
846
+ <hr>
847
+ <div class="refsect2">
848
+ <a name="GsfInput--name"></a><h3>The <code class="literal">“name”</code> property</h3>
849
+ <pre class="programlisting"> “name” <span class="type">gchar</span> *</pre>
850
+ <p>The input's name.</p>
851
+ <p>Flags: Read</p>
852
+ <p>Default value: NULL</p>
853
+ </div>
854
+ <hr>
855
+ <div class="refsect2">
856
+ <a name="GsfInput--position"></a><h3>The <code class="literal">“position”</code> property</h3>
857
+ <pre class="programlisting"> “position” <span class="type">gint64</span></pre>
858
+ <p>The current position in the input.</p>
859
+ <p>Flags: Read</p>
860
+ <p>Allowed values: &gt;= 0</p>
861
+ <p>Default value: 0</p>
862
+ </div>
863
+ <hr>
864
+ <div class="refsect2">
865
+ <a name="GsfInput--remaining"></a><h3>The <code class="literal">“remaining”</code> property</h3>
866
+ <pre class="programlisting"> “remaining” <span class="type">gint64</span></pre>
867
+ <p>The number of bytes remaining in the file.</p>
868
+ <p>Flags: Read</p>
869
+ <p>Allowed values: &gt;= 0</p>
870
+ <p>Default value: 0</p>
871
+ </div>
872
+ <hr>
873
+ <div class="refsect2">
874
+ <a name="GsfInput--size"></a><h3>The <code class="literal">“size”</code> property</h3>
875
+ <pre class="programlisting"> “size” <span class="type">gint64</span></pre>
876
+ <p>The total number of bytes in the file.</p>
877
+ <p>Flags: Read</p>
878
+ <p>Allowed values: &gt;= 0</p>
879
+ <p>Default value: 0</p>
880
+ </div>
881
+ </div>
882
+ </div>
883
+ <div class="footer">
884
+ <hr>
885
+ Generated by GTK-Doc V1.20</div>
886
+ </body>
887
+ </html>