This file is indexed.

/usr/share/gtk-doc/html/goffice-0.10/goffice-0.10-File-utilities.html is in libgoffice-0.10-doc 0.10.9-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>File utilities</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="GOffice Reference Manual">
<link rel="up" href="ch14.html" title="File utilities">
<link rel="prev" href="ch14.html" title="File utilities">
<link rel="next" href="goffice-0.10-Files.html" title="Files">
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="ch14.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch14.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GOffice Reference Manual</th>
<td><a accesskey="n" href="goffice-0.10-Files.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#goffice-0.10-File-utilities.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#goffice-0.10-File-utilities.description" class="shortcut">Description</a>
                   | 
                  <a href="#goffice-0.10-File-utilities.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="goffice-0.10-File-utilities"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="goffice-0.10-File-utilities.top_of_page"></a>File utilities</span></h2>
<p>File utilities</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="goffice-0.10-File-utilities.synopsis"></a><h2>Synopsis</h2>
<a name="GOFilePermissions"></a><pre class="synopsis">#define             <a class="link" href="goffice-0.10-File-utilities.html#GO-F-OK:CAPS" title="GO_F_OK">GO_F_OK</a>
enum                <a class="link" href="goffice-0.10-File-utilities.html#GODotDot" title="enum GODotDot">GODotDot</a>;
struct              <a class="link" href="goffice-0.10-File-utilities.html#GOFilePermissions-struct" title="struct GOFilePermissions">GOFilePermissions</a>;
#define             <a class="link" href="goffice-0.10-File-utilities.html#GO-R-OK:CAPS" title="GO_R_OK">GO_R_OK</a>
#define             <a class="link" href="goffice-0.10-File-utilities.html#GO-W-OK:CAPS" title="GO_W_OK">GO_W_OK</a>
#define             <a class="link" href="goffice-0.10-File-utilities.html#GO-X-OK:CAPS" title="GO_X_OK">GO_X_OK</a>
<span class="returnvalue">char</span> *              <a class="link" href="goffice-0.10-File-utilities.html#go-basename-from-uri" title="go_basename_from_uri ()">go_basename_from_uri</a>                (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);
<span class="returnvalue">char</span> *              <a class="link" href="goffice-0.10-File-utilities.html#go-dirname-from-uri" title="go_dirname_from_uri ()">go_dirname_from_uri</a>                 (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> brief</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="goffice-0.10-File-utilities.html#go-file-access" title="go_file_access ()">go_file_access</a>                      (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> mode</code></em>);
<span class="returnvalue">GsfOutput</span> *         <a class="link" href="goffice-0.10-File-utilities.html#go-file-create" title="go_file_create ()">go_file_create</a>                      (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<span class="returnvalue">time_t</span>              <a class="link" href="goffice-0.10-File-utilities.html#go-file-get-date-accessed" title="go_file_get_date_accessed ()">go_file_get_date_accessed</a>           (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);
<span class="returnvalue">time_t</span>              <a class="link" href="goffice-0.10-File-utilities.html#go-file-get-date-changed" title="go_file_get_date_changed ()">go_file_get_date_changed</a>            (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);
<span class="returnvalue">time_t</span>              <a class="link" href="goffice-0.10-File-utilities.html#go-file-get-date-modified" title="go_file_get_date_modified ()">go_file_get_date_modified</a>           (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="goffice-0.10-File-utilities.html#go-file-get-group-name" title="go_file_get_group_name ()">go_file_get_group_name</a>              (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="goffice-0.10-File-utilities.html#go-file-get-owner-name" title="go_file_get_owner_name ()">go_file_get_owner_name</a>              (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);
<span class="returnvalue">GsfInput</span> *          <a class="link" href="goffice-0.10-File-utilities.html#go-file-open" title="go_file_open ()">go_file_open</a>                        (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *            <a class="link" href="goffice-0.10-File-utilities.html#go-file-split-urls" title="go_file_split_urls ()">go_file_split_urls</a>                  (<em class="parameter"><code><span class="type">char</span> const *data</code></em>);
<span class="returnvalue">char</span> *              <a class="link" href="goffice-0.10-File-utilities.html#go-filename-from-uri" title="go_filename_from_uri ()">go_filename_from_uri</a>                (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);
<span class="returnvalue">char</span> *              <a class="link" href="goffice-0.10-File-utilities.html#go-filename-simplify" title="go_filename_simplify ()">go_filename_simplify</a>                (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
                                                         <em class="parameter"><code><a class="link" href="goffice-0.10-File-utilities.html#GODotDot" title="enum GODotDot"><span class="type">GODotDot</span></a> dotdot</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> make_absolute</code></em>);
<span class="returnvalue">char</span> *              <a class="link" href="goffice-0.10-File-utilities.html#go-filename-to-uri" title="go_filename_to_uri ()">go_filename_to_uri</a>                  (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="goffice-0.10-File-utilities.html#GOFilePermissions"><span class="returnvalue">GOFilePermissions</span></a> * <a class="link" href="goffice-0.10-File-utilities.html#go-get-file-permissions" title="go_get_file_permissions ()">go_get_file_permissions</a>             (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="goffice-0.10-File-utilities.html#go-get-mime-type" title="go_get_mime_type ()">go_get_mime_type</a>                    (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> const *uri</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="goffice-0.10-File-utilities.html#go-get-mime-type-for-data" title="go_get_mime_type_for_data ()">go_get_mime_type_for_data</a>           (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> data</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> data_size</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="goffice-0.10-File-utilities.html#go-mime-type-get-description" title="go_mime_type_get_description ()">go_mime_type_get_description</a>        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> const *mime_type</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="goffice-0.10-File-utilities.html#go-set-file-permissions" title="go_set_file_permissions ()">go_set_file_permissions</a>             (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>,
                                                         <em class="parameter"><code><a class="link" href="goffice-0.10-File-utilities.html#GOFilePermissions"><span class="type">GOFilePermissions</span></a> *file_permissions</code></em>);
<span class="returnvalue">char</span> *              <a class="link" href="goffice-0.10-File-utilities.html#go-shell-arg-to-uri" title="go_shell_arg_to_uri ()">go_shell_arg_to_uri</a>                 (<em class="parameter"><code>const <span class="type">char</span> *arg</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> const **      <a class="link" href="goffice-0.10-File-utilities.html#go-shell-argv-to-glib-encoding" title="go_shell_argv_to_glib_encoding ()">go_shell_argv_to_glib_encoding</a>      (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> argc</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> const **argv</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="goffice-0.10-File-utilities.html#go-shell-argv-to-glib-encoding-free" title="go_shell_argv_to_glib_encoding_free ()">go_shell_argv_to_glib_encoding_free</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
</pre>
</div>
<div class="refsect1">
<a name="goffice-0.10-File-utilities.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GBoxed
   +----GOFilePermissions
</pre>
</div>
<div class="refsect1">
<a name="goffice-0.10-File-utilities.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="goffice-0.10-File-utilities.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GO-F-OK:CAPS"></a><h3>GO_F_OK</h3>
<pre class="programlisting">#  define GO_F_OK F_OK
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GODotDot"></a><h3>enum GODotDot</h3>
<pre class="programlisting">typedef enum {
	GO_DOTDOT_SYNTACTIC,    /* Assume no symlinks.  */
	GO_DOTDOT_TEST,         /* Check.  */
	GO_DOTDOT_LEAVE         /* Leave alone.  */
} GODotDot;
</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="GO-DOTDOT-SYNTACTIC:CAPS"></a><span class="term"><code class="literal">GO_DOTDOT_SYNTACTIC</code></span></p></td>
<td>assume no symlinks.
</td>
</tr>
<tr>
<td><p><a name="GO-DOTDOT-TEST:CAPS"></a><span class="term"><code class="literal">GO_DOTDOT_TEST</code></span></p></td>
<td>check.
</td>
</tr>
<tr>
<td><p><a name="GO-DOTDOT-LEAVE:CAPS"></a><span class="term"><code class="literal">GO_DOTDOT_LEAVE</code></span></p></td>
<td>leave alone.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GOFilePermissions-struct"></a><h3>struct GOFilePermissions</h3>
<pre class="programlisting">struct GOFilePermissions {
	gboolean owner_read;
	gboolean owner_write;
	gboolean owner_execute;

	gboolean group_read;
	gboolean group_write;
	gboolean group_execute;

	gboolean others_read;
	gboolean others_write;
	gboolean others_execute;
};
</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GOFilePermissions-struct.owner-read"></a>owner_read</code></em>;</span></p></td>
<td>owner can read.</td>
</tr>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GOFilePermissions-struct.owner-write"></a>owner_write</code></em>;</span></p></td>
<td>owner can write.</td>
</tr>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GOFilePermissions-struct.owner-execute"></a>owner_execute</code></em>;</span></p></td>
<td>owner can execute.</td>
</tr>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GOFilePermissions-struct.group-read"></a>group_read</code></em>;</span></p></td>
<td>group can read.</td>
</tr>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GOFilePermissions-struct.group-write"></a>group_write</code></em>;</span></p></td>
<td>group can write.</td>
</tr>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GOFilePermissions-struct.group-execute"></a>group_execute</code></em>;</span></p></td>
<td>group can execute.</td>
</tr>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GOFilePermissions-struct.others-read"></a>others_read</code></em>;</span></p></td>
<td>everybody can read.</td>
</tr>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GOFilePermissions-struct.others-write"></a>others_write</code></em>;</span></p></td>
<td>everybody can write.</td>
</tr>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GOFilePermissions-struct.others-execute"></a>others_execute</code></em>;</span></p></td>
<td>everybody can execute.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GO-R-OK:CAPS"></a><h3>GO_R_OK</h3>
<pre class="programlisting">#  define GO_R_OK R_OK
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GO-W-OK:CAPS"></a><h3>GO_W_OK</h3>
<pre class="programlisting">#  define GO_W_OK W_OK
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GO-X-OK:CAPS"></a><h3>GO_X_OK</h3>
<pre class="programlisting">#  define GO_X_OK X_OK
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-basename-from-uri"></a><h3>go_basename_from_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              go_basename_from_uri                (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);</pre>
<p>
Decode the final path component.  Returns as UTF-8 encoded suitable
for display.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>The uri</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a string that the caller is responsible for freeing.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-dirname-from-uri"></a><h3>go_dirname_from_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              go_dirname_from_uri                 (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> brief</code></em>);</pre>
<p>
Decode the all but the final path component.  Returns as UTF-8 encoded
suitable for display.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>target</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>brief</code></em> :</span></p></td>
<td>if TRUE, hide "file://" if present.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>dirname which the caller is responsible for freeing.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-file-access"></a><h3>go_file_access ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                go_file_access                      (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> mode</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-file-create"></a><h3>go_file_create ()</h3>
<pre class="programlisting"><span class="returnvalue">GsfOutput</span> *         go_file_create                      (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Creates a file or return an error. If the file already exists, it is
replaced.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>target uri</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on success. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-file-get-date-accessed"></a><h3>go_file_get_date_accessed ()</h3>
<pre class="programlisting"><span class="returnvalue">time_t</span>              go_file_get_date_accessed           (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-file-get-date-changed"></a><h3>go_file_get_date_changed ()</h3>
<pre class="programlisting"><span class="returnvalue">time_t</span>              go_file_get_date_changed            (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-file-get-date-modified"></a><h3>go_file_get_date_modified ()</h3>
<pre class="programlisting"><span class="returnvalue">time_t</span>              go_file_get_date_modified           (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-file-get-group-name"></a><h3>go_file_get_group_name ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             go_file_get_group_name              (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-file-get-owner-name"></a><h3>go_file_get_owner_name ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             go_file_get_owner_name              (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-file-open"></a><h3>go_file_open ()</h3>
<pre class="programlisting"><span class="returnvalue">GsfInput</span> *          go_file_open                        (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>
Try all available methods to open a file or return an error
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>target uri</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
<td><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non-<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on success. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-file-split-urls"></a><h3>go_file_split_urls ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *            go_file_split_urls                  (<em class="parameter"><code><span class="type">char</span> const *data</code></em>);</pre>
<p>
Splits the chain into a list of URIs. Lines starting with '#' are ignored.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>a string filled with a list of URIs separated by new lines.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the URIs list. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> char][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-filename-from-uri"></a><h3>go_filename_from_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              go_filename_from_uri                (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-filename-simplify"></a><h3>go_filename_simplify ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              go_filename_simplify                (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
                                                         <em class="parameter"><code><a class="link" href="goffice-0.10-File-utilities.html#GODotDot" title="enum GODotDot"><span class="type">GODotDot</span></a> dotdot</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> make_absolute</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-filename-to-uri"></a><h3>go_filename_to_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              go_filename_to_uri                  (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-get-file-permissions"></a><h3>go_get_file_permissions ()</h3>
<pre class="programlisting"><a class="link" href="goffice-0.10-File-utilities.html#GOFilePermissions"><span class="returnvalue">GOFilePermissions</span></a> * go_get_file_permissions             (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-get-mime-type"></a><h3>go_get_mime_type ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             go_get_mime_type                    (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> const *uri</code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the uri.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the mime type for the file as a newly allocated string. Needs to
be freed with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-get-mime-type-for-data"></a><h3>go_get_mime_type_for_data ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             go_get_mime_type_for_data           (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> data</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> data_size</code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>the data.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_size</code></em> :</span></p></td>
<td>the data size</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the mime type for the data as a newly allocated string. Needs to
be freed with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-mime-type-get-description"></a><h3>go_mime_type_get_description ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             go_mime_type_get_description        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> const *mime_type</code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
<td>the mime type to describe.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the description for the mime type as a newly allocated string.
Needs to be freed with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>. If the description is not found, the
mime type itself will be returned.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-set-file-permissions"></a><h3>go_set_file_permissions ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                go_set_file_permissions             (<em class="parameter"><code><span class="type">char</span> const *uri</code></em>,
                                                         <em class="parameter"><code><a class="link" href="goffice-0.10-File-utilities.html#GOFilePermissions"><span class="type">GOFilePermissions</span></a> *file_permissions</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-shell-arg-to-uri"></a><h3>go_shell_arg_to_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              go_shell_arg_to_uri                 (<em class="parameter"><code>const <span class="type">char</span> *arg</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="go-shell-argv-to-glib-encoding"></a><h3>go_shell_argv_to_glib_encoding ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> const **      go_shell_argv_to_glib_encoding      (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> argc</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> const **argv</code></em>);</pre>
<p>
Transform arguments to UTF-8 when needed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>argc</code></em> :</span></p></td>
<td>arguments number</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>argv</code></em> :</span></p></td>
<td>command line arguments</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the arguments in UTF-8 locale. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="go-shell-argv-to-glib-encoding-free"></a><h3>go_shell_argv_to_glib_encoding_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                go_shell_argv_to_glib_encoding_free (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.19</div>
</body>
</html>