Debian Codegraph @

doc/html/UDisksMountMonitor.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>UDisksMountMonitor: UDisks Reference Manual</title>
6 <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
7 <link rel="home" href="index.html" title="UDisks Reference Manual">
8 <link rel="up" href="ref-daemon-monitoring.html" title="State and Configuration">
9 <link rel="prev" href="ref-daemon-monitoring.html" title="State and Configuration">
10 <link rel="next" href="UDisksFstabEntry.html" title="UDisksFstabEntry">
11 <meta name="generator" content="GTK-Doc V1.35.1 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18 <a href="#UDisksMountMonitor.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
19 <a href="#UDisksMountMonitor.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_signals">  <span class="dim">|</span> 
20 <a href="#UDisksMountMonitor.signals" class="shortcut">Signals</a></span>
21 </td>
22 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
23 <td><a accesskey="u" href="ref-daemon-monitoring.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
24 <td><a accesskey="p" href="ref-daemon-monitoring.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
25 <td><a accesskey="n" href="UDisksFstabEntry.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26 </tr></table>
27 <div class="refentry">
28 <a name="UDisksMountMonitor"></a><div class="titlepage"></div>
29 <div class="refnamediv"><table width="100%"><tr>
30 <td valign="top">
31 <h2><span class="refentrytitle"><a name="UDisksMountMonitor.top_of_page"></a>UDisksMountMonitor</span></h2>
32 <p>UDisksMountMonitor — Monitors mounted filesystems or in-use swap devices</p>
33 </td>
34 <td class="gallery_image" valign="top" align="right"></td>
35 </tr></table></div>
36 <div class="refsect1">
37 <a name="UDisksMountMonitor.functions"></a><h2>Functions</h2>
38 <div class="informaltable"><table class="informaltable" width="100%" border="0">
39 <colgroup>
40 <col width="150px" class="functions_proto_type">
41 <col class="functions_proto_name">
42 </colgroup>
43 <tbody>
44 <tr>
45 <td class="function_type">
46 <span class="returnvalue">dev_t</span>
47 </td>
48 <td class="function_name">
49 <a class="link" href="UDisksMountMonitor.html#udisks-mount-get-dev" title="udisks_mount_get_dev ()">udisks_mount_get_dev</a> <span class="c_punctuation">()</span>
50 </td>
51 </tr>
52 <tr>
53 <td class="function_type">
54 <a class="link" href="UDisksMountMonitor.html#UDisksMountType" title="enum UDisksMountType"><span class="returnvalue">UDisksMountType</span></a>
55 </td>
56 <td class="function_name">
57 <a class="link" href="UDisksMountMonitor.html#udisks-mount-get-mount-type" title="udisks_mount_get_mount_type ()">udisks_mount_get_mount_type</a> <span class="c_punctuation">()</span>
58 </td>
59 </tr>
60 <tr>
61 <td class="function_type">const <span class="returnvalue">gchar</span> *
62 </td>
63 <td class="function_name">
64 <a class="link" href="UDisksMountMonitor.html#udisks-mount-get-mount-path" title="udisks_mount_get_mount_path ()">udisks_mount_get_mount_path</a> <span class="c_punctuation">()</span>
65 </td>
66 </tr>
67 <tr>
68 <td class="function_type">
69 <span class="returnvalue">gint</span>
70 </td>
71 <td class="function_name">
72 <a class="link" href="UDisksMountMonitor.html#udisks-mount-compare" title="udisks_mount_compare ()">udisks_mount_compare</a> <span class="c_punctuation">()</span>
73 </td>
74 </tr>
75 <tr>
76 <td class="function_type">
77 <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="returnvalue">UDisksMountMonitor</span></a> *
78 </td>
79 <td class="function_name">
80 <a class="link" href="UDisksMountMonitor.html#udisks-mount-monitor-new" title="udisks_mount_monitor_new ()">udisks_mount_monitor_new</a> <span class="c_punctuation">()</span>
81 </td>
82 </tr>
83 <tr>
84 <td class="function_type">
85 <span class="returnvalue">GList</span> *
86 </td>
87 <td class="function_name">
88 <a class="link" href="UDisksMountMonitor.html#udisks-mount-monitor-get-mounts-for-dev" title="udisks_mount_monitor_get_mounts_for_dev ()">udisks_mount_monitor_get_mounts_for_dev</a> <span class="c_punctuation">()</span>
89 </td>
90 </tr>
91 <tr>
92 <td class="function_type">
93 <span class="returnvalue">gboolean</span>
94 </td>
95 <td class="function_name">
96 <a class="link" href="UDisksMountMonitor.html#udisks-mount-monitor-is-dev-in-use" title="udisks_mount_monitor_is_dev_in_use ()">udisks_mount_monitor_is_dev_in_use</a> <span class="c_punctuation">()</span>
97 </td>
98 </tr>
99 </tbody>
100 </table></div>
101 </div>
102 <div class="refsect1">
103 <a name="UDisksMountMonitor.signals"></a><h2>Signals</h2>
104 <div class="informaltable"><table class="informaltable" border="0">
105 <colgroup>
106 <col width="150px" class="signal_proto_type">
107 <col width="300px" class="signal_proto_name">
108 <col width="200px" class="signal_proto_flags">
109 </colgroup>
110 <tbody>
111 <tr>
112 <td class="signal_type"><span class="returnvalue">void</span></td>
113 <td class="signal_name"><a class="link" href="UDisksMountMonitor.html#UDisksMountMonitor-mount-added" title="The “mount-added” signal">mount-added</a></td>
114 <td class="signal_flags">Has Details</td>
115 </tr>
116 <tr>
117 <td class="signal_type"><span class="returnvalue">void</span></td>
118 <td class="signal_name"><a class="link" href="UDisksMountMonitor.html#UDisksMountMonitor-mount-removed" title="The “mount-removed” signal">mount-removed</a></td>
119 <td class="signal_flags">Has Details</td>
120 </tr>
121 </tbody>
122 </table></div>
123 </div>
124 <a name="UDisksMount"></a><div class="refsect1">
125 <a name="UDisksMountMonitor.other"></a><h2>Types and Values</h2>
126 <div class="informaltable"><table class="informaltable" width="100%" border="0">
127 <colgroup>
128 <col width="150px" class="other_proto_type">
129 <col class="other_proto_name">
130 </colgroup>
131 <tbody>
132 <tr>
133 <td class="datatype_keyword"> </td>
134 <td class="function_name"><a class="link" href="UDisksMountMonitor.html#UDisksMount-struct" title="UDisksMount">UDisksMount</a></td>
135 </tr>
136 <tr>
137 <td class="datatype_keyword">enum</td>
138 <td class="function_name"><a class="link" href="UDisksMountMonitor.html#UDisksMountType" title="enum UDisksMountType">UDisksMountType</a></td>
139 </tr>
140 <tr>
141 <td class="datatype_keyword"> </td>
142 <td class="function_name"><a class="link" href="UDisksMountMonitor.html#UDisksMountMonitor-struct" title="UDisksMountMonitor">UDisksMountMonitor</a></td>
143 </tr>
144 </tbody>
145 </table></div>
146 </div>
147 <div class="refsect1">
148 <a name="UDisksMountMonitor.object-hierarchy"></a><h2>Object Hierarchy</h2>
149 <pre class="screen"> GObject
150 <span class="lineart">├──</span> UDisksMount
151 <span class="lineart">╰──</span> UDisksMountMonitor
152 </pre>
153 </div>
154 <div class="refsect1">
155 <a name="UDisksMountMonitor.description"></a><h2>Description</h2>
156 <p>This type is used for monitoring mounted devices and swap devices
157 in use. On Linux, this is done by inspecting and monitoring the
158 <code class="literal">/proc/self/mountinfo</code> and
159 <code class="literal">/proc/swaps</code> files.</p>
160 </div>
161 <div class="refsect1">
162 <a name="UDisksMountMonitor.functions_details"></a><h2>Functions</h2>
163 <div class="refsect2">
164 <a name="udisks-mount-get-dev"></a><h3>udisks_mount_get_dev ()</h3>
165 <pre class="programlisting"><span class="returnvalue">dev_t</span>
166 udisks_mount_get_dev (<em class="parameter"><code><a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> *mount</code></em>);</pre>
167 <p>Gets the device number for <em class="parameter"><code>mount</code></em>
168 .</p>
169 <div class="refsect3">
170 <a name="udisks-mount-get-dev.parameters"></a><h4>Parameters</h4>
171 <div class="informaltable"><table class="informaltable" width="100%" border="0">
172 <colgroup>
173 <col width="150px" class="parameters_name">
174 <col class="parameters_description">
175 <col width="200px" class="parameters_annotations">
176 </colgroup>
177 <tbody><tr>
178 <td class="parameter_name"><p>mount</p></td>
179 <td class="parameter_description"><p>A <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a>.</p></td>
180 <td class="parameter_annotations"> </td>
181 </tr></tbody>
182 </table></div>
183 </div>
184 <div class="refsect3">
185 <a name="udisks-mount-get-dev.returns"></a><h4>Returns</h4>
186 <p> A <span class="type">dev_t</span>.</p>
187 </div>
188 </div>
189 <hr>
190 <div class="refsect2">
191 <a name="udisks-mount-get-mount-type"></a><h3>udisks_mount_get_mount_type ()</h3>
192 <pre class="programlisting"><a class="link" href="UDisksMountMonitor.html#UDisksMountType" title="enum UDisksMountType"><span class="returnvalue">UDisksMountType</span></a>
193 udisks_mount_get_mount_type (<em class="parameter"><code><a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> *mount</code></em>);</pre>
194 <p>Gets the <a class="link" href="UDisksMountMonitor.html#UDisksMountType" title="enum UDisksMountType"><span class="type">UDisksMountType</span></a> for <em class="parameter"><code>mount</code></em>
195 .</p>
196 <div class="refsect3">
197 <a name="udisks-mount-get-mount-type.parameters"></a><h4>Parameters</h4>
198 <div class="informaltable"><table class="informaltable" width="100%" border="0">
199 <colgroup>
200 <col width="150px" class="parameters_name">
201 <col class="parameters_description">
202 <col width="200px" class="parameters_annotations">
203 </colgroup>
204 <tbody><tr>
205 <td class="parameter_name"><p>mount</p></td>
206 <td class="parameter_description"><p>A <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a>.</p></td>
207 <td class="parameter_annotations"> </td>
208 </tr></tbody>
209 </table></div>
210 </div>
211 <div class="refsect3">
212 <a name="udisks-mount-get-mount-type.returns"></a><h4>Returns</h4>
213 <p> A value from the <a class="link" href="UDisksMountMonitor.html#UDisksMountType" title="enum UDisksMountType"><span class="type">UDisksMountType</span></a> enumeration.</p>
214 </div>
215 </div>
216 <hr>
217 <div class="refsect2">
218 <a name="udisks-mount-get-mount-path"></a><h3>udisks_mount_get_mount_path ()</h3>
219 <pre class="programlisting">const <span class="returnvalue">gchar</span> *
220 udisks_mount_get_mount_path (<em class="parameter"><code><a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> *mount</code></em>);</pre>
221 <p>Gets the mount path for a <a class="link" href="UDisksMountMonitor.html#UDISKS-MOUNT-TYPE-FILESYSTEM:CAPS"><span class="type">UDISKS_MOUNT_TYPE_FILESYSTEM</span></a>-type mount.</p>
222 <p>It is a programming error to call this on any other type of <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a>.</p>
223 <div class="refsect3">
224 <a name="udisks-mount-get-mount-path.parameters"></a><h4>Parameters</h4>
225 <div class="informaltable"><table class="informaltable" width="100%" border="0">
226 <colgroup>
227 <col width="150px" class="parameters_name">
228 <col class="parameters_description">
229 <col width="200px" class="parameters_annotations">
230 </colgroup>
231 <tbody><tr>
232 <td class="parameter_name"><p>mount</p></td>
233 <td class="parameter_description"><p>A <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a></p></td>
234 <td class="parameter_annotations"> </td>
235 </tr></tbody>
236 </table></div>
237 </div>
238 <div class="refsect3">
239 <a name="udisks-mount-get-mount-path.returns"></a><h4>Returns</h4>
240 <p> A string owned by <em class="parameter"><code>mount</code></em>
241 . Do not free.</p>
242 </div>
243 </div>
244 <hr>
245 <div class="refsect2">
246 <a name="udisks-mount-compare"></a><h3>udisks_mount_compare ()</h3>
247 <pre class="programlisting"><span class="returnvalue">gint</span>
248 udisks_mount_compare (<em class="parameter"><code><a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> *mount</code></em>,
249 <em class="parameter"><code><a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> *other_mount</code></em>);</pre>
250 <p>Comparison function for comparing two <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> objects.</p>
251 <div class="refsect3">
252 <a name="udisks-mount-compare.parameters"></a><h4>Parameters</h4>
253 <div class="informaltable"><table class="informaltable" width="100%" border="0">
254 <colgroup>
255 <col width="150px" class="parameters_name">
256 <col class="parameters_description">
257 <col width="200px" class="parameters_annotations">
258 </colgroup>
259 <tbody>
260 <tr>
261 <td class="parameter_name"><p>mount</p></td>
262 <td class="parameter_description"><p>A <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a></p></td>
263 <td class="parameter_annotations"> </td>
264 </tr>
265 <tr>
266 <td class="parameter_name"><p>other_mount</p></td>
267 <td class="parameter_description"><p>Another <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a>.</p></td>
268 <td class="parameter_annotations"> </td>
269 </tr>
270 </tbody>
271 </table></div>
272 </div>
273 <div class="refsect3">
274 <a name="udisks-mount-compare.returns"></a><h4>Returns</h4>
275 <p> Negative value if <em class="parameter"><code>mount</code></em>
276 &lt; <em class="parameter"><code>other_mount</code></em>
277 ; zero if <em class="parameter"><code>mount</code></em>
278 = <em class="parameter"><code>other_mount</code></em>
279 ; positive value if <em class="parameter"><code>mount</code></em>
280 &gt; <em class="parameter"><code>other_mount</code></em>
281 .</p>
282 </div>
283 </div>
284 <hr>
285 <div class="refsect2">
286 <a name="udisks-mount-monitor-new"></a><h3>udisks_mount_monitor_new ()</h3>
287 <pre class="programlisting"><a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="returnvalue">UDisksMountMonitor</span></a> *
288 udisks_mount_monitor_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
289 <p>Creates a new <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a> object.</p>
290 <p>Signals are emitted in the <GTKDOCLINK HREF="g-main-context-push-thread-default">thread-default main
291 loop</GTKDOCLINK> that this function is called from.</p>
292 <div class="refsect3">
293 <a name="udisks-mount-monitor-new.returns"></a><h4>Returns</h4>
294 <p> A <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a>. Free with <code class="function">g_object_unref()</code>.</p>
295 </div>
296 </div>
297 <hr>
298 <div class="refsect2">
299 <a name="udisks-mount-monitor-get-mounts-for-dev"></a><h3>udisks_mount_monitor_get_mounts_for_dev ()</h3>
300 <pre class="programlisting"><span class="returnvalue">GList</span> *
301 udisks_mount_monitor_get_mounts_for_dev
302 (<em class="parameter"><code><a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a> *monitor</code></em>,
303 <em class="parameter"><code><span class="type">dev_t</span> dev</code></em>);</pre>
304 <p>Gets all <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> objects for <em class="parameter"><code>dev</code></em>
305 .</p>
306 <div class="refsect3">
307 <a name="udisks-mount-monitor-get-mounts-for-dev.parameters"></a><h4>Parameters</h4>
308 <div class="informaltable"><table class="informaltable" width="100%" border="0">
309 <colgroup>
310 <col width="150px" class="parameters_name">
311 <col class="parameters_description">
312 <col width="200px" class="parameters_annotations">
313 </colgroup>
314 <tbody>
315 <tr>
316 <td class="parameter_name"><p>monitor</p></td>
317 <td class="parameter_description"><p>A <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a>.</p></td>
318 <td class="parameter_annotations"> </td>
319 </tr>
320 <tr>
321 <td class="parameter_name"><p>dev</p></td>
322 <td class="parameter_description"><p>A <span class="type">dev_t</span> device number.</p></td>
323 <td class="parameter_annotations"> </td>
324 </tr>
325 </tbody>
326 </table></div>
327 </div>
328 <div class="refsect3">
329 <a name="udisks-mount-monitor-get-mounts-for-dev.returns"></a><h4>Returns</h4>
330 <p> A <span class="type">GList</span> of <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> objects. The returned list must
331 be freed with <code class="function">g_list_free()</code> after each element has been freed with
332 <code class="function">g_object_unref()</code>.</p>
333 </div>
334 </div>
335 <hr>
336 <div class="refsect2">
337 <a name="udisks-mount-monitor-is-dev-in-use"></a><h3>udisks_mount_monitor_is_dev_in_use ()</h3>
338 <pre class="programlisting"><span class="returnvalue">gboolean</span>
339 udisks_mount_monitor_is_dev_in_use (<em class="parameter"><code><a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a> *monitor</code></em>,
340 <em class="parameter"><code><span class="type">dev_t</span> dev</code></em>,
341 <em class="parameter"><code><a class="link" href="UDisksMountMonitor.html#UDisksMountType" title="enum UDisksMountType"><span class="type">UDisksMountType</span></a> *out_type</code></em>);</pre>
342 <p>Checks if <em class="parameter"><code>dev</code></em>
343 is in use (e.g. mounted or swap-area in-use).</p>
344 <div class="refsect3">
345 <a name="udisks-mount-monitor-is-dev-in-use.parameters"></a><h4>Parameters</h4>
346 <div class="informaltable"><table class="informaltable" width="100%" border="0">
347 <colgroup>
348 <col width="150px" class="parameters_name">
349 <col class="parameters_description">
350 <col width="200px" class="parameters_annotations">
351 </colgroup>
352 <tbody>
353 <tr>
354 <td class="parameter_name"><p>monitor</p></td>
355 <td class="parameter_description"><p>A <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a>.</p></td>
356 <td class="parameter_annotations"> </td>
357 </tr>
358 <tr>
359 <td class="parameter_name"><p>dev</p></td>
360 <td class="parameter_description"><p>A <span class="type">dev_t</span> device number.</p></td>
361 <td class="parameter_annotations"> </td>
362 </tr>
363 <tr>
364 <td class="parameter_name"><p>out_type</p></td>
365 <td class="parameter_description"><p>Return location for mount type, if in use or <code class="literal">NULL</code>. </p></td>
366 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym> allow-none]</span></td>
367 </tr>
368 </tbody>
369 </table></div>
370 </div>
371 <div class="refsect3">
372 <a name="udisks-mount-monitor-is-dev-in-use.returns"></a><h4>Returns</h4>
373 <p> <code class="literal">TRUE</code> if in use, <code class="literal">FALSE</code> otherwise.</p>
374 </div>
375 </div>
376 </div>
377 <div class="refsect1">
378 <a name="UDisksMountMonitor.other_details"></a><h2>Types and Values</h2>
379 <div class="refsect2">
380 <a name="UDisksMount-struct"></a><h3>UDisksMount</h3>
381 <pre class="programlisting">typedef struct _UDisksMount UDisksMount;</pre>
382 <p>The <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> structure contains only private data and should
383 only be accessed using the provided API.</p>
384 </div>
385 <hr>
386 <div class="refsect2">
387 <a name="UDisksMountType"></a><h3>enum UDisksMountType</h3>
388 <p>Types of a mount.</p>
389 <div class="refsect3">
390 <a name="UDisksMountType.members"></a><h4>Members</h4>
391 <div class="informaltable"><table class="informaltable" width="100%" border="0">
392 <colgroup>
393 <col width="300px" class="enum_members_name">
394 <col class="enum_members_description">
395 <col width="200px" class="enum_members_annotations">
396 </colgroup>
397 <tbody>
398 <tr>
399 <td class="enum_member_name"><p><a name="UDISKS-MOUNT-TYPE-FILESYSTEM:CAPS"></a>UDISKS_MOUNT_TYPE_FILESYSTEM</p></td>
400 <td class="enum_member_description">
401 <p>Object correspond to a mounted filesystem.</p>
402 </td>
403 <td class="enum_member_annotations"> </td>
404 </tr>
405 <tr>
406 <td class="enum_member_name"><p><a name="UDISKS-MOUNT-TYPE-SWAP:CAPS"></a>UDISKS_MOUNT_TYPE_SWAP</p></td>
407 <td class="enum_member_description">
408 <p>Object correspond to an in-use swap device.</p>
409 </td>
410 <td class="enum_member_annotations"> </td>
411 </tr>
412 </tbody>
413 </table></div>
414 </div>
415 </div>
416 <hr>
417 <div class="refsect2">
418 <a name="UDisksMountMonitor-struct"></a><h3>UDisksMountMonitor</h3>
419 <pre class="programlisting">typedef struct _UDisksMountMonitor UDisksMountMonitor;</pre>
420 <p>The <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a> structure contains only private data and
421 should only be accessed using the provided API.</p>
422 </div>
423 </div>
424 <div class="refsect1">
425 <a name="UDisksMountMonitor.signal-details"></a><h2>Signal Details</h2>
426 <div class="refsect2">
427 <a name="UDisksMountMonitor-mount-added"></a><h3>The <code class="literal">“mount-added”</code> signal</h3>
428 <pre class="programlisting"><span class="returnvalue">void</span>
429 user_function (<a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a> *monitor,
430 <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> *mount,
431 <span class="type">gpointer</span> user_data)</pre>
432 <p>Emitted when a mount is added.</p>
433 <p>This signal is emitted in the</p>
434 thread-default main loop<p>that <em class="parameter"><code>monitor</code></em>
435 was created in.</p>
436 <div class="refsect3">
437 <a name="UDisksMountMonitor-mount-added.parameters"></a><h4>Parameters</h4>
438 <div class="informaltable"><table class="informaltable" width="100%" border="0">
439 <colgroup>
440 <col width="150px" class="parameters_name">
441 <col class="parameters_description">
442 <col width="200px" class="parameters_annotations">
443 </colgroup>
444 <tbody>
445 <tr>
446 <td class="parameter_name"><p>monitor</p></td>
447 <td class="parameter_description"><p>A <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a>.</p></td>
448 <td class="parameter_annotations"> </td>
449 </tr>
450 <tr>
451 <td class="parameter_name"><p>mount</p></td>
452 <td class="parameter_description"><p>The <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> that was added.</p></td>
453 <td class="parameter_annotations"> </td>
454 </tr>
455 <tr>
456 <td class="parameter_name"><p>user_data</p></td>
457 <td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
458 <td class="parameter_annotations"> </td>
459 </tr>
460 </tbody>
461 </table></div>
462 </div>
463 <p>Flags: Has Details</p>
464 </div>
465 <hr>
466 <div class="refsect2">
467 <a name="UDisksMountMonitor-mount-removed"></a><h3>The <code class="literal">“mount-removed”</code> signal</h3>
468 <pre class="programlisting"><span class="returnvalue">void</span>
469 user_function (<a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a> *monitor,
470 <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> *mount,
471 <span class="type">gpointer</span> user_data)</pre>
472 <p>Emitted when a mount is removed.</p>
473 <p>This signal is emitted in the</p>
474 thread-default main loop<p>that <em class="parameter"><code>monitor</code></em>
475 was created in.</p>
476 <div class="refsect3">
477 <a name="UDisksMountMonitor-mount-removed.parameters"></a><h4>Parameters</h4>
478 <div class="informaltable"><table class="informaltable" width="100%" border="0">
479 <colgroup>
480 <col width="150px" class="parameters_name">
481 <col class="parameters_description">
482 <col width="200px" class="parameters_annotations">
483 </colgroup>
484 <tbody>
485 <tr>
486 <td class="parameter_name"><p>monitor</p></td>
487 <td class="parameter_description"><p>A <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a>.</p></td>
488 <td class="parameter_annotations"> </td>
489 </tr>
490 <tr>
491 <td class="parameter_name"><p>mount</p></td>
492 <td class="parameter_description"><p>The <a class="link" href="UDisksMountMonitor.html#UDisksMount"><span class="type">UDisksMount</span></a> that was removed.</p></td>
493 <td class="parameter_annotations"> </td>
494 </tr>
495 <tr>
496 <td class="parameter_name"><p>user_data</p></td>
497 <td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
498 <td class="parameter_annotations"> </td>
499 </tr>
500 </tbody>
501 </table></div>
502 </div>
503 <p>Flags: Has Details</p>
504 </div>
505 </div>
506 </div>
507 <div class="footer">
508 <hr>Generated by GTK-Doc V1.35.1</div>
509 </body>
510 </html>