1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7 <link rel="home" href="index.html" title="GIO Reference Manual">
8 <link rel="up" href="volume_mon.html" title="Volumes and Drives">
9 <link rel="prev" href="GVolume.html" title="GVolume">
10 <link rel="next" href="GDrive.html" title="GDrive">
11 <meta name="generator" content="GTK-Doc V1.13 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 <link rel="part" href="pt01.html" title="Part I. GIO Overview">
14 <link rel="chapter" href="ch01.html" title="Introduction">
15 <link rel="chapter" href="ch02.html" title="Compiling GIO applications">
16 <link rel="chapter" href="ch03.html" title="Running GIO applications">
17 <link rel="chapter" href="extending-gio.html" title="Extending GIO">
18 <link rel="part" href="pt02.html" title="Part II. API Reference">
19 <link rel="chapter" href="file_ops.html" title="File Operations">
20 <link rel="chapter" href="file_mon.html" title="File System Monitoring">
21 <link rel="chapter" href="async.html" title="Asynchronous I/O">
22 <link rel="chapter" href="conversion.html" title="Data conversion">
23 <link rel="chapter" href="streaming.html" title="Streaming I/O">
24 <link rel="chapter" href="types.html" title="File types and applications">
25 <link rel="chapter" href="volume_mon.html" title="Volumes and Drives">
26 <link rel="chapter" href="icons.html" title="Icons">
27 <link rel="chapter" href="failable_initialization.html" title="Failable Initialization">
28 <link rel="chapter" href="networking.html" title="Lowlevel platform-independent network support">
29 <link rel="chapter" href="resolver.html" title="DNS resolution">
30 <link rel="chapter" href="highlevel-socket.html" title="Highlevel network functionallity">
31 <link rel="chapter" href="utils.html" title="Utilities">
32 <link rel="chapter" href="extending.html" title="Extending GIO">
33 <link rel="part" href="migrating.html" title="Part III. Migrating to GIO">
34 <link rel="chapter" href="ch19.html" title="Migrating from POSIX to GIO">
35 <link rel="chapter" href="ch20.html" title="Migrating from GnomeVFS to GIO">
36 <link rel="chapter" href="gio-hierarchy.html" title="Object Hierarchy">
37 <link rel="index" href="api-index-full.html" title="Index">
38 <link rel="index" href="api-index-deprecated.html" title="Index of deprecated symbols">
39 <link rel="index" href="api-index-2-18.html" title="Index of new symbols in 2.18">
40 <link rel="index" href="api-index-2-20.html" title="Index of new symbols in 2.20">
41 <link rel="index" href="api-index-2-22.html" title="Index of new symbols in 2.22">
42 <link rel="index" href="api-index-2-24.html" title="Index of new symbols in 2.24">
44 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
45 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
47 <td><a accesskey="p" href="GVolume.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
48 <td><a accesskey="u" href="volume_mon.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
49 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
50 <th width="100%" align="center">GIO Reference Manual</th>
51 <td><a accesskey="n" href="GDrive.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
53 <tr><td colspan="5" class="shortcuts">
54 <a href="#GMount.synopsis" class="shortcut">Top</a>
56 <a href="#GMount.description" class="shortcut">Description</a>
58 <a href="#GMount.object-hierarchy" class="shortcut">Object Hierarchy</a>
60 <a href="#GMount.prerequisites" class="shortcut">Prerequisites</a>
62 <a href="#GMount.signals" class="shortcut">Signals</a>
65 <div class="refentry" title="GMount">
66 <a name="GMount"></a><div class="titlepage"></div>
67 <div class="refnamediv"><table width="100%"><tr>
69 <h2><span class="refentrytitle"><a name="GMount.top_of_page"></a>GMount</span></h2>
70 <p>GMount — Mount management</p>
72 <td valign="top" align="right"></td>
74 <div class="refsynopsisdiv" title="Synopsis">
75 <a name="GMount.synopsis"></a><h2>Synopsis</h2>
76 <pre class="synopsis">
77 #include <gio/gio.h
78 @see also: GVolume>
79 #include <GUnixMount>
81 <a class="link" href="GMount.html#GMount-struct" title="GMount">GMount</a>;
82 <a class="link" href="GMount.html#GMountIface" title="GMountIface">GMountIface</a>;
83 <span class="returnvalue">char</span> * <a class="link" href="GMount.html#g-mount-get-name" title="g_mount_get_name ()">g_mount_get_name</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
84 <span class="returnvalue">char</span> * <a class="link" href="GMount.html#g-mount-get-uuid" title="g_mount_get_uuid ()">g_mount_get_uuid</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
85 <a class="link" href="GIcon.html" title="GIcon"><span class="returnvalue">GIcon</span></a> * <a class="link" href="GMount.html#g-mount-get-icon" title="g_mount_get_icon ()">g_mount_get_icon</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
86 <a class="link" href="GDrive.html" title="GDrive"><span class="returnvalue">GDrive</span></a> * <a class="link" href="GMount.html#g-mount-get-drive" title="g_mount_get_drive ()">g_mount_get_drive</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
87 <a class="link" href="GFile.html" title="GFile"><span class="returnvalue">GFile</span></a> * <a class="link" href="GMount.html#g-mount-get-root" title="g_mount_get_root ()">g_mount_get_root</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
88 <a class="link" href="GVolume.html" title="GVolume"><span class="returnvalue">GVolume</span></a> * <a class="link" href="GMount.html#g-mount-get-volume" title="g_mount_get_volume ()">g_mount_get_volume</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
89 <a class="link" href="GFile.html" title="GFile"><span class="returnvalue">GFile</span></a> * <a class="link" href="GMount.html#g-mount-get-default-location" title="g_mount_get_default_location ()">g_mount_get_default_location</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
90 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GMount.html#g-mount-can-unmount" title="g_mount_can_unmount ()">g_mount_can_unmount</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
91 enum <a class="link" href="GMount.html#GMountMountFlags" title="enum GMountMountFlags">GMountMountFlags</a>;
92 enum <a class="link" href="GMount.html#GMountUnmountFlags" title="enum GMountUnmountFlags">GMountUnmountFlags</a>;
93 <span class="returnvalue">void</span> <a class="link" href="GMount.html#g-mount-unmount" title="g_mount_unmount ()">g_mount_unmount</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
94 <a class="link" href="GMount.html#GMountUnmountFlags" title="enum GMountUnmountFlags"><span class="returnvalue">GMountUnmountFlags</span></a> flags,
95 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
96 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
97 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);
98 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GMount.html#g-mount-unmount-finish" title="g_mount_unmount_finish ()">g_mount_unmount_finish</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
99 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
100 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);
101 <span class="returnvalue">void</span> <a class="link" href="GMount.html#g-mount-unmount-with-operation" title="g_mount_unmount_with_operation ()">g_mount_unmount_with_operation</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
102 <a class="link" href="GMount.html#GMountUnmountFlags" title="enum GMountUnmountFlags"><span class="returnvalue">GMountUnmountFlags</span></a> flags,
103 <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="returnvalue">GMountOperation</span></a> *mount_operation,
104 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
105 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
106 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);
107 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GMount.html#g-mount-unmount-with-operation-finish" title="g_mount_unmount_with_operation_finish ()">g_mount_unmount_with_operation_finish</a>
108 (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
109 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
110 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);
111 <span class="returnvalue">void</span> <a class="link" href="GMount.html#g-mount-remount" title="g_mount_remount ()">g_mount_remount</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
112 <a class="link" href="GMount.html#GMountMountFlags" title="enum GMountMountFlags"><span class="returnvalue">GMountMountFlags</span></a> flags,
113 <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="returnvalue">GMountOperation</span></a> *mount_operation,
114 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
115 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
116 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);
117 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GMount.html#g-mount-remount-finish" title="g_mount_remount_finish ()">g_mount_remount_finish</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
118 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
119 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);
120 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GMount.html#g-mount-can-eject" title="g_mount_can_eject ()">g_mount_can_eject</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
121 <span class="returnvalue">void</span> <a class="link" href="GMount.html#g-mount-eject" title="g_mount_eject ()">g_mount_eject</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
122 <a class="link" href="GMount.html#GMountUnmountFlags" title="enum GMountUnmountFlags"><span class="returnvalue">GMountUnmountFlags</span></a> flags,
123 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
124 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
125 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);
126 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GMount.html#g-mount-eject-finish" title="g_mount_eject_finish ()">g_mount_eject_finish</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
127 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
128 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);
129 <span class="returnvalue">void</span> <a class="link" href="GMount.html#g-mount-eject-with-operation" title="g_mount_eject_with_operation ()">g_mount_eject_with_operation</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
130 <a class="link" href="GMount.html#GMountUnmountFlags" title="enum GMountUnmountFlags"><span class="returnvalue">GMountUnmountFlags</span></a> flags,
131 <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="returnvalue">GMountOperation</span></a> *mount_operation,
132 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
133 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
134 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);
135 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GMount.html#g-mount-eject-with-operation-finish" title="g_mount_eject_with_operation_finish ()">g_mount_eject_with_operation_finish</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
136 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
137 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);
138 <span class="returnvalue">void</span> <a class="link" href="GMount.html#g-mount-guess-content-type" title="g_mount_guess_content_type ()">g_mount_guess_content_type</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
139 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> force_rescan,
140 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
141 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
142 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);
143 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> ** <a class="link" href="GMount.html#g-mount-guess-content-type-finish" title="g_mount_guess_content_type_finish ()">g_mount_guess_content_type_finish</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
144 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
145 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);
146 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> ** <a class="link" href="GMount.html#g-mount-guess-content-type-sync" title="g_mount_guess_content_type_sync ()">g_mount_guess_content_type_sync</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
147 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> force_rescan,
148 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
149 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);
150 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GMount.html#g-mount-is-shadowed" title="g_mount_is_shadowed ()">g_mount_is_shadowed</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
151 <span class="returnvalue">void</span> <a class="link" href="GMount.html#g-mount-shadow" title="g_mount_shadow ()">g_mount_shadow</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
152 <span class="returnvalue">void</span> <a class="link" href="GMount.html#g-mount-unshadow" title="g_mount_unshadow ()">g_mount_unshadow</a> (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);
155 <div class="refsect1" title="Object Hierarchy">
156 <a name="GMount.object-hierarchy"></a><h2>Object Hierarchy</h2>
157 <pre class="synopsis">
162 <div class="refsect1" title="Prerequisites">
163 <a name="GMount.prerequisites"></a><h2>Prerequisites</h2>
166 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>.</p>
168 <div class="refsect1" title="Signals">
169 <a name="GMount.signals"></a><h2>Signals</h2>
170 <pre class="synopsis">
171 "<a class="link" href="GMount.html#GMount-changed" title='The "changed" signal'>changed</a>" : Run Last
172 "<a class="link" href="GMount.html#GMount-pre-unmount" title='The "pre-unmount" signal'>pre-unmount</a>" : Run Last
173 "<a class="link" href="GMount.html#GMount-unmounted" title='The "unmounted" signal'>unmounted</a>" : Run Last
176 <div class="refsect1" title="Description">
177 <a name="GMount.description"></a><h2>Description</h2>
179 The <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> interface represents user-visible mounts. Note, when
180 porting from GnomeVFS, <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> is the moral equivalent of <a href="/usr/share/gtk-doc/html/gnome-vfs-2.0/gnome-vfs-2.0-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a>.
183 <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> is a "mounted" filesystem that you can access. Mounted is in
184 quotes because it's not the same as a unix mount, it might be a gvfs
185 mount, but you can still access the files on it if you use GIO. Might or
186 might not be related to a volume object.
189 Unmounting a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> instance is an asynchronous operation. For
190 more information about asynchronous operations, see <span class="type">GAsyncReady</span>
191 and <span class="type">GSimpleAsyncReady</span>. To unmount a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> instance, first call
192 <a class="link" href="GMount.html#g-mount-unmount-with-operation" title="g_mount_unmount_with_operation ()"><code class="function">g_mount_unmount_with_operation()</code></a> with (at least) the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> instance and a
193 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a>. The callback will be fired when the
194 operation has resolved (either with success or failure), and a
195 <span class="type">GAsyncReady</span> structure will be passed to the callback. That
196 callback should then call <a class="link" href="GMount.html#g-mount-unmount-with-operation-finish" title="g_mount_unmount_with_operation_finish ()"><code class="function">g_mount_unmount_with_operation_finish()</code></a> with the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>
197 and the <span class="type">GAsyncReady</span> data to see if the operation was completed
198 successfully. If an <em class="parameter"><code>error</code></em> is present when <a class="link" href="GMount.html#g-mount-unmount-with-operation-finish" title="g_mount_unmount_with_operation_finish ()"><code class="function">g_mount_unmount_with_operation_finish()</code></a>
199 is called, then it will be filled with any error information.</p>
201 <div class="refsect1" title="Details">
202 <a name="GMount.details"></a><h2>Details</h2>
203 <div class="refsect2" title="GMount">
204 <a name="GMount-struct"></a><h3>GMount</h3>
205 <pre class="programlisting">typedef struct _GMount GMount;</pre>
207 A handle to an object implementing the <a class="link" href="GMount.html#GMountIface" title="GMountIface"><span class="type">GMountIface</span></a> interface.</p>
210 <div class="refsect2" title="GMountIface">
211 <a name="GMountIface"></a><h3>GMountIface</h3>
212 <pre class="programlisting">typedef struct {
213 GTypeInterface g_iface;
217 void (* changed) (GMount *mount);
218 void (* unmounted) (GMount *mount);
222 GFile * (* get_root) (GMount *mount);
223 char * (* get_name) (GMount *mount);
224 GIcon * (* get_icon) (GMount *mount);
225 char * (* get_uuid) (GMount *mount);
226 GVolume * (* get_volume) (GMount *mount);
227 GDrive * (* get_drive) (GMount *mount);
228 gboolean (* can_unmount) (GMount *mount);
229 gboolean (* can_eject) (GMount *mount);
231 void (* unmount) (GMount *mount,
232 GMountUnmountFlags flags,
233 GCancellable *cancellable,
234 GAsyncReadyCallback callback,
236 gboolean (* unmount_finish) (GMount *mount,
237 GAsyncResult *result,
240 void (* eject) (GMount *mount,
241 GMountUnmountFlags flags,
242 GCancellable *cancellable,
243 GAsyncReadyCallback callback,
245 gboolean (* eject_finish) (GMount *mount,
246 GAsyncResult *result,
249 void (* remount) (GMount *mount,
250 GMountMountFlags flags,
251 GMountOperation *mount_operation,
252 GCancellable *cancellable,
253 GAsyncReadyCallback callback,
255 gboolean (* remount_finish) (GMount *mount,
256 GAsyncResult *result,
259 void (* guess_content_type) (GMount *mount,
260 gboolean force_rescan,
261 GCancellable *cancellable,
262 GAsyncReadyCallback callback,
264 gchar ** (* guess_content_type_finish) (GMount *mount,
265 GAsyncResult *result,
267 gchar ** (* guess_content_type_sync) (GMount *mount,
268 gboolean force_rescan,
269 GCancellable *cancellable,
272 /* Signal, not VFunc */
273 void (* pre_unmount) (GMount *mount);
275 void (* unmount_with_operation) (GMount *mount,
276 GMountUnmountFlags flags,
277 GMountOperation *mount_operation,
278 GCancellable *cancellable,
279 GAsyncReadyCallback callback,
281 gboolean (* unmount_with_operation_finish) (GMount *mount,
282 GAsyncResult *result,
285 void (* eject_with_operation) (GMount *mount,
286 GMountUnmountFlags flags,
287 GMountOperation *mount_operation,
288 GCancellable *cancellable,
289 GAsyncReadyCallback callback,
291 gboolean (* eject_with_operation_finish) (GMount *mount,
292 GAsyncResult *result,
294 GFile * (* get_default_location) (GMount *mount);
298 Interface for implementing operations for mounts.</p>
299 <div class="variablelist"><table border="0">
300 <col align="left" valign="top">
303 <td><p><span class="term"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GTypeInterface"><span class="type">GTypeInterface</span></a> <em class="structfield"><code><a name="GMountIface.g-iface"></a>g_iface</code></em>;</span></p></td>
304 <td> The parent interface.
308 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.changed"></a>changed</code></em> ()</span></p></td>
309 <td> Changed signal that is emitted when the mount's state has changed.
313 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.unmounted"></a>unmounted</code></em> ()</span></p></td>
314 <td> The unmounted signal that is emitted when the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> have been unmounted. If the recipient is holding references to the object they should release them so the object can be finalized.
318 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.get-root"></a>get_root</code></em> ()</span></p></td>
319 <td> Gets a <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> to the root directory of the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
323 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.get-name"></a>get_name</code></em> ()</span></p></td>
324 <td> Gets a string containing the name of the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
328 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.get-icon"></a>get_icon</code></em> ()</span></p></td>
329 <td> Gets a <a class="link" href="GIcon.html" title="GIcon"><span class="type">GIcon</span></a> for the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
333 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.get-uuid"></a>get_uuid</code></em> ()</span></p></td>
334 <td> Gets the UUID for the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>. The reference is typically based on the file system UUID for the mount in question and should be considered an opaque string. Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no UUID available.
338 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.get-volume"></a>get_volume</code></em> ()</span></p></td>
339 <td> Gets a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> the mount is located on. Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> is not associated with a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>.
343 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.get-drive"></a>get_drive</code></em> ()</span></p></td>
344 <td> Gets a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a> the volume of the mount is located on. Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> is not associated with a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a> or a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>. This is convenience method for getting the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> and using that to get the <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a>.
348 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.can-unmount"></a>can_unmount</code></em> ()</span></p></td>
349 <td> Checks if a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> can be unmounted.
353 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.can-eject"></a>can_eject</code></em> ()</span></p></td>
354 <td> Checks if a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> can be ejected.
358 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.unmount"></a>unmount</code></em> ()</span></p></td>
359 <td> Starts unmounting a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
363 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.unmount-finish"></a>unmount_finish</code></em> ()</span></p></td>
364 <td> Finishes an unmounting operation.
368 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.eject"></a>eject</code></em> ()</span></p></td>
369 <td> Starts ejecting a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
373 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.eject-finish"></a>eject_finish</code></em> ()</span></p></td>
374 <td> Finishes an eject operation.
378 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.remount"></a>remount</code></em> ()</span></p></td>
379 <td> Starts remounting a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
383 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.remount-finish"></a>remount_finish</code></em> ()</span></p></td>
384 <td> Finishes a remounting operation.
388 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.guess-content-type"></a>guess_content_type</code></em> ()</span></p></td>
389 <td> Starts guessing the type of the content of a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
390 See <a class="link" href="GMount.html#g-mount-guess-content-type" title="g_mount_guess_content_type ()"><code class="function">g_mount_guess_content_type()</code></a> for more information on content
391 type guessing. This operation was added in 2.18.
395 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.guess-content-type-finish"></a>guess_content_type_finish</code></em> ()</span></p></td>
396 <td> Finishes a contenet type guessing operation. Added in 2.18.
400 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.guess-content-type-sync"></a>guess_content_type_sync</code></em> ()</span></p></td>
401 <td> Synchronous variant of <em class="parameter"><code>guess_content_type</code></em>. Added in 2.18
405 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.pre-unmount"></a>pre_unmount</code></em> ()</span></p></td>
406 <td> The pre_unmout signal that is emitted when the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> will soon be emitted. If the recipient is somehow holding the mount open by keeping an open file on it it should close the file.
410 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.unmount-with-operation"></a>unmount_with_operation</code></em> ()</span></p></td>
411 <td> Starts unmounting a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> using a <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a>. Since 2.22.
415 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.unmount-with-operation-finish"></a>unmount_with_operation_finish</code></em> ()</span></p></td>
416 <td> Finishes an unmounting operation using a <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a>. Since 2.22.
420 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.eject-with-operation"></a>eject_with_operation</code></em> ()</span></p></td>
421 <td> Starts ejecting a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> using a <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a>. Since 2.22.
425 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.eject-with-operation-finish"></a>eject_with_operation_finish</code></em> ()</span></p></td>
426 <td> Finishes an eject operation using a <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a>. Since 2.22.
430 <td><p><span class="term"><em class="structfield"><code><a name="GMountIface.get-default-location"></a>get_default_location</code></em> ()</span></p></td>
431 <td> Gets a <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> indication a start location that can be use as the entry point for this mount. Since 2.24.
438 <div class="refsect2" title="g_mount_get_name ()">
439 <a name="g-mount-get-name"></a><h3>g_mount_get_name ()</h3>
440 <pre class="programlisting"><span class="returnvalue">char</span> * g_mount_get_name (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
442 Gets the name of <em class="parameter"><code>mount</code></em>.</p>
443 <div class="variablelist"><table border="0">
444 <col align="left" valign="top">
447 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
448 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
452 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
453 <td> the name for the given <em class="parameter"><code>mount</code></em>.
454 The returned string should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>
455 when no longer needed.
462 <div class="refsect2" title="g_mount_get_uuid ()">
463 <a name="g-mount-get-uuid"></a><h3>g_mount_get_uuid ()</h3>
464 <pre class="programlisting"><span class="returnvalue">char</span> * g_mount_get_uuid (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
466 Gets the UUID for the <em class="parameter"><code>mount</code></em>. The reference is typically based on
467 the file system UUID for the mount in question and should be
468 considered an opaque string. Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no UUID
470 <div class="variablelist"><table border="0">
471 <col align="left" valign="top">
474 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
475 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
479 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
480 <td> the UUID for <em class="parameter"><code>mount</code></em> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no UUID can be computed.
481 The returned string should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>
482 when no longer needed.
489 <div class="refsect2" title="g_mount_get_icon ()">
490 <a name="g-mount-get-icon"></a><h3>g_mount_get_icon ()</h3>
491 <pre class="programlisting"><a class="link" href="GIcon.html" title="GIcon"><span class="returnvalue">GIcon</span></a> * g_mount_get_icon (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
493 Gets the icon for <em class="parameter"><code>mount</code></em>.</p>
494 <div class="variablelist"><table border="0">
495 <col align="left" valign="top">
498 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
499 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
503 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
504 <td> a <a class="link" href="GIcon.html" title="GIcon"><span class="type">GIcon</span></a>.
505 The returned object should be unreffed with
506 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed.
513 <div class="refsect2" title="g_mount_get_drive ()">
514 <a name="g-mount-get-drive"></a><h3>g_mount_get_drive ()</h3>
515 <pre class="programlisting"><a class="link" href="GDrive.html" title="GDrive"><span class="returnvalue">GDrive</span></a> * g_mount_get_drive (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
517 Gets the drive for the <em class="parameter"><code>mount</code></em>.
520 This is a convenience method for getting the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> and then
521 using that object to get the <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a>.</p>
522 <div class="variablelist"><table border="0">
523 <col align="left" valign="top">
526 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
527 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
531 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
532 <td> a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>mount</code></em> is not associated with a volume or a drive.
533 The returned object should be unreffed with
534 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed.
541 <div class="refsect2" title="g_mount_get_root ()">
542 <a name="g-mount-get-root"></a><h3>g_mount_get_root ()</h3>
543 <pre class="programlisting"><a class="link" href="GFile.html" title="GFile"><span class="returnvalue">GFile</span></a> * g_mount_get_root (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
545 Gets the root directory on <em class="parameter"><code>mount</code></em>.</p>
546 <div class="variablelist"><table border="0">
547 <col align="left" valign="top">
550 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
551 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
555 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
556 <td> a <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>.
557 The returned object should be unreffed with
558 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed.
565 <div class="refsect2" title="g_mount_get_volume ()">
566 <a name="g-mount-get-volume"></a><h3>g_mount_get_volume ()</h3>
567 <pre class="programlisting"><a class="link" href="GVolume.html" title="GVolume"><span class="returnvalue">GVolume</span></a> * g_mount_get_volume (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
569 Gets the volume for the <em class="parameter"><code>mount</code></em>.</p>
570 <div class="variablelist"><table border="0">
571 <col align="left" valign="top">
574 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
575 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
579 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
580 <td> a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>mount</code></em> is not associated with a volume.
581 The returned object should be unreffed with
582 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed.
589 <div class="refsect2" title="g_mount_get_default_location ()">
590 <a name="g-mount-get-default-location"></a><h3>g_mount_get_default_location ()</h3>
591 <pre class="programlisting"><a class="link" href="GFile.html" title="GFile"><span class="returnvalue">GFile</span></a> * g_mount_get_default_location (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
593 Gets the default location of <em class="parameter"><code>mount</code></em>. The default location of the given
594 <em class="parameter"><code>mount</code></em> is a path that reflects the main entry point for the user (e.g.
595 the home directory, or the root of the volume).</p>
596 <div class="variablelist"><table border="0">
597 <col align="left" valign="top">
600 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
601 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
605 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
606 <td> a <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>.
607 The returned object should be unreffed with
608 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed.
615 <div class="refsect2" title="g_mount_can_unmount ()">
616 <a name="g-mount-can-unmount"></a><h3>g_mount_can_unmount ()</h3>
617 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_mount_can_unmount (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
619 Checks if <em class="parameter"><code>mount</code></em> can be mounted.</p>
620 <div class="variablelist"><table border="0">
621 <col align="left" valign="top">
624 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
625 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
629 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
630 <td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <em class="parameter"><code>mount</code></em> can be unmounted.
637 <div class="refsect2" title="enum GMountMountFlags">
638 <a name="GMountMountFlags"></a><h3>enum GMountMountFlags</h3>
639 <pre class="programlisting">typedef enum {
640 G_MOUNT_MOUNT_NONE = 0
644 Flags used when mounting a mount.</p>
645 <div class="variablelist"><table border="0">
646 <col align="left" valign="top">
648 <td><p><a name="G-MOUNT-MOUNT-NONE:CAPS"></a><span class="term"><code class="literal">G_MOUNT_MOUNT_NONE</code></span></p></td>
655 <div class="refsect2" title="enum GMountUnmountFlags">
656 <a name="GMountUnmountFlags"></a><h3>enum GMountUnmountFlags</h3>
657 <pre class="programlisting">typedef enum {
658 G_MOUNT_UNMOUNT_NONE = 0,
659 G_MOUNT_UNMOUNT_FORCE = (1 << 0)
660 } GMountUnmountFlags;
663 Flags used when an unmounting a mount.</p>
664 <div class="variablelist"><table border="0">
665 <col align="left" valign="top">
668 <td><p><a name="G-MOUNT-UNMOUNT-NONE:CAPS"></a><span class="term"><code class="literal">G_MOUNT_UNMOUNT_NONE</code></span></p></td>
673 <td><p><a name="G-MOUNT-UNMOUNT-FORCE:CAPS"></a><span class="term"><code class="literal">G_MOUNT_UNMOUNT_FORCE</code></span></p></td>
674 <td> Unmount even if there are outstanding
675 file operations on the mount.
682 <div class="refsect2" title="g_mount_unmount ()">
683 <a name="g-mount-unmount"></a><h3>g_mount_unmount ()</h3>
684 <pre class="programlisting"><span class="returnvalue">void</span> g_mount_unmount (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
685 <a class="link" href="GMount.html#GMountUnmountFlags" title="enum GMountUnmountFlags"><span class="returnvalue">GMountUnmountFlags</span></a> flags,
686 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
687 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
688 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);</pre>
689 <div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
690 <h3 class="title">Warning</h3>
691 <p><code class="literal">g_mount_unmount</code> has been deprecated since version 2.22 and should not be used in newly-written code. Use <a class="link" href="GMount.html#g-mount-unmount-with-operation" title="g_mount_unmount_with_operation ()"><code class="function">g_mount_unmount_with_operation()</code></a> instead.</p>
694 Unmounts a mount. This is an asynchronous operation, and is
695 finished by calling <a class="link" href="GMount.html#g-mount-unmount-finish" title="g_mount_unmount_finish ()"><code class="function">g_mount_unmount_finish()</code></a> with the <em class="parameter"><code>mount</code></em>
696 and <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> data returned in the <em class="parameter"><code>callback</code></em>.</p>
697 <div class="variablelist"><table border="0">
698 <col align="left" valign="top">
701 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
702 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
706 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
707 <td> flags affecting the operation
711 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
712 <td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
716 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
717 <td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
721 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
722 <td> user data passed to <em class="parameter"><code>callback</code></em>.
729 <div class="refsect2" title="g_mount_unmount_finish ()">
730 <a name="g-mount-unmount-finish"></a><h3>g_mount_unmount_finish ()</h3>
731 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_mount_unmount_finish (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
732 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
733 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);</pre>
734 <div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
735 <h3 class="title">Warning</h3>
736 <p><code class="literal">g_mount_unmount_finish</code> has been deprecated since version 2.22 and should not be used in newly-written code. Use <a class="link" href="GMount.html#g-mount-unmount-with-operation-finish" title="g_mount_unmount_with_operation_finish ()"><code class="function">g_mount_unmount_with_operation_finish()</code></a> instead.</p>
739 Finishes unmounting a mount. If any errors occurred during the operation,
740 <em class="parameter"><code>error</code></em> will be set to contain the errors and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned.</p>
741 <div class="variablelist"><table border="0">
742 <col align="left" valign="top">
745 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
746 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
750 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
751 <td> a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.
755 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
756 <td> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occuring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
761 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
762 <td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the mount was successfully unmounted. <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.
770 <div class="refsect2" title="g_mount_unmount_with_operation ()">
771 <a name="g-mount-unmount-with-operation"></a><h3>g_mount_unmount_with_operation ()</h3>
772 <pre class="programlisting"><span class="returnvalue">void</span> g_mount_unmount_with_operation (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
773 <a class="link" href="GMount.html#GMountUnmountFlags" title="enum GMountUnmountFlags"><span class="returnvalue">GMountUnmountFlags</span></a> flags,
774 <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="returnvalue">GMountOperation</span></a> *mount_operation,
775 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
776 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
777 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);</pre>
779 Unmounts a mount. This is an asynchronous operation, and is
780 finished by calling <a class="link" href="GMount.html#g-mount-unmount-with-operation-finish" title="g_mount_unmount_with_operation_finish ()"><code class="function">g_mount_unmount_with_operation_finish()</code></a> with the <em class="parameter"><code>mount</code></em>
781 and <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> data returned in the <em class="parameter"><code>callback</code></em>.</p>
782 <div class="variablelist"><table border="0">
783 <col align="left" valign="top">
786 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
787 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
791 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
792 <td> flags affecting the operation
796 <td><p><span class="term"><em class="parameter"><code>mount_operation</code></em> :</span></p></td>
797 <td> a <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to avoid user interaction.
801 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
802 <td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
806 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
807 <td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
811 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
812 <td> user data passed to <em class="parameter"><code>callback</code></em>.
817 <p class="since">Since 2.22</p>
820 <div class="refsect2" title="g_mount_unmount_with_operation_finish ()">
821 <a name="g-mount-unmount-with-operation-finish"></a><h3>g_mount_unmount_with_operation_finish ()</h3>
822 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_mount_unmount_with_operation_finish
823 (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
824 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
825 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);</pre>
827 Finishes unmounting a mount. If any errors occurred during the operation,
828 <em class="parameter"><code>error</code></em> will be set to contain the errors and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned.</p>
829 <div class="variablelist"><table border="0">
830 <col align="left" valign="top">
833 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
834 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
838 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
839 <td> a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.
843 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
844 <td> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occuring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
849 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
850 <td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the mount was successfully unmounted. <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.
856 <p class="since">Since 2.22</p>
859 <div class="refsect2" title="g_mount_remount ()">
860 <a name="g-mount-remount"></a><h3>g_mount_remount ()</h3>
861 <pre class="programlisting"><span class="returnvalue">void</span> g_mount_remount (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
862 <a class="link" href="GMount.html#GMountMountFlags" title="enum GMountMountFlags"><span class="returnvalue">GMountMountFlags</span></a> flags,
863 <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="returnvalue">GMountOperation</span></a> *mount_operation,
864 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
865 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
866 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);</pre>
868 Remounts a mount. This is an asynchronous operation, and is
869 finished by calling <a class="link" href="GMount.html#g-mount-remount-finish" title="g_mount_remount_finish ()"><code class="function">g_mount_remount_finish()</code></a> with the <em class="parameter"><code>mount</code></em>
870 and <a href="GAsyncResult.html"><span class="type">GAsyncResults</span></a> data returned in the <em class="parameter"><code>callback</code></em>.
873 Remounting is useful when some setting affecting the operation
874 of the volume has been changed, as these may need a remount to
875 take affect. While this is semantically equivalent with unmounting
876 and then remounting not all backends might need to actually be
878 <div class="variablelist"><table border="0">
879 <col align="left" valign="top">
882 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
883 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
887 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
888 <td> flags affecting the operation
892 <td><p><span class="term"><em class="parameter"><code>mount_operation</code></em> :</span></p></td>
893 <td> a <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to avoid user interaction.
897 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
898 <td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
902 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
903 <td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
907 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
908 <td> user data passed to <em class="parameter"><code>callback</code></em>.
915 <div class="refsect2" title="g_mount_remount_finish ()">
916 <a name="g-mount-remount-finish"></a><h3>g_mount_remount_finish ()</h3>
917 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_mount_remount_finish (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
918 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
919 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);</pre>
921 Finishes remounting a mount. If any errors occurred during the operation,
922 <em class="parameter"><code>error</code></em> will be set to contain the errors and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned.</p>
923 <div class="variablelist"><table border="0">
924 <col align="left" valign="top">
927 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
928 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
932 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
933 <td> a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.
937 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
938 <td> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occuring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
943 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
944 <td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the mount was successfully remounted. <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.
951 <div class="refsect2" title="g_mount_can_eject ()">
952 <a name="g-mount-can-eject"></a><h3>g_mount_can_eject ()</h3>
953 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_mount_can_eject (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
955 Checks if <em class="parameter"><code>mount</code></em> can be eject.</p>
956 <div class="variablelist"><table border="0">
957 <col align="left" valign="top">
960 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
961 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
965 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
966 <td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <em class="parameter"><code>mount</code></em> can be ejected.
973 <div class="refsect2" title="g_mount_eject ()">
974 <a name="g-mount-eject"></a><h3>g_mount_eject ()</h3>
975 <pre class="programlisting"><span class="returnvalue">void</span> g_mount_eject (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
976 <a class="link" href="GMount.html#GMountUnmountFlags" title="enum GMountUnmountFlags"><span class="returnvalue">GMountUnmountFlags</span></a> flags,
977 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
978 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
979 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);</pre>
980 <div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
981 <h3 class="title">Warning</h3>
982 <p><code class="literal">g_mount_eject</code> has been deprecated since version 2.22 and should not be used in newly-written code. Use <a class="link" href="GMount.html#g-mount-eject-with-operation" title="g_mount_eject_with_operation ()"><code class="function">g_mount_eject_with_operation()</code></a> instead.</p>
985 Ejects a mount. This is an asynchronous operation, and is
986 finished by calling <a class="link" href="GMount.html#g-mount-eject-finish" title="g_mount_eject_finish ()"><code class="function">g_mount_eject_finish()</code></a> with the <em class="parameter"><code>mount</code></em>
987 and <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> data returned in the <em class="parameter"><code>callback</code></em>.</p>
988 <div class="variablelist"><table border="0">
989 <col align="left" valign="top">
992 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
993 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
997 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
998 <td> flags affecting the unmount if required for eject
1002 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1003 <td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
1007 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1008 <td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
1012 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1013 <td> user data passed to <em class="parameter"><code>callback</code></em>.
1020 <div class="refsect2" title="g_mount_eject_finish ()">
1021 <a name="g-mount-eject-finish"></a><h3>g_mount_eject_finish ()</h3>
1022 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_mount_eject_finish (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
1023 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
1024 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);</pre>
1025 <div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1026 <h3 class="title">Warning</h3>
1027 <p><code class="literal">g_mount_eject_finish</code> has been deprecated since version 2.22 and should not be used in newly-written code. Use <a class="link" href="GMount.html#g-mount-eject-with-operation-finish" title="g_mount_eject_with_operation_finish ()"><code class="function">g_mount_eject_with_operation_finish()</code></a> instead.</p>
1030 Finishes ejecting a mount. If any errors occurred during the operation,
1031 <em class="parameter"><code>error</code></em> will be set to contain the errors and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned.</p>
1032 <div class="variablelist"><table border="0">
1033 <col align="left" valign="top">
1036 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1037 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
1041 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1042 <td> a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.
1046 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1047 <td> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occuring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
1052 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1053 <td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the mount was successfully ejected. <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.
1061 <div class="refsect2" title="g_mount_eject_with_operation ()">
1062 <a name="g-mount-eject-with-operation"></a><h3>g_mount_eject_with_operation ()</h3>
1063 <pre class="programlisting"><span class="returnvalue">void</span> g_mount_eject_with_operation (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
1064 <a class="link" href="GMount.html#GMountUnmountFlags" title="enum GMountUnmountFlags"><span class="returnvalue">GMountUnmountFlags</span></a> flags,
1065 <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="returnvalue">GMountOperation</span></a> *mount_operation,
1066 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
1067 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
1068 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);</pre>
1070 Ejects a mount. This is an asynchronous operation, and is
1071 finished by calling <a class="link" href="GMount.html#g-mount-eject-with-operation-finish" title="g_mount_eject_with_operation_finish ()"><code class="function">g_mount_eject_with_operation_finish()</code></a> with the <em class="parameter"><code>mount</code></em>
1072 and <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> data returned in the <em class="parameter"><code>callback</code></em>.</p>
1073 <div class="variablelist"><table border="0">
1074 <col align="left" valign="top">
1077 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1078 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
1082 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
1083 <td> flags affecting the unmount if required for eject
1087 <td><p><span class="term"><em class="parameter"><code>mount_operation</code></em> :</span></p></td>
1088 <td> a <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to avoid user interaction.
1092 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1093 <td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
1097 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1098 <td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
1102 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1103 <td> user data passed to <em class="parameter"><code>callback</code></em>.
1108 <p class="since">Since 2.22</p>
1111 <div class="refsect2" title="g_mount_eject_with_operation_finish ()">
1112 <a name="g-mount-eject-with-operation-finish"></a><h3>g_mount_eject_with_operation_finish ()</h3>
1113 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_mount_eject_with_operation_finish (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
1114 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
1115 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);</pre>
1117 Finishes ejecting a mount. If any errors occurred during the operation,
1118 <em class="parameter"><code>error</code></em> will be set to contain the errors and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned.</p>
1119 <div class="variablelist"><table border="0">
1120 <col align="left" valign="top">
1123 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1124 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
1128 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1129 <td> a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.
1133 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1134 <td> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occuring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
1139 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1140 <td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the mount was successfully ejected. <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.
1146 <p class="since">Since 2.22</p>
1149 <div class="refsect2" title="g_mount_guess_content_type ()">
1150 <a name="g-mount-guess-content-type"></a><h3>g_mount_guess_content_type ()</h3>
1151 <pre class="programlisting"><span class="returnvalue">void</span> g_mount_guess_content_type (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
1152 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> force_rescan,
1153 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
1154 <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="returnvalue">GAsyncReadyCallback</span></a> callback,
1155 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> user_data);</pre>
1157 Tries to guess the type of content stored on <em class="parameter"><code>mount</code></em>. Returns one or
1158 more textual identifiers of well-known content types (typically
1159 prefixed with "x-content/"), e.g. x-content/image-dcf for camera
1160 memory cards. See the <a class="ulink" href="http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec" target="_top">shared-mime-info</a>
1161 specification for more on x-content types.
1164 This is an asynchronous operation (see
1165 <a class="link" href="GMount.html#g-mount-guess-content-type-sync" title="g_mount_guess_content_type_sync ()"><code class="function">g_mount_guess_content_type_sync()</code></a> for the synchronous version), and
1166 is finished by calling <a class="link" href="GMount.html#g-mount-guess-content-type-finish" title="g_mount_guess_content_type_finish ()"><code class="function">g_mount_guess_content_type_finish()</code></a> with the
1167 <em class="parameter"><code>mount</code></em> and <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> data returned in the <em class="parameter"><code>callback</code></em>.</p>
1168 <div class="variablelist"><table border="0">
1169 <col align="left" valign="top">
1172 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1173 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>
1177 <td><p><span class="term"><em class="parameter"><code>force_rescan</code></em> :</span></p></td>
1178 <td> Whether to force a rescan of the content.
1179 Otherwise a cached result will be used if available
1183 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1184 <td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore
1188 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1189 <td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a>
1193 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1194 <td> user data passed to <em class="parameter"><code>callback</code></em>
1199 <p class="since">Since 2.18</p>
1202 <div class="refsect2" title="g_mount_guess_content_type_finish ()">
1203 <a name="g-mount-guess-content-type-finish"></a><h3>g_mount_guess_content_type_finish ()</h3>
1204 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> ** g_mount_guess_content_type_finish (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
1205 <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="returnvalue">GAsyncResult</span></a> *result,
1206 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);</pre>
1208 Finishes guessing content types of <em class="parameter"><code>mount</code></em>. If any errors occured
1209 during the operation, <em class="parameter"><code>error</code></em> will be set to contain the errors and
1210 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned. In particular, you may get an
1211 <a class="link" href="gio-GIOError.html#G-IO-ERROR-NOT-SUPPORTED:CAPS"><code class="literal">G_IO_ERROR_NOT_SUPPORTED</code></a> if the mount does not support content
1213 <div class="variablelist"><table border="0">
1214 <col align="left" valign="top">
1217 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1218 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>
1222 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1223 <td> a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>
1227 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1228 <td> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occuring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
1233 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1234 <td> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of content types or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error.
1235 Caller should free this array with <a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> when done with it.
1241 <p class="since">Since 2.18</p>
1244 <div class="refsect2" title="g_mount_guess_content_type_sync ()">
1245 <a name="g-mount-guess-content-type-sync"></a><h3>g_mount_guess_content_type_sync ()</h3>
1246 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> ** g_mount_guess_content_type_sync (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount,
1247 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> force_rescan,
1248 <a class="link" href="GCancellable.html" title="GCancellable"><span class="returnvalue">GCancellable</span></a> *cancellable,
1249 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> **error);</pre>
1251 Tries to guess the type of content stored on <em class="parameter"><code>mount</code></em>. Returns one or
1252 more textual identifiers of well-known content types (typically
1253 prefixed with "x-content/"), e.g. x-content/image-dcf for camera
1254 memory cards. See the <a class="ulink" href="http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec" target="_top">shared-mime-info</a>
1255 specification for more on x-content types.
1258 This is an synchronous operation and as such may block doing IO;
1259 see <a class="link" href="GMount.html#g-mount-guess-content-type" title="g_mount_guess_content_type ()"><code class="function">g_mount_guess_content_type()</code></a> for the asynchronous version.</p>
1260 <div class="variablelist"><table border="0">
1261 <col align="left" valign="top">
1264 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1265 <td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>
1269 <td><p><span class="term"><em class="parameter"><code>force_rescan</code></em> :</span></p></td>
1270 <td> Whether to force a rescan of the content.
1271 Otherwise a cached result will be used if available
1275 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1276 <td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore
1280 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1281 <td> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occuring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
1286 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1287 <td> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of content types or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error.
1288 Caller should free this array with <a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> when done with it.
1294 <p class="since">Since 2.18</p>
1297 <div class="refsect2" title="g_mount_is_shadowed ()">
1298 <a name="g-mount-is-shadowed"></a><h3>g_mount_is_shadowed ()</h3>
1299 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_mount_is_shadowed (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
1301 Determines if <em class="parameter"><code>mount</code></em> is shadowed. Applications or libraries should
1302 avoid displaying <em class="parameter"><code>mount</code></em> in the user interface if it is shadowed.
1305 A mount is said to be shadowed if there exists one or more user
1306 visible objects (currently <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> objects) with a root that is
1307 inside the root of <em class="parameter"><code>mount</code></em>.
1310 One application of shadow mounts is when exposing a single file
1311 system that is used to address several logical volumes. In this
1312 situation, a <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a> implementation would create two
1313 <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> objects (for example, one for the camera functionality of
1314 the device and one for a SD card reader on the device) with
1315 activation URIs <code class="literal">gphoto2://[usb:001,002]/store1/</code>
1316 and <code class="literal">gphoto2://[usb:001,002]/store2/</code>. When the
1317 underlying mount (with root
1318 <code class="literal">gphoto2://[usb:001,002]/</code>) is mounted, said
1319 <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a> implementation would create two <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> objects
1320 (each with their root matching the corresponding volume activation
1321 root) that would shadow the original mount.
1324 The proxy monitor in GVfs 2.26 and later, automatically creates and
1325 manage shadow mounts (and shadows the underlying mount) if the
1326 activation root on a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> is set.</p>
1327 <div class="variablelist"><table border="0">
1328 <col align="left" valign="top">
1331 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1332 <td> A <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
1336 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1337 <td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>mount</code></em> is shadowed.
1343 <p class="since">Since 2.20</p>
1346 <div class="refsect2" title="g_mount_shadow ()">
1347 <a name="g-mount-shadow"></a><h3>g_mount_shadow ()</h3>
1348 <pre class="programlisting"><span class="returnvalue">void</span> g_mount_shadow (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
1350 Increments the shadow count on <em class="parameter"><code>mount</code></em>. Usually used by
1351 <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a> implementations when creating a shadow mount for
1352 <em class="parameter"><code>mount</code></em>, see <a class="link" href="GMount.html#g-mount-is-shadowed" title="g_mount_is_shadowed ()"><code class="function">g_mount_is_shadowed()</code></a> for more information. The caller
1353 will need to emit the <a class="link" href="GMount.html#GMount-changed" title='The "changed" signal'><span class="type">"changed"</span></a> signal on <em class="parameter"><code>mount</code></em> manually.</p>
1354 <div class="variablelist"><table border="0">
1355 <col align="left" valign="top">
1357 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1358 <td> A <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
1362 <p class="since">Since 2.20</p>
1365 <div class="refsect2" title="g_mount_unshadow ()">
1366 <a name="g-mount-unshadow"></a><h3>g_mount_unshadow ()</h3>
1367 <pre class="programlisting"><span class="returnvalue">void</span> g_mount_unshadow (<a class="link" href="GMount.html" title="GMount"><span class="returnvalue">GMount</span></a> *mount);</pre>
1369 Decrements the shadow count on <em class="parameter"><code>mount</code></em>. Usually used by
1370 <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a> implementations when destroying a shadow mount for
1371 <em class="parameter"><code>mount</code></em>, see <a class="link" href="GMount.html#g-mount-is-shadowed" title="g_mount_is_shadowed ()"><code class="function">g_mount_is_shadowed()</code></a> for more information. The caller
1372 will need to emit the <a class="link" href="GMount.html#GMount-changed" title='The "changed" signal'><span class="type">"changed"</span></a> signal on <em class="parameter"><code>mount</code></em> manually.</p>
1373 <div class="variablelist"><table border="0">
1374 <col align="left" valign="top">
1376 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1377 <td> A <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
1381 <p class="since">Since 2.20</p>
1384 <div class="refsect1" title="Signal Details">
1385 <a name="GMount.signal-details"></a><h2>Signal Details</h2>
1386 <div class="refsect2" title='The "changed" signal'>
1387 <a name="GMount-changed"></a><h3>The <code class="literal">"changed"</code> signal</h3>
1388 <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> *mount,
1389 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre>
1391 Emitted when the mount has been changed.</p>
1392 <div class="variablelist"><table border="0">
1393 <col align="left" valign="top">
1396 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1397 <td> the object on which the signal is emitted
1401 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1402 <td>user data set when the signal handler was connected.</td>
1408 <div class="refsect2" title='The "pre-unmount" signal'>
1409 <a name="GMount-pre-unmount"></a><h3>The <code class="literal">"pre-unmount"</code> signal</h3>
1410 <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> *mount,
1411 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre>
1413 This signal is emitted when the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> is about to be
1415 <div class="variablelist"><table border="0">
1416 <col align="left" valign="top">
1419 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1420 <td> the object on which the signal is emitted
1424 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1425 <td>user data set when the signal handler was connected.</td>
1429 <p class="since">Since 2.22</p>
1432 <div class="refsect2" title='The "unmounted" signal'>
1433 <a name="GMount-unmounted"></a><h3>The <code class="literal">"unmounted"</code> signal</h3>
1434 <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> *mount,
1435 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre>
1437 This signal is emitted when the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> have been
1438 unmounted. If the recipient is holding references to the
1439 object they should release them so the object can be
1441 <div class="variablelist"><table border="0">
1442 <col align="left" valign="top">
1445 <td><p><span class="term"><em class="parameter"><code>mount</code></em> :</span></p></td>
1446 <td> the object on which the signal is emitted
1450 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1451 <td>user data set when the signal handler was connected.</td>
1458 <div class="footer">
1460 Generated by GTK-Doc V1.13</div>