40
40
<th width="100%" align="center">GIO Reference Manual</th>
41
41
<td><a accesskey="n" href="gio-GFileAttribute.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
43
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3115588" class="shortcut">Top</a>
45
<a href="#id3177876" class="shortcut">Description</a>
47
<a href="#id3177829" class="shortcut">Object Hierarchy</a>
49
<a href="#id3177854" class="shortcut">Prerequisites</a></nobr></td></tr>
43
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3035418" class="shortcut">Top</a>
45
<a href="#id3091285" class="shortcut">Description</a>
47
<a href="#id3091238" class="shortcut">Object Hierarchy</a>
49
<a href="#id3091263" class="shortcut">Prerequisites</a></nobr></td></tr>
51
51
<div class="refentry" lang="en">
52
52
<a name="GFile"></a><div class="titlepage"></div>
53
53
<div class="refnamediv"><table width="100%"><tr>
56
<a name="id3115588"></a><span class="refentrytitle">GFile</span>
56
<a name="id3035418"></a><span class="refentrytitle">GFile</span>
58
58
<p>GFile — File and Directory Handling</p>
118
119
>GError</a> **error);
120
121
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
121
>gboolean</a> <a class="link" href="GFile.html#g-file-contains-file">g_file_contains_file</a> (<a class="link" href="GFile.html" title="GFile">GFile</a> *parent,
122
<a class="link" href="GFile.html" title="GFile">GFile</a> *descendant);
122
>gboolean</a> <a class="link" href="GFile.html#g-file-has-prefix">g_file_has_prefix</a> (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
123
<a class="link" href="GFile.html" title="GFile">GFile</a> *prefix);
123
124
char* <a class="link" href="GFile.html#g-file-get-relative-path">g_file_get_relative_path</a> (<a class="link" href="GFile.html" title="GFile">GFile</a> *parent,
124
125
<a class="link" href="GFile.html" title="GFile">GFile</a> *descendant);
125
126
<a class="link" href="GFile.html" title="GFile">GFile</a>* <a class="link" href="GFile.html#g-file-resolve-relative-path">g_file_resolve_relative_path</a> (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
246
247
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
247
248
>GError</a> **error);
249
void <a class="link" href="GFile.html#g-file-query-filesystem-info-async">g_file_query_filesystem_info_async</a> (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
250
const char *attributes,
252
<a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
253
<a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
255
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
256
>gpointer</a> user_data);
257
<a class="link" href="GFileInfo.html" title="GFileInfo">GFileInfo</a>* <a class="link" href="GFile.html#g-file-query-filesystem-info-finish">g_file_query_filesystem_info_finish</a> (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
258
<a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *res,
260
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
261
>GError</a> **error);
248
262
<a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a>* <a class="link" href="GFile.html#g-file-query-default-handler">g_file_query_default_handler</a> (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
249
263
<a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
689
703
>GObject</a>.</p>
691
705
<div class="refsect1" lang="en">
692
<a name="id3177876"></a><h2>Description</h2>
706
<a name="id3091285"></a><h2>Description</h2>
694
708
<a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> is a high level abstraction for manipulating files on a
695
709
virtual file system. <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s are lightweight, immutable
696
710
objects that do no I/O upon creation. It is necessary to understand that
697
<a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> objects do not represent files, merely a handle to a file. All
698
file I/O is implemented as streaming operations (see <a class="link" href="GInputStream.html" title="GInputStream"><span class="type">GInputStream</span></a> and
711
<a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> objects do not represent files, merely an identifier for a file. All
712
file content I/O is implemented as streaming operations (see <a class="link" href="GInputStream.html" title="GInputStream"><span class="type">GInputStream</span></a> and
699
713
<a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>).
703
717
<a class="link" href="GFile.html#g-file-new-for-path"><code class="function">g_file_new_for_path()</code></a> if you have a path.
704
718
<a class="link" href="GFile.html#g-file-new-for-uri"><code class="function">g_file_new_for_uri()</code></a> if you have a URI.
705
719
<a class="link" href="GFile.html#g-file-new-for-commandline-arg"><code class="function">g_file_new_for_commandline_arg()</code></a> for a command line argument.
708
You can move through the file system with <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> handles with
709
<a class="link" href="GFile.html#g-file-get-parent"><code class="function">g_file_get_parent()</code></a> to get a handle to the parent directory.
710
<a class="link" href="GFile.html#g-file-get-child"><code class="function">g_file_get_child()</code></a> to get a handle to a child within a directory.
711
<a class="link" href="GFile.html#g-file-resolve-relative-path"><code class="function">g_file_resolve_relative_path()</code></a> to resolve a relative path between
712
two <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s.
720
<a class="link" href="GFile.html#g-file-parse-name"><code class="function">g_file_parse_name()</code></a> from a utf8 string gotten from <a class="link" href="GFile.html#g-file-get-parse-name"><code class="function">g_file_get_parse_name()</code></a>.
723
One way to think of a <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> is as an abstraction of a pathname. For normal
724
files the system pathname is what is stored internally, but as <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s
725
are extensible it could also be something else that corresponds to a pathname
726
in a userspace implementation of a filesystem.
729
<a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s make up hierarchies of directories and files that correspond to the
730
files on a filesystem. You can move through the file system with <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> using
731
<a class="link" href="GFile.html#g-file-get-parent"><code class="function">g_file_get_parent()</code></a> to get an identifier for the parent directory, <a class="link" href="GFile.html#g-file-get-child"><code class="function">g_file_get_child()</code></a>
732
to get a child within a directory, <a class="link" href="GFile.html#g-file-resolve-relative-path"><code class="function">g_file_resolve_relative_path()</code></a> to resolve a relative
733
path between two <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s. There can be multiple hierarchies, so you may not
734
end up at the same root if you repeatedly call <a class="link" href="GFile.html#g-file-get-parent"><code class="function">g_file_get_parent()</code></a> on two different
738
All <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s have a basename (get with <a class="link" href="GFile.html#g-file-get-basename"><code class="function">g_file_get_basename()</code></a>). These names
739
are byte strings that are used to identify the file on the filesystem (relative to
740
its parent directory) and there is no guarantees that they have any particular charset
741
encoding or even make any sense at all. If you want to use filenames in a user
742
interface you should use the display name that you can get by requesting the
743
<a class="link" href="GFileInfo.html#G-FILE-ATTRIBUTE-STANDARD-DISPLAY-NAME:CAPS"><code class="literal">G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME</code></a> attribute with <a class="link" href="GFile.html#g-file-query-info"><code class="function">g_file_query_info()</code></a>.
744
This is guaranteed to be in utf8 and can be used in a user interface. But always
745
store the real basename or the <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> to use to actually access the file, because
746
there is no way to go from a display name to the actual name.
749
Using <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> as an identifier has the same weaknesses as using a path in that
750
there may be multiple aliases for the same file. For instance, hard or
751
soft links may cause two different <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s to refer to the same file.
752
Other possible causes for aliases are: case insensitive filesystems, short
753
and long names on Fat/NTFS, or bind mounts in linux. If you want to check if
754
two <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s point to the same file you can query for the
755
<a class="link" href="GFileInfo.html#G-FILE-ATTRIBUTE-ID-FILE:CAPS"><code class="literal">G_FILE_ATTRIBUTE_ID_FILE</code></a> attribute. Note that <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> does some trivial
756
canonicalization of pathnames passed in, so that trivial differences in the
757
path string used at creation (dupplicated slashes, slash at end of path, "."
758
or ".." path segments, etc) does not create different <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s.
715
761
Many <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> operations have both synchronous and asynchronous versions
1619
1672
<div class="refsect2" lang="en">
1620
<a name="id3180499"></a><h3>
1673
<a name="id3094105"></a><h3>
1674
<a name="GFilesystemPreviewType"></a>enum GFilesystemPreviewType</h3>
1675
<a class="indexterm" name="id3094118"></a><pre class="programlisting">typedef enum {
1676
G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS = 0,
1677
G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL,
1678
G_FILESYSTEM_PREVIEW_TYPE_NEVER
1679
} GFilesystemPreviewType;
1682
Indicates a hint from the file system whether files should be
1683
previewed in a file manager. Returned as the value of the key
1684
<a class="link" href="GFileInfo.html#G-FILE-ATTRIBUTE-FILESYSTEM-USE-PREVIEW:CAPS"><span class="type">G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW</span></a>.</p>
1688
<div class="variablelist"><table border="0">
1689
<col align="left" valign="top">
1692
<td><p><span class="term"><a name="G-FILESYSTEM-PREVIEW-TYPE-IF-ALWAYS:CAPS"></a><code class="literal">G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS</code></span></p></td>
1693
<td> Only preview files if user has explicitly requested it.
1697
<td><p><span class="term"><a name="G-FILESYSTEM-PREVIEW-TYPE-IF-LOCAL:CAPS"></a><code class="literal">G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL</code></span></p></td>
1698
<td> Preview files if user has requested preview of "local" files.
1702
<td><p><span class="term"><a name="G-FILESYSTEM-PREVIEW-TYPE-NEVER:CAPS"></a><code class="literal">G_FILESYSTEM_PREVIEW_TYPE_NEVER</code></span></p></td>
1703
<td> Never preview files.
1710
<div class="refsect2" lang="en">
1711
<a name="id3094227"></a><h3>
1621
1712
<a name="GFileProgressCallback"></a>GFileProgressCallback ()</h3>
1622
<a class="indexterm" name="id3180513"></a><pre class="programlisting">void (*GFileProgressCallback) (<a
1713
<a class="indexterm" name="id3094241"></a><pre class="programlisting">void (*GFileProgressCallback) (<a
1623
1714
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
1624
1715
>goffset</a> current_num_bytes,
1901
1992
<div class="refsect2" lang="en">
1902
<a name="id3181470"></a><h3>
1993
<a name="id3095198"></a><h3>
1903
1994
<a name="g-file-equal"></a>g_file_equal ()</h3>
1904
<a class="indexterm" name="id3181482"></a><pre class="programlisting"><a
1995
<a class="indexterm" name="id3095211"></a><pre class="programlisting"><a
1905
1996
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1906
1997
>gboolean</a> g_file_equal (<a class="link" href="GFile.html" title="GFile">GFile</a> *file1,
1907
1998
<a class="link" href="GFile.html" title="GFile">GFile</a> *file2);</pre>
1909
Checks equality of two given <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s
2000
Checks equality of two given <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s. Note that two
2001
<a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>s that differ can still refer to the same
2002
file on the filesystem due to various forms of filename
1912
2006
This call does no blocking i/o.</p>
1943
2037
<div class="refsect2" lang="en">
1944
<a name="id3181629"></a><h3>
2038
<a name="id3095368"></a><h3>
1945
2039
<a name="g-file-get-basename"></a>g_file_get_basename ()</h3>
1946
<a class="indexterm" name="id3181643"></a><pre class="programlisting">char* g_file_get_basename (<a class="link" href="GFile.html" title="GFile">GFile</a> *file);</pre>
2040
<a class="indexterm" name="id3095382"></a><pre class="programlisting">char* g_file_get_basename (<a class="link" href="GFile.html" title="GFile">GFile</a> *file);</pre>
1948
2042
Gets the base name (the last component of the path) for a given <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>.
1951
2045
If called for the top level of a system (such as the filesystem root
1952
or a uri like sftp://host/ it will return a single directory separator
2046
or a uri like sftp://host/) it will return a single directory separator
1953
2047
(and on Windows, possibly a drive letter).
2050
The base name is a byte string (*not* UTF-8). It has no defined encoding
2051
or rules other than it may not contain zero bytes. If you want to use
2052
filenames in a user interface you should use the display name that you
2053
can get by requesting the <a class="link" href="GFileInfo.html#G-FILE-ATTRIBUTE-STANDARD-DISPLAY-NAME:CAPS"><code class="literal">G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME</code></a>
2054
attribute with <a class="link" href="GFile.html#g-file-query-info"><code class="function">g_file_query_info()</code></a>.
1956
2057
This call does no blocking i/o.</p>
2130
2232
<div class="refsect2" lang="en">
2131
<a name="id3182270"></a><h3>
2233
<a name="id3096037"></a><h3>
2132
2234
<a name="g-file-get-child"></a>g_file_get_child ()</h3>
2133
<a class="indexterm" name="id3182283"></a><pre class="programlisting"><a class="link" href="GFile.html" title="GFile">GFile</a>* g_file_get_child (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
2235
<a class="indexterm" name="id3096050"></a><pre class="programlisting"><a class="link" href="GFile.html" title="GFile">GFile</a>* g_file_get_child (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
2134
2236
const char *name);</pre>
2136
Gets a specific child of <em class="parameter"><code>file</code></em> with name equal to <em class="parameter"><code>name</code></em>.
2238
Gets a child of <em class="parameter"><code>file</code></em> with basename equal to <em class="parameter"><code>name</code></em>.
2139
2241
Note that the file with that specific name might not exist, but
2224
2326
<div class="refsect2" lang="en">
2225
<a name="id3182601"></a><h3>
2226
<a name="g-file-contains-file"></a>g_file_contains_file ()</h3>
2227
<a class="indexterm" name="id3182614"></a><pre class="programlisting"><a
2327
<a name="id3096368"></a><h3>
2328
<a name="g-file-has-prefix"></a>g_file_has_prefix ()</h3>
2329
<a class="indexterm" name="id3096382"></a><pre class="programlisting"><a
2228
2330
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
2229
>gboolean</a> g_file_contains_file (<a class="link" href="GFile.html" title="GFile">GFile</a> *parent,
2230
<a class="link" href="GFile.html" title="GFile">GFile</a> *descendant);</pre>
2331
>gboolean</a> g_file_has_prefix (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
2332
<a class="link" href="GFile.html" title="GFile">GFile</a> *prefix);</pre>
2232
Checks whether <em class="parameter"><code>parent</code></em> (recursively) contains the specified <em class="parameter"><code>descendant</code></em>.
2334
Checks whether <em class="parameter"><code>file</code></em> has the prefix specified by <em class="parameter"><code>prefix</code></em>. In other word, if the
2335
names of inital elements of <em class="parameter"><code>file</code></em>s pathname match <em class="parameter"><code>prefix</code></em>.
2235
This call does no blocking i/o.</p>
2338
This call does no i/o, as it works purely on names. As such it can sometimes
2340
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
2341
><code class="literal">FALSE</code></a> even if <em class="parameter"><code>file</code></em> is inside a <em class="parameter"><code>prefix</code></em> (from a filesystem point of view),
2342
because the prefix of <em class="parameter"><code>file</code></em> is an alias of <em class="parameter"><code>prefix</code></em>.</p>
3616
3723
<div class="refsect2" lang="en">
3617
<a name="id3187681"></a><h3>
3724
<a name="id3101497"></a><h3>
3725
<a name="g-file-query-filesystem-info-async"></a>g_file_query_filesystem_info_async ()</h3>
3726
<a class="indexterm" name="id3101511"></a><pre class="programlisting">void g_file_query_filesystem_info_async (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
3727
const char *attributes,
3729
<a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
3730
<a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
3732
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
3733
>gpointer</a> user_data);</pre>
3735
Asynchronously gets the requested information about the filesystem
3736
that the specified <em class="parameter"><code>file</code></em> is on. The result is a <a class="link" href="GFileInfo.html" title="GFileInfo"><span class="type">GFileInfo</span></a> object
3737
that contains key-value attributes (such as type or size for the
3741
For more details, see <a class="link" href="GFile.html#g-file-query-filesystem-info"><code class="function">g_file_query_filesystem_info()</code></a> which is the
3742
synchronous version of this call.
3745
When the operation is finished, <em class="parameter"><code>callback</code></em> will be called. You can
3746
then call <a class="link" href="GFile.html#g-file-query-info-finish"><code class="function">g_file_query_info_finish()</code></a> to get the result of the
3751
<div class="variablelist"><table border="0">
3752
<col align="left" valign="top">
3755
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
3756
<td> input <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>.
3760
<td><p><span class="term"><em class="parameter"><code>attributes</code></em> :</span></p></td>
3761
<td> an attribute query string.
3765
<td><p><span class="term"><em class="parameter"><code>io_priority</code></em> :</span></p></td>
3766
<td> the <a class="link" href="gio-GIOScheduler.html#io-priority">I/O priority</a>
3771
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
3772
<td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a
3773
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
3774
><code class="literal">NULL</code></a> to ignore.
3778
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
3779
<td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied
3783
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
3784
<td> the data to pass to callback function
3791
<div class="refsect2" lang="en">
3792
<a name="id3101759"></a><h3>
3793
<a name="g-file-query-filesystem-info-finish"></a>g_file_query_filesystem_info_finish ()</h3>
3794
<a class="indexterm" name="id3101774"></a><pre class="programlisting"><a class="link" href="GFileInfo.html" title="GFileInfo">GFileInfo</a>* g_file_query_filesystem_info_finish (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
3795
<a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *res,
3797
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
3798
>GError</a> **error);</pre>
3800
Finishes an asynchronous filesystem info query. See
3801
<a class="link" href="GFile.html#g-file-query-filesystem-info-async"><code class="function">g_file_query_filesystem_info_async()</code></a>.</p>
3805
<div class="variablelist"><table border="0">
3806
<col align="left" valign="top">
3809
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
3810
<td> input <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>.
3814
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
3815
<td> a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.
3819
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
3821
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
3822
><span class="type">GError</span></a>.
3826
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
3827
<td> <a class="link" href="GFileInfo.html" title="GFileInfo"><span class="type">GFileInfo</span></a> for given <em class="parameter"><code>file</code></em> or <a
3828
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
3829
><code class="literal">NULL</code></a> on error.
3836
<div class="refsect2" lang="en">
3837
<a name="id3101931"></a><h3>
3618
3838
<a name="g-file-query-default-handler"></a>g_file_query_default_handler ()</h3>
3619
<a class="indexterm" name="id3187695"></a><pre class="programlisting"><a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a>* g_file_query_default_handler (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
3839
<a class="indexterm" name="id3101946"></a><pre class="programlisting"><a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a>* g_file_query_default_handler (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
3620
3840
<a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
3622
3842
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
5753
5973
<div class="refsect2" lang="en">
5754
<a name="id3195903"></a><h3>
5974
<a name="id3110154"></a><h3>
5755
5975
<a name="g-file-mount-mountable"></a>g_file_mount_mountable ()</h3>
5756
<a class="indexterm" name="id3195916"></a><pre class="programlisting">void g_file_mount_mountable (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
5757
GMountMountFlags flags,
5976
<a class="indexterm" name="id3110167"></a><pre class="programlisting">void g_file_mount_mountable (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
5977
<a class="link" href="GMount.html#GMountMountFlags">GMountMountFlags</a> flags,
5758
5978
<a class="link" href="GMountOperation.html" title="GMountOperation">GMountOperation</a> *mount_operation,
5759
5979
<a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
5760
5980
<a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
5875
6095
<div class="refsect2" lang="en">
5876
<a name="id3196383"></a><h3>
6096
<a name="id3110634"></a><h3>
5877
6097
<a name="g-file-unmount-mountable"></a>g_file_unmount_mountable ()</h3>
5878
<a class="indexterm" name="id3196397"></a><pre class="programlisting">void g_file_unmount_mountable (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
6098
<a class="indexterm" name="id3110648"></a><pre class="programlisting">void g_file_unmount_mountable (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
5879
6099
<a class="link" href="GMount.html#GMountUnmountFlags">GMountUnmountFlags</a> flags,
5880
6100
<a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
5881
6101
<a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
5992
6212
<div class="refsect2" lang="en">
5993
<a name="id3196820"></a><h3>
6213
<a name="id3111071"></a><h3>
5994
6214
<a name="g-file-eject-mountable"></a>g_file_eject_mountable ()</h3>
5995
<a class="indexterm" name="id3196833"></a><pre class="programlisting">void g_file_eject_mountable (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
6215
<a class="indexterm" name="id3111084"></a><pre class="programlisting">void g_file_eject_mountable (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
5996
6216
<a class="link" href="GMount.html#GMountUnmountFlags">GMountUnmountFlags</a> flags,
5997
6217
<a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
5998
6218
<a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
6105
6325
<div class="refsect2" lang="en">
6106
<a name="id3197250"></a><h3>
6326
<a name="id3111502"></a><h3>
6107
6327
<a name="g-file-mount-enclosing-volume"></a>g_file_mount_enclosing_volume ()</h3>
6108
<a class="indexterm" name="id3197264"></a><pre class="programlisting">void g_file_mount_enclosing_volume (<a class="link" href="GFile.html" title="GFile">GFile</a> *location,
6109
GMountMountFlags flags,
6328
<a class="indexterm" name="id3111515"></a><pre class="programlisting">void g_file_mount_enclosing_volume (<a class="link" href="GFile.html" title="GFile">GFile</a> *location,
6329
<a class="link" href="GMount.html#GMountMountFlags">GMountMountFlags</a> flags,
6110
6330
<a class="link" href="GMountOperation.html" title="GMountOperation">GMountOperation</a> *mount_operation,
6111
6331
<a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
6112
6332
<a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,
6568
6788
<div class="refsect2" lang="en">
6569
<a name="id3199034"></a><h3>
6789
<a name="id3113286"></a><h3>
6570
6790
<a name="g-file-load-partial-contents-async"></a>g_file_load_partial_contents_async ()</h3>
6571
<a class="indexterm" name="id3199049"></a><pre class="programlisting">void g_file_load_partial_contents_async (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
6791
<a class="indexterm" name="id3113300"></a><pre class="programlisting">void g_file_load_partial_contents_async (<a class="link" href="GFile.html" title="GFile">GFile</a> *file,
6572
6792
<a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable,
6573
6793
<a class="link" href="GFile.html#GFileReadMoreCallback">GFileReadMoreCallback</a> read_more_callback,
6574
6794
<a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback,