4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>Mount Points</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
<link rel="start" href="index.html" title="exo Reference Manual">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
7
<link rel="home" href="index.html" title="exo Reference Manual">
8
8
<link rel="up" href="exo-miscelleanous.html" title="Part VI. Miscelleanous">
9
9
<link rel="prev" href="exo-MD5-functions.html" title="MD5 Functions">
10
10
<link rel="next" href="exo-String-Utility-Functions.html" title="String Utility Functions">
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="exo-overview.html" title="Part I. Overview">
14
14
<link rel="part" href="exo-toolbars.html" title="Part II. Editable Toolbars">
30
30
<th width="100%" align="center">exo Reference Manual</th>
31
31
<td><a accesskey="n" href="exo-String-Utility-Functions.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
33
<tr><td colspan="5" class="shortcuts"><nobr><a href="#exo-Mount-Points.synopsis" class="shortcut">Top</a>
35
<a href="#exo-Mount-Points.description" class="shortcut">Description</a></nobr></td></tr>
33
<tr><td colspan="5" class="shortcuts">
34
<a href="#exo-Mount-Points.synopsis" class="shortcut">Top</a>
36
<a href="#exo-Mount-Points.description" class="shortcut">Description</a>
37
39
<div class="refentry" lang="en">
38
40
<a name="exo-Mount-Points"></a><div class="titlepage"></div>
52
54
enum <a class="link" href="exo-Mount-Points.html#ExoMountPointFlags" title="enum ExoMountPointFlags">ExoMountPointFlags</a>;
53
55
<a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint">ExoMountPoint</a>;
54
<a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint">ExoMountPoint</a>* <a class="link" href="exo-Mount-Points.html#exo-mount-point-dup" title="exo_mount_point_dup ()">exo_mount_point_dup</a> (const <a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint">ExoMountPoint</a> *mount_point);
56
<a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint">ExoMountPoint</a> * <a class="link" href="exo-Mount-Points.html#exo-mount-point-dup" title="exo_mount_point_dup ()">exo_mount_point_dup</a> (const <a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint">ExoMountPoint</a> *mount_point);
55
57
void <a class="link" href="exo-Mount-Points.html#exo-mount-point-free" title="exo_mount_point_free ()">exo_mount_point_free</a> (<a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint">ExoMountPoint</a> *mount_point);
56
58
enum <a class="link" href="exo-Mount-Points.html#ExoMountPointMatchMask" title="enum ExoMountPointMatchMask">ExoMountPointMatchMask</a>;
58
href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
59
>GSList</a>* <a class="link" href="exo-Mount-Points.html#exo-mount-point-list-matched" title="exo_mount_point_list_matched ()">exo_mount_point_list_matched</a> (<a class="link" href="exo-Mount-Points.html#ExoMountPointMatchMask" title="enum ExoMountPointMatchMask">ExoMountPointMatchMask</a> mask,
61
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
64
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
67
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
70
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
59
GSList * <a class="link" href="exo-Mount-Points.html#exo-mount-point-list-matched" title="exo_mount_point_list_matched ()">exo_mount_point_list_matched</a> (<a class="link" href="exo-Mount-Points.html#ExoMountPointMatchMask" title="enum ExoMountPointMatchMask">ExoMountPointMatchMask</a> mask,
72
64
#define <a class="link" href="exo-Mount-Points.html#exo-mount-point-list-active" title="exo_mount_point_list_active()">exo_mount_point_list_active</a> (error)
73
65
#define <a class="link" href="exo-Mount-Points.html#exo-mount-point-list-configured" title="exo_mount_point_list_configured()">exo_mount_point_list_configured</a> (error)
95
87
Identifies options of <a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint"><span class="type">ExoMountPoint</span></a>s.</p>
99
90
<div class="variablelist"><table border="0">
100
91
<col align="left" valign="top">
103
<p class="since">Since 0.3.1.13
94
<p class="since">Since 0.3.1.13</p>
107
97
<div class="refsect2" lang="en">
132
<td><p><span class="term"><a
133
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
134
>gchar</a> *<em class="structfield"><code>device</code></em>;</span></p></td>
122
<td><p><span class="term">gchar *<em class="structfield"><code>device</code></em>;</span></p></td>
135
123
<td>the device file path.
139
<td><p><span class="term"><a
140
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
141
>gchar</a> *<em class="structfield"><code>folder</code></em>;</span></p></td>
127
<td><p><span class="term">gchar *<em class="structfield"><code>folder</code></em>;</span></p></td>
142
128
<td>the folder where the device is mounted (or may be mounted).
146
<td><p><span class="term"><a
147
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
148
>gchar</a> *<em class="structfield"><code>fstype</code></em>;</span></p></td>
132
<td><p><span class="term">gchar *<em class="structfield"><code>fstype</code></em>;</span></p></td>
149
133
<td>the type of the file system used for the device.
157
140
<div class="refsect2" lang="en">
158
141
<a name="exo-mount-point-dup"></a><h3>exo_mount_point_dup ()</h3>
159
<pre class="programlisting"><a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint">ExoMountPoint</a>* exo_mount_point_dup (const <a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint">ExoMountPoint</a> *mount_point);</pre>
142
<pre class="programlisting"><a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint">ExoMountPoint</a> * exo_mount_point_dup (const <a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint">ExoMountPoint</a> *mount_point);</pre>
161
144
Duplicates the specified <em class="parameter"><code>mount_point</code></em> and returns
162
the duplicate. If <em class="parameter"><code>mount_point</code></em> is <a
163
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
164
><code class="literal">NULL</code></a>, this simply
166
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
167
><code class="literal">NULL</code></a>.
145
the duplicate. If <em class="parameter"><code>mount_point</code></em> is <code class="literal">NULL</code>, this simply
146
returns <code class="literal">NULL</code>.
170
149
The caller is responsible to free the returned mount
171
150
point using <a class="link" href="exo-Mount-Points.html#exo-mount-point-free" title="exo_mount_point_free ()"><code class="function">exo_mount_point_free()</code></a> when no longer
176
154
<div class="variablelist"><table border="0">
177
155
<col align="left" valign="top">
198
175
<pre class="programlisting">void exo_mount_point_free (<a class="link" href="exo-Mount-Points.html#ExoMountPoint" title="ExoMountPoint">ExoMountPoint</a> *mount_point);</pre>
200
177
Frees the resources allocated to the specified <em class="parameter"><code>mount_point</code></em>.
201
If <em class="parameter"><code>mount_point</code></em> is <a
202
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
203
><code class="literal">NULL</code></a>, this function does nothing.</p>
178
If <em class="parameter"><code>mount_point</code></em> is <code class="literal">NULL</code>, this function does nothing.</p>
207
181
<div class="variablelist"><table border="0">
208
182
<col align="left" valign="top">
232
205
will be returned. The fewer match options are specified, the more mount
233
206
points will usually match (surprising, eh?).</p>
237
209
<div class="variablelist"><table border="0">
238
210
<col align="left" valign="top">
241
<p class="since">Since 0.3.1.13
213
<p class="since">Since 0.3.1.13</p>
245
216
<div class="refsect2" lang="en">
246
217
<a name="exo-mount-point-list-matched"></a><h3>exo_mount_point_list_matched ()</h3>
247
<pre class="programlisting"><a
248
href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
249
>GSList</a>* exo_mount_point_list_matched (<a class="link" href="exo-Mount-Points.html#ExoMountPointMatchMask" title="enum ExoMountPointMatchMask">ExoMountPointMatchMask</a> mask,
251
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
254
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
257
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
260
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
261
>GError</a> **error);</pre>
218
<pre class="programlisting">GSList * exo_mount_point_list_matched (<a class="link" href="exo-Mount-Points.html#ExoMountPointMatchMask" title="enum ExoMountPointMatchMask">ExoMountPointMatchMask</a> mask,
222
GError **error);</pre>
263
224
Lists mount points matching the given <em class="parameter"><code>mask</code></em> and optionally the parameters <em class="parameter"><code>device</code></em>,
264
<em class="parameter"><code>folder</code></em> and <em class="parameter"><code>fstype</code></em>. If an error occurrs and <em class="parameter"><code>error</code></em> is non-<a
265
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
266
><code class="literal">NULL</code></a>, the <em class="parameter"><code>error</code></em> will
267
be set to point to a <a
268
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
269
><span class="type">GError</span></a> describing the problem, and <a
270
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
271
><code class="literal">NULL</code></a> will be returned.
272
Note, however, that <a
273
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
274
><code class="literal">NULL</code></a> may also be returned if no mount points match.
225
<em class="parameter"><code>folder</code></em> and <em class="parameter"><code>fstype</code></em>. If an error occurrs and <em class="parameter"><code>error</code></em> is non-<code class="literal">NULL</code>, the <em class="parameter"><code>error</code></em> will
226
be set to point to a <span class="type">GError</span> describing the problem, and <code class="literal">NULL</code> will be returned.
227
Note, however, that <code class="literal">NULL</code> may also be returned if no mount points match.
277
230
If <em class="parameter"><code>mask</code></em> includes <code class="literal">EXO_MOUNT_POINT_MATCH_ACTIVE</code>, the currently active mount points will
319
271
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
320
<td> return location for errors or <a
321
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
322
><code class="literal">NULL</code></a>.
272
<td> return location for errors or <code class="literal">NULL</code>.
339
288
<pre class="programlisting">#define exo_mount_point_list_active(error)</pre>
341
290
Convenience wrapper for <a class="link" href="exo-Mount-Points.html#exo-mount-point-list-matched" title="exo_mount_point_list_matched ()"><code class="function">exo_mount_point_list_matched()</code></a>, that returns the
342
currently active mount points, or <a
343
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
344
><code class="literal">NULL</code></a> in case of an error.
291
currently active mount points, or <code class="literal">NULL</code> in case of an error.
347
294
The caller is responsible to free the returned list using
354
301
when no longer needed.</p>
358
304
<div class="variablelist"><table border="0">
359
305
<col align="left" valign="top">
361
307
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
362
<td> return location for errors or <a
363
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
364
><code class="literal">NULL</code></a>.
308
<td> return location for errors or <code class="literal">NULL</code>.
368
<p class="since">Since 0.3.1.13
312
<p class="since">Since 0.3.1.13</p>
372
315
<div class="refsect2" lang="en">
388
331
when no longer needed.</p>
392
334
<div class="variablelist"><table border="0">
393
335
<col align="left" valign="top">
395
337
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
396
<td> return location for errors or <a
397
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
398
><code class="literal">NULL</code></a>.
338
<td> return location for errors or <code class="literal">NULL</code>.
402
<p class="since">Since 0.3.1.13
342
<p class="since">Since 0.3.1.13</p>
407
346
<div class="footer">
409
Generated by GTK-Doc V1.10</div>
348
Generated by GTK-Doc V1.11</div>