Debian Codegraph @

doc/html/UDisksDaemon.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>UDisksDaemon: 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-core.html" title="Core">
9 <link rel="prev" href="udisks2-Logging.html" title="Logging">
10 <link rel="next" href="UDisksProvider.html" title="UDisksProvider">
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="#UDisksDaemon.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
19 <a href="#UDisksDaemon.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
20 <a href="#UDisksDaemon.properties" class="shortcut">Properties</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-core.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
24 <td><a accesskey="p" href="udisks2-Logging.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
25 <td><a accesskey="n" href="UDisksProvider.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="UDisksDaemon"></a><div class="titlepage"></div>
29 <div class="refnamediv"><table width="100%"><tr>
30 <td valign="top">
31 <h2><span class="refentrytitle"><a name="UDisksDaemon.top_of_page"></a>UDisksDaemon</span></h2>
32 <p>UDisksDaemon — Main daemon object</p>
33 </td>
34 <td class="gallery_image" valign="top" align="right"></td>
35 </tr></table></div>
36 <div class="refsect1">
37 <a name="UDisksDaemon.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 <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="returnvalue">UDisksDaemon</span></a> *
47 </td>
48 <td class="function_name">
49 <a class="link" href="UDisksDaemon.html#udisks-daemon-new" title="udisks_daemon_new ()">udisks_daemon_new</a> <span class="c_punctuation">()</span>
50 </td>
51 </tr>
52 <tr>
53 <td class="function_type">
54 <span class="returnvalue">GDBusConnection</span> *
55 </td>
56 <td class="function_name">
57 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-connection" title="udisks_daemon_get_connection ()">udisks_daemon_get_connection</a> <span class="c_punctuation">()</span>
58 </td>
59 </tr>
60 <tr>
61 <td class="function_type">
62 <span class="returnvalue">GDBusObjectManagerServer</span> *
63 </td>
64 <td class="function_name">
65 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-object-manager" title="udisks_daemon_get_object_manager ()">udisks_daemon_get_object_manager</a> <span class="c_punctuation">()</span>
66 </td>
67 </tr>
68 <tr>
69 <td class="function_type">
70 <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="returnvalue">UDisksMountMonitor</span></a> *
71 </td>
72 <td class="function_name">
73 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-mount-monitor" title="udisks_daemon_get_mount_monitor ()">udisks_daemon_get_mount_monitor</a> <span class="c_punctuation">()</span>
74 </td>
75 </tr>
76 <tr>
77 <td class="function_type">
78 <a class="link" href="UDisksCrypttabMonitor.html" title="UDisksCrypttabMonitor"><span class="returnvalue">UDisksCrypttabMonitor</span></a> *
79 </td>
80 <td class="function_name">
81 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-crypttab-monitor" title="udisks_daemon_get_crypttab_monitor ()">udisks_daemon_get_crypttab_monitor</a> <span class="c_punctuation">()</span>
82 </td>
83 </tr>
84 <tr>
85 <td class="function_type">
86 <a class="link" href="UDisksLinuxProvider.html" title="UDisksLinuxProvider"><span class="returnvalue">UDisksLinuxProvider</span></a> *
87 </td>
88 <td class="function_name">
89 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-linux-provider" title="udisks_daemon_get_linux_provider ()">udisks_daemon_get_linux_provider</a> <span class="c_punctuation">()</span>
90 </td>
91 </tr>
92 <tr>
93 <td class="function_type">
94 <a href="https://polkit.pages.freedesktop.org/PolkitAuthority.html#PolkitAuthority-struct"><span class="returnvalue">PolkitAuthority</span></a> *
95 </td>
96 <td class="function_name">
97 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-authority" title="udisks_daemon_get_authority ()">udisks_daemon_get_authority</a> <span class="c_punctuation">()</span>
98 </td>
99 </tr>
100 <tr>
101 <td class="function_type">
102 <a class="link" href="UDisksState.html" title="UDisksState"><span class="returnvalue">UDisksState</span></a> *
103 </td>
104 <td class="function_name">
105 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-state" title="udisks_daemon_get_state ()">udisks_daemon_get_state</a> <span class="c_punctuation">()</span>
106 </td>
107 </tr>
108 <tr>
109 <td class="function_type">
110 <span class="returnvalue">gboolean</span>
111 </td>
112 <td class="function_name">
113 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-disable-modules" title="udisks_daemon_get_disable_modules ()">udisks_daemon_get_disable_modules</a> <span class="c_punctuation">()</span>
114 </td>
115 </tr>
116 <tr>
117 <td class="function_type">
118 <span class="returnvalue">gboolean</span>
119 </td>
120 <td class="function_name">
121 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-force-load-modules" title="udisks_daemon_get_force_load_modules ()">udisks_daemon_get_force_load_modules</a> <span class="c_punctuation">()</span>
122 </td>
123 </tr>
124 <tr>
125 <td class="function_type">
126 <a class="link" href="udisks2-UDisksModuleManager.html#UDisksModuleManager" title="UDisksModuleManager"><span class="returnvalue">UDisksModuleManager</span></a> *
127 </td>
128 <td class="function_name">
129 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-module-manager" title="udisks_daemon_get_module_manager ()">udisks_daemon_get_module_manager</a> <span class="c_punctuation">()</span>
130 </td>
131 </tr>
132 <tr>
133 <td class="function_type">
134 <span class="returnvalue">UDisksConfigManager</span> *
135 </td>
136 <td class="function_name">
137 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-config-manager" title="udisks_daemon_get_config_manager ()">udisks_daemon_get_config_manager</a> <span class="c_punctuation">()</span>
138 </td>
139 </tr>
140 <tr>
141 <td class="function_type">
142 <span class="returnvalue">gboolean</span>
143 </td>
144 <td class="function_name">
145 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-enable-tcrypt" title="udisks_daemon_get_enable_tcrypt ()">udisks_daemon_get_enable_tcrypt</a> <span class="c_punctuation">()</span>
146 </td>
147 </tr>
148 <tr>
149 <td class="function_type">
150 <span class="returnvalue">gboolean</span>
151 </td>
152 <td class="function_name">
153 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-uninstalled" title="udisks_daemon_get_uninstalled ()">udisks_daemon_get_uninstalled</a> <span class="c_punctuation">()</span>
154 </td>
155 </tr>
156 <tr>
157 <td class="function_type">
158 <a class="link" href="udisks2-UDisksUtabMonitor.html#UDisksUtabMonitor" title="UDisksUtabMonitor"><span class="returnvalue">UDisksUtabMonitor</span></a> *
159 </td>
160 <td class="function_name">
161 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-utab-monitor" title="udisks_daemon_get_utab_monitor ()">udisks_daemon_get_utab_monitor</a> <span class="c_punctuation">()</span>
162 </td>
163 </tr>
164 <tr>
165 <td class="function_type">
166 <span class="returnvalue">gchar</span> *
167 </td>
168 <td class="function_name">
169 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-parent-for-tracking" title="udisks_daemon_get_parent_for_tracking ()">udisks_daemon_get_parent_for_tracking</a> <span class="c_punctuation">()</span>
170 </td>
171 </tr>
172 <tr>
173 <td class="function_type">
174 <span class="returnvalue">gpointer</span>
175 </td>
176 <td class="function_name">
177 <span class="c_punctuation">(</span><a class="link" href="UDisksDaemon.html#UDisksDaemonWaitFuncGeneric" title="UDisksDaemonWaitFuncGeneric ()">*UDisksDaemonWaitFuncGeneric</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
178 </td>
179 </tr>
180 <tr>
181 <td class="function_type">
182 <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
183 </td>
184 <td class="function_name">
185 <a class="link" href="UDisksDaemon.html#udisks-daemon-wait-for-object-sync" title="udisks_daemon_wait_for_object_sync ()">udisks_daemon_wait_for_object_sync</a> <span class="c_punctuation">()</span>
186 </td>
187 </tr>
188 <tr>
189 <td class="function_type">
190 <span class="returnvalue">GList</span> *
191 </td>
192 <td class="function_name">
193 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-objects" title="udisks_daemon_get_objects ()">udisks_daemon_get_objects</a> <span class="c_punctuation">()</span>
194 </td>
195 </tr>
196 <tr>
197 <td class="function_type">
198 <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
199 </td>
200 <td class="function_name">
201 <a class="link" href="UDisksDaemon.html#udisks-daemon-find-object" title="udisks_daemon_find_object ()">udisks_daemon_find_object</a> <span class="c_punctuation">()</span>
202 </td>
203 </tr>
204 <tr>
205 <td class="function_type">
206 <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
207 </td>
208 <td class="function_name">
209 <a class="link" href="UDisksDaemon.html#udisks-daemon-find-block" title="udisks_daemon_find_block ()">udisks_daemon_find_block</a> <span class="c_punctuation">()</span>
210 </td>
211 </tr>
212 <tr>
213 <td class="function_type">
214 <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
215 </td>
216 <td class="function_name">
217 <a class="link" href="UDisksDaemon.html#udisks-daemon-find-block-by-device-file" title="udisks_daemon_find_block_by_device_file ()">udisks_daemon_find_block_by_device_file</a> <span class="c_punctuation">()</span>
218 </td>
219 </tr>
220 <tr>
221 <td class="function_type">
222 <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
223 </td>
224 <td class="function_name">
225 <a class="link" href="UDisksDaemon.html#udisks-daemon-find-block-by-sysfs-path" title="udisks_daemon_find_block_by_sysfs_path ()">udisks_daemon_find_block_by_sysfs_path</a> <span class="c_punctuation">()</span>
226 </td>
227 </tr>
228 <tr>
229 <td class="function_type">
230 <a class="link" href="UDisksBaseJob.html" title="UDisksBaseJob"><span class="returnvalue">UDisksBaseJob</span></a> *
231 </td>
232 <td class="function_name">
233 <a class="link" href="UDisksDaemon.html#udisks-daemon-launch-simple-job" title="udisks_daemon_launch_simple_job ()">udisks_daemon_launch_simple_job</a> <span class="c_punctuation">()</span>
234 </td>
235 </tr>
236 <tr>
237 <td class="function_type">
238 <a class="link" href="UDisksBaseJob.html" title="UDisksBaseJob"><span class="returnvalue">UDisksBaseJob</span></a> *
239 </td>
240 <td class="function_name">
241 <a class="link" href="UDisksDaemon.html#udisks-daemon-launch-spawned-job" title="udisks_daemon_launch_spawned_job ()">udisks_daemon_launch_spawned_job</a> <span class="c_punctuation">()</span>
242 </td>
243 </tr>
244 <tr>
245 <td class="function_type">
246 <span class="returnvalue">gboolean</span>
247 </td>
248 <td class="function_name">
249 <a class="link" href="UDisksDaemon.html#udisks-daemon-launch-spawned-job-sync" title="udisks_daemon_launch_spawned_job_sync ()">udisks_daemon_launch_spawned_job_sync</a> <span class="c_punctuation">()</span>
250 </td>
251 </tr>
252 <tr>
253 <td class="function_type">
254 <a class="link" href="UDisksBaseJob.html" title="UDisksBaseJob"><span class="returnvalue">UDisksBaseJob</span></a> *
255 </td>
256 <td class="function_name">
257 <a class="link" href="UDisksDaemon.html#udisks-daemon-launch-spawned-job-gstring" title="udisks_daemon_launch_spawned_job_gstring ()">udisks_daemon_launch_spawned_job_gstring</a> <span class="c_punctuation">()</span>
258 </td>
259 </tr>
260 <tr>
261 <td class="function_type">
262 <span class="returnvalue">gboolean</span>
263 </td>
264 <td class="function_name">
265 <a class="link" href="UDisksDaemon.html#udisks-daemon-launch-spawned-job-gstring-sync" title="udisks_daemon_launch_spawned_job_gstring_sync ()">udisks_daemon_launch_spawned_job_gstring_sync</a> <span class="c_punctuation">()</span>
266 </td>
267 </tr>
268 <tr>
269 <td class="function_type">
270 <a class="link" href="UDisksBaseJob.html" title="UDisksBaseJob"><span class="returnvalue">UDisksBaseJob</span></a> *
271 </td>
272 <td class="function_name">
273 <a class="link" href="UDisksDaemon.html#udisks-daemon-launch-threaded-job" title="udisks_daemon_launch_threaded_job ()">udisks_daemon_launch_threaded_job</a> <span class="c_punctuation">()</span>
274 </td>
275 </tr>
276 <tr>
277 <td class="function_type">
278 <span class="returnvalue">gboolean</span>
279 </td>
280 <td class="function_name">
281 <a class="link" href="UDisksDaemon.html#udisks-daemon-launch-threaded-job-sync" title="udisks_daemon_launch_threaded_job_sync ()">udisks_daemon_launch_threaded_job_sync</a> <span class="c_punctuation">()</span>
282 </td>
283 </tr>
284 <tr>
285 <td class="function_type">const <span class="returnvalue">gchar</span> *
286 </td>
287 <td class="function_name">
288 <a class="link" href="UDisksDaemon.html#udisks-daemon-get-uuid" title="udisks_daemon_get_uuid ()">udisks_daemon_get_uuid</a> <span class="c_punctuation">()</span>
289 </td>
290 </tr>
291 </tbody>
292 </table></div>
293 </div>
294 <div class="refsect1">
295 <a name="UDisksDaemon.properties"></a><h2>Properties</h2>
296 <div class="informaltable"><table class="informaltable" border="0">
297 <colgroup>
298 <col width="150px" class="properties_type">
299 <col width="300px" class="properties_name">
300 <col width="200px" class="properties_flags">
301 </colgroup>
302 <tbody>
303 <tr>
304 <td class="property_type">
305 <span class="type">GDBusConnection</span> *</td>
306 <td class="property_name"><a class="link" href="UDisksDaemon.html#UDisksDaemon--connection" title="The “connection” property">connection</a></td>
307 <td class="property_flags">Read / Write / Construct Only</td>
308 </tr>
309 <tr>
310 <td class="property_type"><span class="type">gboolean</span></td>
311 <td class="property_name"><a class="link" href="UDisksDaemon.html#UDisksDaemon--disable-modules" title="The “disable-modules” property">disable-modules</a></td>
312 <td class="property_flags">Read / Write / Construct Only</td>
313 </tr>
314 <tr>
315 <td class="property_type"><span class="type">gboolean</span></td>
316 <td class="property_name"><a class="link" href="UDisksDaemon.html#UDisksDaemon--enable-tcrypt" title="The “enable-tcrypt” property">enable-tcrypt</a></td>
317 <td class="property_flags">Read / Write / Construct Only</td>
318 </tr>
319 <tr>
320 <td class="property_type"><span class="type">gboolean</span></td>
321 <td class="property_name"><a class="link" href="UDisksDaemon.html#UDisksDaemon--force-load-modules" title="The “force-load-modules” property">force-load-modules</a></td>
322 <td class="property_flags">Read / Write / Construct Only</td>
323 </tr>
324 <tr>
325 <td class="property_type">
326 <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a> *</td>
327 <td class="property_name"><a class="link" href="UDisksDaemon.html#UDisksDaemon--mount-monitor" title="The “mount-monitor” property">mount-monitor</a></td>
328 <td class="property_flags">Read</td>
329 </tr>
330 <tr>
331 <td class="property_type">
332 <span class="type">GDBusObjectManagerServer</span> *</td>
333 <td class="property_name"><a class="link" href="UDisksDaemon.html#UDisksDaemon--object-manager" title="The “object-manager” property">object-manager</a></td>
334 <td class="property_flags">Read</td>
335 </tr>
336 <tr>
337 <td class="property_type"><span class="type">gboolean</span></td>
338 <td class="property_name"><a class="link" href="UDisksDaemon.html#UDisksDaemon--uninstalled" title="The “uninstalled” property">uninstalled</a></td>
339 <td class="property_flags">Read / Write / Construct Only</td>
340 </tr>
341 <tr>
342 <td class="property_type">
343 <span class="type">char</span> *</td>
344 <td class="property_name"><a class="link" href="UDisksDaemon.html#UDisksDaemon--uuid" title="The “uuid” property">uuid</a></td>
345 <td class="property_flags">Read / Write</td>
346 </tr>
347 </tbody>
348 </table></div>
349 </div>
350 <div class="refsect1">
351 <a name="UDisksDaemon.other"></a><h2>Types and Values</h2>
352 <div class="informaltable"><table class="informaltable" width="100%" border="0">
353 <colgroup>
354 <col width="150px" class="other_proto_type">
355 <col class="other_proto_name">
356 </colgroup>
357 <tbody>
358 <tr>
359 <td class="datatype_keyword"> </td>
360 <td class="function_name"><a class="link" href="UDisksDaemon.html#UDisksDaemon-struct" title="UDisksDaemon">UDisksDaemon</a></td>
361 </tr>
362 <tr>
363 <td class="define_keyword">#define</td>
364 <td class="function_name"><a class="link" href="UDisksDaemon.html#UDISKS-DEFAULT-WAIT-TIMEOUT:CAPS" title="UDISKS_DEFAULT_WAIT_TIMEOUT">UDISKS_DEFAULT_WAIT_TIMEOUT</a></td>
365 </tr>
366 </tbody>
367 </table></div>
368 </div>
369 <div class="refsect1">
370 <a name="UDisksDaemon.object-hierarchy"></a><h2>Object Hierarchy</h2>
371 <pre class="screen"> GObject
372 <span class="lineart">╰──</span> UDisksDaemon
373 </pre>
374 </div>
375 <div class="refsect1">
376 <a name="UDisksDaemon.description"></a><h2>Description</h2>
377 <p>Object holding all global state.</p>
378 </div>
379 <div class="refsect1">
380 <a name="UDisksDaemon.functions_details"></a><h2>Functions</h2>
381 <div class="refsect2">
382 <a name="udisks-daemon-new"></a><h3>udisks_daemon_new ()</h3>
383 <pre class="programlisting"><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="returnvalue">UDisksDaemon</span></a> *
384 udisks_daemon_new (<em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>,
385 <em class="parameter"><code><span class="type">gboolean</span> disable_modules</code></em>,
386 <em class="parameter"><code><span class="type">gboolean</span> force_load_modules</code></em>,
387 <em class="parameter"><code><span class="type">gboolean</span> uninstalled</code></em>,
388 <em class="parameter"><code><span class="type">gboolean</span> enable_tcrypt</code></em>);</pre>
389 <p>Create a new daemon object for exporting objects on <em class="parameter"><code>connection</code></em>
390 .</p>
391 <div class="refsect3">
392 <a name="udisks-daemon-new.parameters"></a><h4>Parameters</h4>
393 <div class="informaltable"><table class="informaltable" width="100%" border="0">
394 <colgroup>
395 <col width="150px" class="parameters_name">
396 <col class="parameters_description">
397 <col width="200px" class="parameters_annotations">
398 </colgroup>
399 <tbody>
400 <tr>
401 <td class="parameter_name"><p>connection</p></td>
402 <td class="parameter_description"><p>A <span class="type">GDBusConnection</span>.</p></td>
403 <td class="parameter_annotations"> </td>
404 </tr>
405 <tr>
406 <td class="parameter_name"><p>disable_modules</p></td>
407 <td class="parameter_description"><p>Indicates whether modules should never be activated.</p></td>
408 <td class="parameter_annotations"> </td>
409 </tr>
410 <tr>
411 <td class="parameter_name"><p>force_load_modules</p></td>
412 <td class="parameter_description"><p>Activate modules on startup (for debugging purposes).</p></td>
413 <td class="parameter_annotations"> </td>
414 </tr>
415 <tr>
416 <td class="parameter_name"><p>uninstalled</p></td>
417 <td class="parameter_description"><p>Loads modules from the build directory (for debugging purposes).</p></td>
418 <td class="parameter_annotations"> </td>
419 </tr>
420 <tr>
421 <td class="parameter_name"><p>enable_tcrypt</p></td>
422 <td class="parameter_description"><p>Checks whether devices could be TCRYPT encrypted.</p></td>
423 <td class="parameter_annotations"> </td>
424 </tr>
425 </tbody>
426 </table></div>
427 </div>
428 <div class="refsect3">
429 <a name="udisks-daemon-new.returns"></a><h4>Returns</h4>
430 <p> A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> object. Free with <code class="function">g_object_unref()</code>.</p>
431 </div>
432 </div>
433 <hr>
434 <div class="refsect2">
435 <a name="udisks-daemon-get-connection"></a><h3>udisks_daemon_get_connection ()</h3>
436 <pre class="programlisting"><span class="returnvalue">GDBusConnection</span> *
437 udisks_daemon_get_connection (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
438 <p>Gets the D-Bus connection used by <em class="parameter"><code>daemon</code></em>
439 .</p>
440 <div class="refsect3">
441 <a name="udisks-daemon-get-connection.parameters"></a><h4>Parameters</h4>
442 <div class="informaltable"><table class="informaltable" width="100%" border="0">
443 <colgroup>
444 <col width="150px" class="parameters_name">
445 <col class="parameters_description">
446 <col width="200px" class="parameters_annotations">
447 </colgroup>
448 <tbody><tr>
449 <td class="parameter_name"><p>daemon</p></td>
450 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
451 <td class="parameter_annotations"> </td>
452 </tr></tbody>
453 </table></div>
454 </div>
455 <div class="refsect3">
456 <a name="udisks-daemon-get-connection.returns"></a><h4>Returns</h4>
457 <p> A <span class="type">GDBusConnection</span>. Do not free, the object is owned by <em class="parameter"><code>daemon</code></em>
458 .</p>
459 </div>
460 </div>
461 <hr>
462 <div class="refsect2">
463 <a name="udisks-daemon-get-object-manager"></a><h3>udisks_daemon_get_object_manager ()</h3>
464 <pre class="programlisting"><span class="returnvalue">GDBusObjectManagerServer</span> *
465 udisks_daemon_get_object_manager (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
466 <p>Gets the D-Bus object manager used by <em class="parameter"><code>daemon</code></em>
467 .</p>
468 <div class="refsect3">
469 <a name="udisks-daemon-get-object-manager.parameters"></a><h4>Parameters</h4>
470 <div class="informaltable"><table class="informaltable" width="100%" border="0">
471 <colgroup>
472 <col width="150px" class="parameters_name">
473 <col class="parameters_description">
474 <col width="200px" class="parameters_annotations">
475 </colgroup>
476 <tbody><tr>
477 <td class="parameter_name"><p>daemon</p></td>
478 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
479 <td class="parameter_annotations"> </td>
480 </tr></tbody>
481 </table></div>
482 </div>
483 <div class="refsect3">
484 <a name="udisks-daemon-get-object-manager.returns"></a><h4>Returns</h4>
485 <p> A <span class="type">GDBusObjectManagerServer</span>. Do not free, the object is owned by <em class="parameter"><code>daemon</code></em>
486 .</p>
487 </div>
488 </div>
489 <hr>
490 <div class="refsect2">
491 <a name="udisks-daemon-get-mount-monitor"></a><h3>udisks_daemon_get_mount_monitor ()</h3>
492 <pre class="programlisting"><a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="returnvalue">UDisksMountMonitor</span></a> *
493 udisks_daemon_get_mount_monitor (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
494 <p>Gets the mount monitor used by <em class="parameter"><code>daemon</code></em>
495 .</p>
496 <div class="refsect3">
497 <a name="udisks-daemon-get-mount-monitor.parameters"></a><h4>Parameters</h4>
498 <div class="informaltable"><table class="informaltable" width="100%" border="0">
499 <colgroup>
500 <col width="150px" class="parameters_name">
501 <col class="parameters_description">
502 <col width="200px" class="parameters_annotations">
503 </colgroup>
504 <tbody><tr>
505 <td class="parameter_name"><p>daemon</p></td>
506 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a></p></td>
507 <td class="parameter_annotations"> </td>
508 </tr></tbody>
509 </table></div>
510 </div>
511 <div class="refsect3">
512 <a name="udisks-daemon-get-mount-monitor.returns"></a><h4>Returns</h4>
513 <p> A <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a>. Do not free, the object is owned by <em class="parameter"><code>daemon</code></em>
514 .</p>
515 </div>
516 </div>
517 <hr>
518 <div class="refsect2">
519 <a name="udisks-daemon-get-crypttab-monitor"></a><h3>udisks_daemon_get_crypttab_monitor ()</h3>
520 <pre class="programlisting"><a class="link" href="UDisksCrypttabMonitor.html" title="UDisksCrypttabMonitor"><span class="returnvalue">UDisksCrypttabMonitor</span></a> *
521 udisks_daemon_get_crypttab_monitor (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
522 <p>Gets the crypttab monitor used by <em class="parameter"><code>daemon</code></em>
523 .</p>
524 <div class="refsect3">
525 <a name="udisks-daemon-get-crypttab-monitor.parameters"></a><h4>Parameters</h4>
526 <div class="informaltable"><table class="informaltable" width="100%" border="0">
527 <colgroup>
528 <col width="150px" class="parameters_name">
529 <col class="parameters_description">
530 <col width="200px" class="parameters_annotations">
531 </colgroup>
532 <tbody><tr>
533 <td class="parameter_name"><p>daemon</p></td>
534 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a></p></td>
535 <td class="parameter_annotations"> </td>
536 </tr></tbody>
537 </table></div>
538 </div>
539 <div class="refsect3">
540 <a name="udisks-daemon-get-crypttab-monitor.returns"></a><h4>Returns</h4>
541 <p> A <a class="link" href="UDisksCrypttabMonitor.html" title="UDisksCrypttabMonitor"><span class="type">UDisksCrypttabMonitor</span></a>. Do not free, the object is owned by <em class="parameter"><code>daemon</code></em>
542 .</p>
543 </div>
544 </div>
545 <hr>
546 <div class="refsect2">
547 <a name="udisks-daemon-get-linux-provider"></a><h3>udisks_daemon_get_linux_provider ()</h3>
548 <pre class="programlisting"><a class="link" href="UDisksLinuxProvider.html" title="UDisksLinuxProvider"><span class="returnvalue">UDisksLinuxProvider</span></a> *
549 udisks_daemon_get_linux_provider (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
550 <p>Gets the Linux Provider, if any.</p>
551 <div class="refsect3">
552 <a name="udisks-daemon-get-linux-provider.parameters"></a><h4>Parameters</h4>
553 <div class="informaltable"><table class="informaltable" width="100%" border="0">
554 <colgroup>
555 <col width="150px" class="parameters_name">
556 <col class="parameters_description">
557 <col width="200px" class="parameters_annotations">
558 </colgroup>
559 <tbody><tr>
560 <td class="parameter_name"><p>daemon</p></td>
561 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
562 <td class="parameter_annotations"> </td>
563 </tr></tbody>
564 </table></div>
565 </div>
566 <div class="refsect3">
567 <a name="udisks-daemon-get-linux-provider.returns"></a><h4>Returns</h4>
568 <p> A <a class="link" href="UDisksLinuxProvider.html" title="UDisksLinuxProvider"><span class="type">UDisksLinuxProvider</span></a> or <code class="literal">NULL</code>. Do not free, the object is owned by <em class="parameter"><code>daemon</code></em>
569 .</p>
570 </div>
571 </div>
572 <hr>
573 <div class="refsect2">
574 <a name="udisks-daemon-get-authority"></a><h3>udisks_daemon_get_authority ()</h3>
575 <pre class="programlisting"><a href="https://polkit.pages.freedesktop.org/PolkitAuthority.html#PolkitAuthority-struct"><span class="returnvalue">PolkitAuthority</span></a> *
576 udisks_daemon_get_authority (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
577 <p>Gets the PolicyKit authority used by <em class="parameter"><code>daemon</code></em>
578 .</p>
579 <div class="refsect3">
580 <a name="udisks-daemon-get-authority.parameters"></a><h4>Parameters</h4>
581 <div class="informaltable"><table class="informaltable" width="100%" border="0">
582 <colgroup>
583 <col width="150px" class="parameters_name">
584 <col class="parameters_description">
585 <col width="200px" class="parameters_annotations">
586 </colgroup>
587 <tbody><tr>
588 <td class="parameter_name"><p>daemon</p></td>
589 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
590 <td class="parameter_annotations"> </td>
591 </tr></tbody>
592 </table></div>
593 </div>
594 <div class="refsect3">
595 <a name="udisks-daemon-get-authority.returns"></a><h4>Returns</h4>
596 <p> A <a href="https://polkit.pages.freedesktop.org/PolkitAuthority.html#PolkitAuthority-struct"><span class="type">PolkitAuthority</span></a> instance or <code class="literal">NULL</code> if the polkit
597 authority is not available. Do not free, the object is owned by
598 <em class="parameter"><code>daemon</code></em>
599 .</p>
600 </div>
601 </div>
602 <hr>
603 <div class="refsect2">
604 <a name="udisks-daemon-get-state"></a><h3>udisks_daemon_get_state ()</h3>
605 <pre class="programlisting"><a class="link" href="UDisksState.html" title="UDisksState"><span class="returnvalue">UDisksState</span></a> *
606 udisks_daemon_get_state (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
607 <p>Gets the state object used by <em class="parameter"><code>daemon</code></em>
608 .</p>
609 <div class="refsect3">
610 <a name="udisks-daemon-get-state.parameters"></a><h4>Parameters</h4>
611 <div class="informaltable"><table class="informaltable" width="100%" border="0">
612 <colgroup>
613 <col width="150px" class="parameters_name">
614 <col class="parameters_description">
615 <col width="200px" class="parameters_annotations">
616 </colgroup>
617 <tbody><tr>
618 <td class="parameter_name"><p>daemon</p></td>
619 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
620 <td class="parameter_annotations"> </td>
621 </tr></tbody>
622 </table></div>
623 </div>
624 <div class="refsect3">
625 <a name="udisks-daemon-get-state.returns"></a><h4>Returns</h4>
626 <p> A <a class="link" href="UDisksState.html" title="UDisksState"><span class="type">UDisksState</span></a> instance. Do not free, the object is owned by <em class="parameter"><code>daemon</code></em>
627 .</p>
628 </div>
629 </div>
630 <hr>
631 <div class="refsect2">
632 <a name="udisks-daemon-get-disable-modules"></a><h3>udisks_daemon_get_disable_modules ()</h3>
633 <pre class="programlisting"><span class="returnvalue">gboolean</span>
634 udisks_daemon_get_disable_modules (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
635 <p>Gets <em class="parameter"><code>daemon</code></em>
636 setting whether modules should never be loaded.</p>
637 <div class="refsect3">
638 <a name="udisks-daemon-get-disable-modules.parameters"></a><h4>Parameters</h4>
639 <div class="informaltable"><table class="informaltable" width="100%" border="0">
640 <colgroup>
641 <col width="150px" class="parameters_name">
642 <col class="parameters_description">
643 <col width="200px" class="parameters_annotations">
644 </colgroup>
645 <tbody><tr>
646 <td class="parameter_name"><p>daemon</p></td>
647 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
648 <td class="parameter_annotations"> </td>
649 </tr></tbody>
650 </table></div>
651 </div>
652 <div class="refsect3">
653 <a name="udisks-daemon-get-disable-modules.returns"></a><h4>Returns</h4>
654 <p> <code class="literal">TRUE</code> if --disable-modules commandline switch has been specified.</p>
655 </div>
656 </div>
657 <hr>
658 <div class="refsect2">
659 <a name="udisks-daemon-get-force-load-modules"></a><h3>udisks_daemon_get_force_load_modules ()</h3>
660 <pre class="programlisting"><span class="returnvalue">gboolean</span>
661 udisks_daemon_get_force_load_modules (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
662 <p>Gets <em class="parameter"><code>daemon</code></em>
663 setting whether modules should be activated upon start.</p>
664 <div class="refsect3">
665 <a name="udisks-daemon-get-force-load-modules.parameters"></a><h4>Parameters</h4>
666 <div class="informaltable"><table class="informaltable" width="100%" border="0">
667 <colgroup>
668 <col width="150px" class="parameters_name">
669 <col class="parameters_description">
670 <col width="200px" class="parameters_annotations">
671 </colgroup>
672 <tbody><tr>
673 <td class="parameter_name"><p>daemon</p></td>
674 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
675 <td class="parameter_annotations"> </td>
676 </tr></tbody>
677 </table></div>
678 </div>
679 <div class="refsect3">
680 <a name="udisks-daemon-get-force-load-modules.returns"></a><h4>Returns</h4>
681 <p> <code class="literal">TRUE</code> if --force-load-modules commandline switch has been specified.</p>
682 </div>
683 </div>
684 <hr>
685 <div class="refsect2">
686 <a name="udisks-daemon-get-module-manager"></a><h3>udisks_daemon_get_module_manager ()</h3>
687 <pre class="programlisting"><a class="link" href="udisks2-UDisksModuleManager.html#UDisksModuleManager" title="UDisksModuleManager"><span class="returnvalue">UDisksModuleManager</span></a> *
688 udisks_daemon_get_module_manager (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
689 <p>Gets the module manager used by <em class="parameter"><code>daemon</code></em>
690 .</p>
691 <div class="refsect3">
692 <a name="udisks-daemon-get-module-manager.parameters"></a><h4>Parameters</h4>
693 <div class="informaltable"><table class="informaltable" width="100%" border="0">
694 <colgroup>
695 <col width="150px" class="parameters_name">
696 <col class="parameters_description">
697 <col width="200px" class="parameters_annotations">
698 </colgroup>
699 <tbody><tr>
700 <td class="parameter_name"><p>daemon</p></td>
701 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
702 <td class="parameter_annotations"> </td>
703 </tr></tbody>
704 </table></div>
705 </div>
706 <div class="refsect3">
707 <a name="udisks-daemon-get-module-manager.returns"></a><h4>Returns</h4>
708 <p> A <a class="link" href="udisks2-UDisksModuleManager.html#UDisksModuleManager" title="UDisksModuleManager"><span class="type">UDisksModuleManager</span></a>. Do not free, the object is owned by <em class="parameter"><code>daemon</code></em>
709 .</p>
710 </div>
711 </div>
712 <hr>
713 <div class="refsect2">
714 <a name="udisks-daemon-get-config-manager"></a><h3>udisks_daemon_get_config_manager ()</h3>
715 <pre class="programlisting"><span class="returnvalue">UDisksConfigManager</span> *
716 udisks_daemon_get_config_manager (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
717 <p>Gets the config manager used by <em class="parameter"><code>daemon</code></em>
718 .</p>
719 <div class="refsect3">
720 <a name="udisks-daemon-get-config-manager.parameters"></a><h4>Parameters</h4>
721 <div class="informaltable"><table class="informaltable" width="100%" border="0">
722 <colgroup>
723 <col width="150px" class="parameters_name">
724 <col class="parameters_description">
725 <col width="200px" class="parameters_annotations">
726 </colgroup>
727 <tbody><tr>
728 <td class="parameter_name"><p>daemon</p></td>
729 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
730 <td class="parameter_annotations"> </td>
731 </tr></tbody>
732 </table></div>
733 </div>
734 <div class="refsect3">
735 <a name="udisks-daemon-get-config-manager.returns"></a><h4>Returns</h4>
736 <p> A <span class="type">UDisksConfigManager</span>. Do not free, the object is owned by <em class="parameter"><code>daemon</code></em>
737 .</p>
738 </div>
739 </div>
740 <hr>
741 <div class="refsect2">
742 <a name="udisks-daemon-get-enable-tcrypt"></a><h3>udisks_daemon_get_enable_tcrypt ()</h3>
743 <pre class="programlisting"><span class="returnvalue">gboolean</span>
744 udisks_daemon_get_enable_tcrypt (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
745 <p>Gets <em class="parameter"><code>daemon</code></em>
746 setting whether devices should be tested for being TCRYPT
747 encrypted.</p>
748 <div class="refsect3">
749 <a name="udisks-daemon-get-enable-tcrypt.parameters"></a><h4>Parameters</h4>
750 <div class="informaltable"><table class="informaltable" width="100%" border="0">
751 <colgroup>
752 <col width="150px" class="parameters_name">
753 <col class="parameters_description">
754 <col width="200px" class="parameters_annotations">
755 </colgroup>
756 <tbody><tr>
757 <td class="parameter_name"><p>daemon</p></td>
758 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
759 <td class="parameter_annotations"> </td>
760 </tr></tbody>
761 </table></div>
762 </div>
763 <div class="refsect3">
764 <a name="udisks-daemon-get-enable-tcrypt.returns"></a><h4>Returns</h4>
765 <p> <code class="literal">TRUE</code> if "/etc/udisks2/tcrypt.conf" was an existing file during
766 daemon startup.</p>
767 </div>
768 </div>
769 <hr>
770 <div class="refsect2">
771 <a name="udisks-daemon-get-uninstalled"></a><h3>udisks_daemon_get_uninstalled ()</h3>
772 <pre class="programlisting"><span class="returnvalue">gboolean</span>
773 udisks_daemon_get_uninstalled (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
774 <p>Gets <em class="parameter"><code>daemon</code></em>
775 setting whether the modules should be loaded from the build
776 directory.</p>
777 <div class="refsect3">
778 <a name="udisks-daemon-get-uninstalled.parameters"></a><h4>Parameters</h4>
779 <div class="informaltable"><table class="informaltable" width="100%" border="0">
780 <colgroup>
781 <col width="150px" class="parameters_name">
782 <col class="parameters_description">
783 <col width="200px" class="parameters_annotations">
784 </colgroup>
785 <tbody><tr>
786 <td class="parameter_name"><p>daemon</p></td>
787 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
788 <td class="parameter_annotations"> </td>
789 </tr></tbody>
790 </table></div>
791 </div>
792 <div class="refsect3">
793 <a name="udisks-daemon-get-uninstalled.returns"></a><h4>Returns</h4>
794 <p> <code class="literal">TRUE</code> if --uninstalled commandline switch has been specified.</p>
795 </div>
796 </div>
797 <hr>
798 <div class="refsect2">
799 <a name="udisks-daemon-get-utab-monitor"></a><h3>udisks_daemon_get_utab_monitor ()</h3>
800 <pre class="programlisting"><a class="link" href="udisks2-UDisksUtabMonitor.html#UDisksUtabMonitor" title="UDisksUtabMonitor"><span class="returnvalue">UDisksUtabMonitor</span></a> *
801 udisks_daemon_get_utab_monitor (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
802 <p>Gets the utab monitor used by <em class="parameter"><code>daemon</code></em>
803 .</p>
804 <div class="refsect3">
805 <a name="udisks-daemon-get-utab-monitor.parameters"></a><h4>Parameters</h4>
806 <div class="informaltable"><table class="informaltable" width="100%" border="0">
807 <colgroup>
808 <col width="150px" class="parameters_name">
809 <col class="parameters_description">
810 <col width="200px" class="parameters_annotations">
811 </colgroup>
812 <tbody><tr>
813 <td class="parameter_name"><p>daemon</p></td>
814 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a></p></td>
815 <td class="parameter_annotations"> </td>
816 </tr></tbody>
817 </table></div>
818 </div>
819 <div class="refsect3">
820 <a name="udisks-daemon-get-utab-monitor.returns"></a><h4>Returns</h4>
821 <p> A <a class="link" href="udisks2-UDisksUtabMonitor.html#UDisksUtabMonitor" title="UDisksUtabMonitor"><span class="type">UDisksUtabMonitor</span></a>. Do not free, the object is owned by <em class="parameter"><code>daemon</code></em>
822 .</p>
823 </div>
824 </div>
825 <hr>
826 <div class="refsect2">
827 <a name="udisks-daemon-get-parent-for-tracking"></a><h3>udisks_daemon_get_parent_for_tracking ()</h3>
828 <pre class="programlisting"><span class="returnvalue">gchar</span> *
829 udisks_daemon_get_parent_for_tracking (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
830 <em class="parameter"><code>const <span class="type">gchar</span> *path</code></em>,
831 <em class="parameter"><code><span class="type">gchar</span> **uuid</code></em>);</pre>
832 <p>Finds parent block device and returns its object path and UUID.
833 If the return value is <code class="literal">NULL</code>, the value of <em class="parameter"><code>uuid</code></em>
834 has not been changed.</p>
835 <div class="refsect3">
836 <a name="udisks-daemon-get-parent-for-tracking.parameters"></a><h4>Parameters</h4>
837 <div class="informaltable"><table class="informaltable" width="100%" border="0">
838 <colgroup>
839 <col width="150px" class="parameters_name">
840 <col class="parameters_description">
841 <col width="200px" class="parameters_annotations">
842 </colgroup>
843 <tbody>
844 <tr>
845 <td class="parameter_name"><p>daemon</p></td>
846 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
847 <td class="parameter_annotations"> </td>
848 </tr>
849 <tr>
850 <td class="parameter_name"><p>path</p></td>
851 <td class="parameter_description"><p>object path of a child to find parent of</p></td>
852 <td class="parameter_annotations"> </td>
853 </tr>
854 <tr>
855 <td class="parameter_name"><p>uuid</p></td>
856 <td class="parameter_description"><p>a pointer to return parent UUID string</p></td>
857 <td class="parameter_annotations"> </td>
858 </tr>
859 </tbody>
860 </table></div>
861 </div>
862 <div class="refsect3">
863 <a name="udisks-daemon-get-parent-for-tracking.returns"></a><h4>Returns</h4>
864 <p>object path of the parent device. Free with <code class="function">g_free()</code>. </p>
865 <p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
866 </div>
867 </div>
868 <hr>
869 <div class="refsect2">
870 <a name="UDisksDaemonWaitFuncGeneric"></a><h3>UDisksDaemonWaitFuncGeneric ()</h3>
871 <pre class="programlisting"><span class="returnvalue">gpointer</span>
872 <span class="c_punctuation">(</span>*UDisksDaemonWaitFuncGeneric<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
873 <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
874 <p>Type for callback function used with <a class="link" href="UDisksDaemon.html#udisks-daemon-wait-for-object-sync" title="udisks_daemon_wait_for_object_sync ()"><code class="function">udisks_daemon_wait_for_object_sync()</code></a>.</p>
875 <div class="refsect3">
876 <a name="UDisksDaemonWaitFuncGeneric.parameters"></a><h4>Parameters</h4>
877 <div class="informaltable"><table class="informaltable" width="100%" border="0">
878 <colgroup>
879 <col width="150px" class="parameters_name">
880 <col class="parameters_description">
881 <col width="200px" class="parameters_annotations">
882 </colgroup>
883 <tbody>
884 <tr>
885 <td class="parameter_name"><p>daemon</p></td>
886 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
887 <td class="parameter_annotations"> </td>
888 </tr>
889 <tr>
890 <td class="parameter_name"><p>user_data</p></td>
891 <td class="parameter_description"><p>The <span class="type">gpointer</span> passed to <a class="link" href="UDisksDaemon.html#udisks-daemon-wait-for-object-sync" title="udisks_daemon_wait_for_object_sync ()"><code class="function">udisks_daemon_wait_for_object_sync()</code></a>.</p></td>
892 <td class="parameter_annotations"> </td>
893 </tr>
894 </tbody>
895 </table></div>
896 </div>
897 <div class="refsect3">
898 <a name="UDisksDaemonWaitFuncGeneric.returns"></a><h4>Returns</h4>
899 <p><code class="literal">NULL</code> if the object to wait for was not found, otherwise a full reference to a <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a>. </p>
900 <p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
901 </div>
902 </div>
903 <hr>
904 <div class="refsect2">
905 <a name="udisks-daemon-wait-for-object-sync"></a><h3>udisks_daemon_wait_for_object_sync ()</h3>
906 <pre class="programlisting"><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
907 udisks_daemon_wait_for_object_sync (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
908 <em class="parameter"><code><span class="type">UDisksDaemonWaitFuncObject</span> wait_func</code></em>,
909 <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
910 <em class="parameter"><code><span class="type">GDestroyNotify</span> user_data_free_func</code></em>,
911 <em class="parameter"><code><span class="type">guint</span> timeout_seconds</code></em>,
912 <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
913 <p>Blocks the calling thread until an object picked by <em class="parameter"><code>wait_func</code></em>
914 is
915 available or until <em class="parameter"><code>timeout_seconds</code></em>
916 has passed (in which case the
917 function fails with <a class="link" href="udisks2-UDisksError.html#UDISKS-ERROR-TIMED-OUT:CAPS"><code class="literal">UDISKS_ERROR_TIMED_OUT</code></a>).</p>
918 <p>Note that <em class="parameter"><code>wait_func</code></em>
919 will be called from time to time - for example
920 if there is a device event.</p>
921 <div class="refsect3">
922 <a name="udisks-daemon-wait-for-object-sync.parameters"></a><h4>Parameters</h4>
923 <div class="informaltable"><table class="informaltable" width="100%" border="0">
924 <colgroup>
925 <col width="150px" class="parameters_name">
926 <col class="parameters_description">
927 <col width="200px" class="parameters_annotations">
928 </colgroup>
929 <tbody>
930 <tr>
931 <td class="parameter_name"><p>daemon</p></td>
932 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
933 <td class="parameter_annotations"> </td>
934 </tr>
935 <tr>
936 <td class="parameter_name"><p>wait_func</p></td>
937 <td class="parameter_description"><p>Function to check for desired object.</p></td>
938 <td class="parameter_annotations"> </td>
939 </tr>
940 <tr>
941 <td class="parameter_name"><p>user_data</p></td>
942 <td class="parameter_description"><p>User data to pass to <em class="parameter"><code>wait_func</code></em>
943 .</p></td>
944 <td class="parameter_annotations"> </td>
945 </tr>
946 <tr>
947 <td class="parameter_name"><p>user_data_free_func</p></td>
948 <td class="parameter_description"><p>Function to free <em class="parameter"><code>user_data</code></em>
949 or <code class="literal">NULL</code>. </p></td>
950 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
951 </tr>
952 <tr>
953 <td class="parameter_name"><p>timeout_seconds</p></td>
954 <td class="parameter_description"><p>Maximum time to wait for the object (in seconds) or 0 to never wait.</p></td>
955 <td class="parameter_annotations"> </td>
956 </tr>
957 <tr>
958 <td class="parameter_name"><p>error</p></td>
959 <td class="parameter_description"><p>Return location for error or <code class="literal">NULL</code>. </p></td>
960 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
961 </tr>
962 </tbody>
963 </table></div>
964 </div>
965 <div class="refsect3">
966 <a name="udisks-daemon-wait-for-object-sync.returns"></a><h4>Returns</h4>
967 <p>The object picked by <em class="parameter"><code>wait_func</code></em>
968 or <code class="literal">NULL</code> if <em class="parameter"><code>error</code></em>
969 is set. </p>
970 <p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
971 </div>
972 </div>
973 <hr>
974 <div class="refsect2">
975 <a name="udisks-daemon-get-objects"></a><h3>udisks_daemon_get_objects ()</h3>
976 <pre class="programlisting"><span class="returnvalue">GList</span> *
977 udisks_daemon_get_objects (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
978 <p>Gets all D-Bus objects exported by <em class="parameter"><code>daemon</code></em>
979 .</p>
980 <div class="refsect3">
981 <a name="udisks-daemon-get-objects.parameters"></a><h4>Parameters</h4>
982 <div class="informaltable"><table class="informaltable" width="100%" border="0">
983 <colgroup>
984 <col width="150px" class="parameters_name">
985 <col class="parameters_description">
986 <col width="200px" class="parameters_annotations">
987 </colgroup>
988 <tbody><tr>
989 <td class="parameter_name"><p>daemon</p></td>
990 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
991 <td class="parameter_annotations"> </td>
992 </tr></tbody>
993 </table></div>
994 </div>
995 <div class="refsect3">
996 <a name="udisks-daemon-get-objects.returns"></a><h4>Returns</h4>
997 <p>A list of <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> instances. The returned list should be freed with <code class="function">g_list_free()</code> after each element has been freed with <code class="function">g_object_unref()</code>. </p>
998 <p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> UDisksObject]</span></p>
999 </div>
1000 </div>
1001 <hr>
1002 <div class="refsect2">
1003 <a name="udisks-daemon-find-object"></a><h3>udisks_daemon_find_object ()</h3>
1004 <pre class="programlisting"><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
1005 udisks_daemon_find_object (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
1006 <em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>);</pre>
1007 <p>Finds an exported object with the object path given by <em class="parameter"><code>object_path</code></em>
1008 .</p>
1009 <div class="refsect3">
1010 <a name="udisks-daemon-find-object.parameters"></a><h4>Parameters</h4>
1011 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1012 <colgroup>
1013 <col width="150px" class="parameters_name">
1014 <col class="parameters_description">
1015 <col width="200px" class="parameters_annotations">
1016 </colgroup>
1017 <tbody>
1018 <tr>
1019 <td class="parameter_name"><p>daemon</p></td>
1020 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1021 <td class="parameter_annotations"> </td>
1022 </tr>
1023 <tr>
1024 <td class="parameter_name"><p>object_path</p></td>
1025 <td class="parameter_description"><p>A <span class="type">dev_t</span> with the device number to find.</p></td>
1026 <td class="parameter_annotations"> </td>
1027 </tr>
1028 </tbody>
1029 </table></div>
1030 </div>
1031 <div class="refsect3">
1032 <a name="udisks-daemon-find-object.returns"></a><h4>Returns</h4>
1033 <p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> or <code class="literal">NULL</code> if not found. Free with <code class="function">g_object_unref()</code>. </p>
1034 <p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
1035 </div>
1036 </div>
1037 <hr>
1038 <div class="refsect2">
1039 <a name="udisks-daemon-find-block"></a><h3>udisks_daemon_find_block ()</h3>
1040 <pre class="programlisting"><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
1041 udisks_daemon_find_block (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
1042 <em class="parameter"><code><span class="type">dev_t</span> block_device_number</code></em>);</pre>
1043 <p>Finds a block device with the number given by <em class="parameter"><code>block_device_number</code></em>
1044 .</p>
1045 <div class="refsect3">
1046 <a name="udisks-daemon-find-block.parameters"></a><h4>Parameters</h4>
1047 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1048 <colgroup>
1049 <col width="150px" class="parameters_name">
1050 <col class="parameters_description">
1051 <col width="200px" class="parameters_annotations">
1052 </colgroup>
1053 <tbody>
1054 <tr>
1055 <td class="parameter_name"><p>daemon</p></td>
1056 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1057 <td class="parameter_annotations"> </td>
1058 </tr>
1059 <tr>
1060 <td class="parameter_name"><p>block_device_number</p></td>
1061 <td class="parameter_description"><p>A <span class="type">dev_t</span> with the device number to find.</p></td>
1062 <td class="parameter_annotations"> </td>
1063 </tr>
1064 </tbody>
1065 </table></div>
1066 </div>
1067 <div class="refsect3">
1068 <a name="udisks-daemon-find-block.returns"></a><h4>Returns</h4>
1069 <p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> or <code class="literal">NULL</code> if not found. Free with <code class="function">g_object_unref()</code>. </p>
1070 <p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
1071 </div>
1072 </div>
1073 <hr>
1074 <div class="refsect2">
1075 <a name="udisks-daemon-find-block-by-device-file"></a><h3>udisks_daemon_find_block_by_device_file ()</h3>
1076 <pre class="programlisting"><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
1077 udisks_daemon_find_block_by_device_file
1078 (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
1079 <em class="parameter"><code>const <span class="type">gchar</span> *device_file</code></em>);</pre>
1080 <p>Finds a block device with device file given by <em class="parameter"><code>device_file</code></em>
1081 .</p>
1082 <div class="refsect3">
1083 <a name="udisks-daemon-find-block-by-device-file.parameters"></a><h4>Parameters</h4>
1084 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1085 <colgroup>
1086 <col width="150px" class="parameters_name">
1087 <col class="parameters_description">
1088 <col width="200px" class="parameters_annotations">
1089 </colgroup>
1090 <tbody>
1091 <tr>
1092 <td class="parameter_name"><p>daemon</p></td>
1093 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1094 <td class="parameter_annotations"> </td>
1095 </tr>
1096 <tr>
1097 <td class="parameter_name"><p>device_file</p></td>
1098 <td class="parameter_description"><p>A device file.</p></td>
1099 <td class="parameter_annotations"> </td>
1100 </tr>
1101 </tbody>
1102 </table></div>
1103 </div>
1104 <div class="refsect3">
1105 <a name="udisks-daemon-find-block-by-device-file.returns"></a><h4>Returns</h4>
1106 <p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> or <code class="literal">NULL</code> if not found. Free with <code class="function">g_object_unref()</code>. </p>
1107 <p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
1108 </div>
1109 </div>
1110 <hr>
1111 <div class="refsect2">
1112 <a name="udisks-daemon-find-block-by-sysfs-path"></a><h3>udisks_daemon_find_block_by_sysfs_path ()</h3>
1113 <pre class="programlisting"><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
1114 udisks_daemon_find_block_by_sysfs_path
1115 (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
1116 <em class="parameter"><code>const <span class="type">gchar</span> *sysfs_path</code></em>);</pre>
1117 <p>Finds a block device with a sysfs path given by <em class="parameter"><code>sysfs_path</code></em>
1118 .</p>
1119 <div class="refsect3">
1120 <a name="udisks-daemon-find-block-by-sysfs-path.parameters"></a><h4>Parameters</h4>
1121 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1122 <colgroup>
1123 <col width="150px" class="parameters_name">
1124 <col class="parameters_description">
1125 <col width="200px" class="parameters_annotations">
1126 </colgroup>
1127 <tbody>
1128 <tr>
1129 <td class="parameter_name"><p>daemon</p></td>
1130 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1131 <td class="parameter_annotations"> </td>
1132 </tr>
1133 <tr>
1134 <td class="parameter_name"><p>sysfs_path</p></td>
1135 <td class="parameter_description"><p>A sysfs path.</p></td>
1136 <td class="parameter_annotations"> </td>
1137 </tr>
1138 </tbody>
1139 </table></div>
1140 </div>
1141 <div class="refsect3">
1142 <a name="udisks-daemon-find-block-by-sysfs-path.returns"></a><h4>Returns</h4>
1143 <p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> or <code class="literal">NULL</code> if not found. Free with <code class="function">g_object_unref()</code>. </p>
1144 <p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
1145 </div>
1146 </div>
1147 <hr>
1148 <div class="refsect2">
1149 <a name="udisks-daemon-launch-simple-job"></a><h3>udisks_daemon_launch_simple_job ()</h3>
1150 <pre class="programlisting"><a class="link" href="UDisksBaseJob.html" title="UDisksBaseJob"><span class="returnvalue">UDisksBaseJob</span></a> *
1151 udisks_daemon_launch_simple_job (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
1152 <em class="parameter"><code><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> *object</code></em>,
1153 <em class="parameter"><code>const <span class="type">gchar</span> *job_operation</code></em>,
1154 <em class="parameter"><code><span class="type">uid_t</span> job_started_by_uid</code></em>,
1155 <em class="parameter"><code><span class="type">gboolean</span> no_inhibit</code></em>,
1156 <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>);</pre>
1157 <p>Launches a new simple job.</p>
1158 <p>The returned object will be exported on the bus until the
1159 <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signal is emitted on the object. It is not
1160 valid to use the returned object after this signal fires.</p>
1161 <div class="refsect3">
1162 <a name="udisks-daemon-launch-simple-job.parameters"></a><h4>Parameters</h4>
1163 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1164 <colgroup>
1165 <col width="150px" class="parameters_name">
1166 <col class="parameters_description">
1167 <col width="200px" class="parameters_annotations">
1168 </colgroup>
1169 <tbody>
1170 <tr>
1171 <td class="parameter_name"><p>daemon</p></td>
1172 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1173 <td class="parameter_annotations"> </td>
1174 </tr>
1175 <tr>
1176 <td class="parameter_name"><p>object</p></td>
1177 <td class="parameter_description"><p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> to add to the job or <code class="literal">NULL</code>. </p></td>
1178 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1179 </tr>
1180 <tr>
1181 <td class="parameter_name"><p>job_operation</p></td>
1182 <td class="parameter_description"><p>The operation for the job.</p></td>
1183 <td class="parameter_annotations"> </td>
1184 </tr>
1185 <tr>
1186 <td class="parameter_name"><p>job_started_by_uid</p></td>
1187 <td class="parameter_description"><p>The user who started the job.</p></td>
1188 <td class="parameter_annotations"> </td>
1189 </tr>
1190 <tr>
1191 <td class="parameter_name"><p>no_inhibit</p></td>
1192 <td class="parameter_description"><p>Avoid placing system inhibitor lock.</p></td>
1193 <td class="parameter_annotations"> </td>
1194 </tr>
1195 <tr>
1196 <td class="parameter_name"><p>cancellable</p></td>
1197 <td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>.</p></td>
1198 <td class="parameter_annotations"> </td>
1199 </tr>
1200 </tbody>
1201 </table></div>
1202 </div>
1203 <div class="refsect3">
1204 <a name="udisks-daemon-launch-simple-job.returns"></a><h4>Returns</h4>
1205 <p> A <a class="link" href="UDisksSimpleJob.html" title="UDisksSimpleJob"><span class="type">UDisksSimpleJob</span></a> object. Do not free, the object
1206 belongs to <em class="parameter"><code>manager</code></em>
1207 .</p>
1208 </div>
1209 </div>
1210 <hr>
1211 <div class="refsect2">
1212 <a name="udisks-daemon-launch-spawned-job"></a><h3>udisks_daemon_launch_spawned_job ()</h3>
1213 <pre class="programlisting"><a class="link" href="UDisksBaseJob.html" title="UDisksBaseJob"><span class="returnvalue">UDisksBaseJob</span></a> *
1214 udisks_daemon_launch_spawned_job (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
1215 <em class="parameter"><code><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> *object</code></em>,
1216 <em class="parameter"><code>const <span class="type">gchar</span> *job_operation</code></em>,
1217 <em class="parameter"><code><span class="type">uid_t</span> job_started_by_uid</code></em>,
1218 <em class="parameter"><code><span class="type">gboolean</span> no_inhibit</code></em>,
1219 <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1220 <em class="parameter"><code><span class="type">uid_t</span> run_as_uid</code></em>,
1221 <em class="parameter"><code><span class="type">uid_t</span> run_as_euid</code></em>,
1222 <em class="parameter"><code>const <span class="type">gchar</span> *input_string</code></em>,
1223 <em class="parameter"><code>const <span class="type">gchar</span> *command_line_format</code></em>,
1224 <em class="parameter"><code>...</code></em>);</pre>
1225 <p>Launches a new job for <em class="parameter"><code>command_line_format</code></em>
1226 .</p>
1227 <p>The job is not started automatically! Use <a class="link" href="UDisksSpawnedJob.html#udisks-spawned-job-start" title="udisks_spawned_job_start ()"><code class="function">udisks_spawned_job_start()</code></a> to start
1228 the job after <a class="link" href="UDisksSpawnedJob.html#UDisksSpawnedJob-spawned-job-completed" title="The “spawned-job-completed” signal"><span class="type">“spawned-job-completed”</span></a> or
1229 <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signals are connected (to get notified when the job is
1230 done). This is to prevent a race condition with the spawned process
1231 terminating before the signals are connected in which case the signal
1232 handlers are never triggered.</p>
1233 <p>The returned object will be exported on the bus until the
1234 <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signal is emitted on the object. It is not
1235 valid to use the returned object after this signal fires.</p>
1236 <div class="refsect3">
1237 <a name="udisks-daemon-launch-spawned-job.parameters"></a><h4>Parameters</h4>
1238 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1239 <colgroup>
1240 <col width="150px" class="parameters_name">
1241 <col class="parameters_description">
1242 <col width="200px" class="parameters_annotations">
1243 </colgroup>
1244 <tbody>
1245 <tr>
1246 <td class="parameter_name"><p>daemon</p></td>
1247 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1248 <td class="parameter_annotations"> </td>
1249 </tr>
1250 <tr>
1251 <td class="parameter_name"><p>object</p></td>
1252 <td class="parameter_description"><p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> to add to the job or <code class="literal">NULL</code>. </p></td>
1253 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1254 </tr>
1255 <tr>
1256 <td class="parameter_name"><p>job_operation</p></td>
1257 <td class="parameter_description"><p>The operation for the job.</p></td>
1258 <td class="parameter_annotations"> </td>
1259 </tr>
1260 <tr>
1261 <td class="parameter_name"><p>job_started_by_uid</p></td>
1262 <td class="parameter_description"><p>The user who started the job.</p></td>
1263 <td class="parameter_annotations"> </td>
1264 </tr>
1265 <tr>
1266 <td class="parameter_name"><p>no_inhibit</p></td>
1267 <td class="parameter_description"><p>Avoid placing system inhibitor lock.</p></td>
1268 <td class="parameter_annotations"> </td>
1269 </tr>
1270 <tr>
1271 <td class="parameter_name"><p>cancellable</p></td>
1272 <td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>.</p></td>
1273 <td class="parameter_annotations"> </td>
1274 </tr>
1275 <tr>
1276 <td class="parameter_name"><p>run_as_uid</p></td>
1277 <td class="parameter_description"><p>The <span class="type">uid_t</span> to run the command as.</p></td>
1278 <td class="parameter_annotations"> </td>
1279 </tr>
1280 <tr>
1281 <td class="parameter_name"><p>run_as_euid</p></td>
1282 <td class="parameter_description"><p>The effective <span class="type">uid_t</span> to run the command as.</p></td>
1283 <td class="parameter_annotations"> </td>
1284 </tr>
1285 <tr>
1286 <td class="parameter_name"><p>input_string</p></td>
1287 <td class="parameter_description"><p>A string to write to stdin of the spawned program or <code class="literal">NULL</code>.</p></td>
1288 <td class="parameter_annotations"> </td>
1289 </tr>
1290 <tr>
1291 <td class="parameter_name"><p>command_line_format</p></td>
1292 <td class="parameter_description"><p>printf()-style format for the command line to spawn.</p></td>
1293 <td class="parameter_annotations"> </td>
1294 </tr>
1295 <tr>
1296 <td class="parameter_name"><p>...</p></td>
1297 <td class="parameter_description"><p>Arguments for <em class="parameter"><code>command_line_format</code></em>
1298 .</p></td>
1299 <td class="parameter_annotations"> </td>
1300 </tr>
1301 </tbody>
1302 </table></div>
1303 </div>
1304 <div class="refsect3">
1305 <a name="udisks-daemon-launch-spawned-job.returns"></a><h4>Returns</h4>
1306 <p> A <a class="link" href="UDisksSpawnedJob.html" title="UDisksSpawnedJob"><span class="type">UDisksSpawnedJob</span></a> object. Do not free, the object
1307 belongs to <em class="parameter"><code>manager</code></em>
1308 .</p>
1309 </div>
1310 </div>
1311 <hr>
1312 <div class="refsect2">
1313 <a name="udisks-daemon-launch-spawned-job-sync"></a><h3>udisks_daemon_launch_spawned_job_sync ()</h3>
1314 <pre class="programlisting"><span class="returnvalue">gboolean</span>
1315 udisks_daemon_launch_spawned_job_sync (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
1316 <em class="parameter"><code><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> *object</code></em>,
1317 <em class="parameter"><code>const <span class="type">gchar</span> *job_operation</code></em>,
1318 <em class="parameter"><code><span class="type">uid_t</span> job_started_by_uid</code></em>,
1319 <em class="parameter"><code><span class="type">gboolean</span> no_inhibit</code></em>,
1320 <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1321 <em class="parameter"><code><span class="type">uid_t</span> run_as_uid</code></em>,
1322 <em class="parameter"><code><span class="type">uid_t</span> run_as_euid</code></em>,
1323 <em class="parameter"><code><span class="type">gint</span> *out_status</code></em>,
1324 <em class="parameter"><code><span class="type">gchar</span> **out_message</code></em>,
1325 <em class="parameter"><code>const <span class="type">gchar</span> *input_string</code></em>,
1326 <em class="parameter"><code>const <span class="type">gchar</span> *command_line_format</code></em>,
1327 <em class="parameter"><code>...</code></em>);</pre>
1328 <p>Like <a class="link" href="UDisksDaemon.html#udisks-daemon-launch-spawned-job" title="udisks_daemon_launch_spawned_job ()"><code class="function">udisks_daemon_launch_spawned_job()</code></a> but blocks the calling
1329 thread until the job completes.</p>
1330 <div class="refsect3">
1331 <a name="udisks-daemon-launch-spawned-job-sync.parameters"></a><h4>Parameters</h4>
1332 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1333 <colgroup>
1334 <col width="150px" class="parameters_name">
1335 <col class="parameters_description">
1336 <col width="200px" class="parameters_annotations">
1337 </colgroup>
1338 <tbody>
1339 <tr>
1340 <td class="parameter_name"><p>daemon</p></td>
1341 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1342 <td class="parameter_annotations"> </td>
1343 </tr>
1344 <tr>
1345 <td class="parameter_name"><p>object</p></td>
1346 <td class="parameter_description"><p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> to add to the job or <code class="literal">NULL</code>. </p></td>
1347 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1348 </tr>
1349 <tr>
1350 <td class="parameter_name"><p>job_operation</p></td>
1351 <td class="parameter_description"><p>The operation for the job.</p></td>
1352 <td class="parameter_annotations"> </td>
1353 </tr>
1354 <tr>
1355 <td class="parameter_name"><p>job_started_by_uid</p></td>
1356 <td class="parameter_description"><p>The user who started the job.</p></td>
1357 <td class="parameter_annotations"> </td>
1358 </tr>
1359 <tr>
1360 <td class="parameter_name"><p>no_inhibit</p></td>
1361 <td class="parameter_description"><p>Avoid placing system inhibitor lock.</p></td>
1362 <td class="parameter_annotations"> </td>
1363 </tr>
1364 <tr>
1365 <td class="parameter_name"><p>cancellable</p></td>
1366 <td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>.</p></td>
1367 <td class="parameter_annotations"> </td>
1368 </tr>
1369 <tr>
1370 <td class="parameter_name"><p>run_as_uid</p></td>
1371 <td class="parameter_description"><p>The <span class="type">uid_t</span> to run the command as.</p></td>
1372 <td class="parameter_annotations"> </td>
1373 </tr>
1374 <tr>
1375 <td class="parameter_name"><p>run_as_euid</p></td>
1376 <td class="parameter_description"><p>The effective <span class="type">uid_t</span> to run the command as.</p></td>
1377 <td class="parameter_annotations"> </td>
1378 </tr>
1379 <tr>
1380 <td class="parameter_name"><p>input_string</p></td>
1381 <td class="parameter_description"><p>A string to write to stdin of the spawned program or <code class="literal">NULL</code>.</p></td>
1382 <td class="parameter_annotations"> </td>
1383 </tr>
1384 <tr>
1385 <td class="parameter_name"><p>out_status</p></td>
1386 <td class="parameter_description"><p>Return location for the <em class="parameter"><code>status</code></em>
1387 parameter of the <a class="link" href="UDisksSpawnedJob.html#UDisksSpawnedJob-spawned-job-completed" title="The “spawned-job-completed” signal"><span class="type">“spawned-job-completed”</span></a> signal.</p></td>
1388 <td class="parameter_annotations"> </td>
1389 </tr>
1390 <tr>
1391 <td class="parameter_name"><p>out_message</p></td>
1392 <td class="parameter_description"><p>Return location for the <em class="parameter"><code>message</code></em>
1393 parameter of the <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signal.</p></td>
1394 <td class="parameter_annotations"> </td>
1395 </tr>
1396 <tr>
1397 <td class="parameter_name"><p>command_line_format</p></td>
1398 <td class="parameter_description"><p>printf()-style format for the command line to spawn.</p></td>
1399 <td class="parameter_annotations"> </td>
1400 </tr>
1401 <tr>
1402 <td class="parameter_name"><p>...</p></td>
1403 <td class="parameter_description"><p>Arguments for <em class="parameter"><code>command_line_format</code></em>
1404 .</p></td>
1405 <td class="parameter_annotations"> </td>
1406 </tr>
1407 </tbody>
1408 </table></div>
1409 </div>
1410 <div class="refsect3">
1411 <a name="udisks-daemon-launch-spawned-job-sync.returns"></a><h4>Returns</h4>
1412 <p> The <em class="parameter"><code>success</code></em>
1413 parameter of the <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signal.</p>
1414 </div>
1415 </div>
1416 <hr>
1417 <div class="refsect2">
1418 <a name="udisks-daemon-launch-spawned-job-gstring"></a><h3>udisks_daemon_launch_spawned_job_gstring ()</h3>
1419 <pre class="programlisting"><a class="link" href="UDisksBaseJob.html" title="UDisksBaseJob"><span class="returnvalue">UDisksBaseJob</span></a> *
1420 udisks_daemon_launch_spawned_job_gstring
1421 (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
1422 <em class="parameter"><code><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> *object</code></em>,
1423 <em class="parameter"><code>const <span class="type">gchar</span> *job_operation</code></em>,
1424 <em class="parameter"><code><span class="type">uid_t</span> job_started_by_uid</code></em>,
1425 <em class="parameter"><code><span class="type">gboolean</span> no_inhibit</code></em>,
1426 <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1427 <em class="parameter"><code><span class="type">uid_t</span> run_as_uid</code></em>,
1428 <em class="parameter"><code><span class="type">uid_t</span> run_as_euid</code></em>,
1429 <em class="parameter"><code><span class="type">GString</span> *input_string</code></em>,
1430 <em class="parameter"><code>const <span class="type">gchar</span> *command_line_format</code></em>,
1431 <em class="parameter"><code>...</code></em>);</pre>
1432 <p>Launches a new job for <em class="parameter"><code>command_line_format</code></em>
1433 .</p>
1434 <p>The job is not started automatically! Use <a class="link" href="UDisksSpawnedJob.html#udisks-spawned-job-start" title="udisks_spawned_job_start ()"><code class="function">udisks_spawned_job_start()</code></a> to start
1435 the job after <a class="link" href="UDisksSpawnedJob.html#UDisksSpawnedJob-spawned-job-completed" title="The “spawned-job-completed” signal"><span class="type">“spawned-job-completed”</span></a> or
1436 <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signals are connected (to get notified when the job is
1437 done). This is to prevent a race condition with the spawned process
1438 terminating before the signals are connected in which case the signal
1439 handlers are never triggered.</p>
1440 <p>The returned object will be exported on the bus until the
1441 <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signal is emitted on the object. It is not
1442 valid to use the returned object after this signal fires.</p>
1443 <p>This function is the same as udisks_daemon_launch_spawned_job, with
1444 the only difference that it takes a GString and is therefore able to
1445 handle binary inputs that contain '\0' bytes.</p>
1446 <div class="refsect3">
1447 <a name="udisks-daemon-launch-spawned-job-gstring.parameters"></a><h4>Parameters</h4>
1448 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1449 <colgroup>
1450 <col width="150px" class="parameters_name">
1451 <col class="parameters_description">
1452 <col width="200px" class="parameters_annotations">
1453 </colgroup>
1454 <tbody>
1455 <tr>
1456 <td class="parameter_name"><p>daemon</p></td>
1457 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1458 <td class="parameter_annotations"> </td>
1459 </tr>
1460 <tr>
1461 <td class="parameter_name"><p>object</p></td>
1462 <td class="parameter_description"><p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> to add to the job or <code class="literal">NULL</code>. </p></td>
1463 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1464 </tr>
1465 <tr>
1466 <td class="parameter_name"><p>job_operation</p></td>
1467 <td class="parameter_description"><p>The operation for the job.</p></td>
1468 <td class="parameter_annotations"> </td>
1469 </tr>
1470 <tr>
1471 <td class="parameter_name"><p>job_started_by_uid</p></td>
1472 <td class="parameter_description"><p>The user who started the job.</p></td>
1473 <td class="parameter_annotations"> </td>
1474 </tr>
1475 <tr>
1476 <td class="parameter_name"><p>no_inhibit</p></td>
1477 <td class="parameter_description"><p>Avoid placing system inhibitor lock.</p></td>
1478 <td class="parameter_annotations"> </td>
1479 </tr>
1480 <tr>
1481 <td class="parameter_name"><p>cancellable</p></td>
1482 <td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>.</p></td>
1483 <td class="parameter_annotations"> </td>
1484 </tr>
1485 <tr>
1486 <td class="parameter_name"><p>run_as_uid</p></td>
1487 <td class="parameter_description"><p>The <span class="type">uid_t</span> to run the command as.</p></td>
1488 <td class="parameter_annotations"> </td>
1489 </tr>
1490 <tr>
1491 <td class="parameter_name"><p>run_as_euid</p></td>
1492 <td class="parameter_description"><p>The effective <span class="type">uid_t</span> to run the command as.</p></td>
1493 <td class="parameter_annotations"> </td>
1494 </tr>
1495 <tr>
1496 <td class="parameter_name"><p>input_string</p></td>
1497 <td class="parameter_description"><p>A string to write to stdin of the spawned program or <code class="literal">NULL</code>.</p></td>
1498 <td class="parameter_annotations"> </td>
1499 </tr>
1500 <tr>
1501 <td class="parameter_name"><p>command_line_format</p></td>
1502 <td class="parameter_description"><p>printf()-style format for the command line to spawn.</p></td>
1503 <td class="parameter_annotations"> </td>
1504 </tr>
1505 <tr>
1506 <td class="parameter_name"><p>...</p></td>
1507 <td class="parameter_description"><p>Arguments for <em class="parameter"><code>command_line_format</code></em>
1508 .</p></td>
1509 <td class="parameter_annotations"> </td>
1510 </tr>
1511 </tbody>
1512 </table></div>
1513 </div>
1514 <div class="refsect3">
1515 <a name="udisks-daemon-launch-spawned-job-gstring.returns"></a><h4>Returns</h4>
1516 <p> A <a class="link" href="UDisksSpawnedJob.html" title="UDisksSpawnedJob"><span class="type">UDisksSpawnedJob</span></a> object. Do not free, the object
1517 belongs to <em class="parameter"><code>manager</code></em>
1518 .</p>
1519 </div>
1520 </div>
1521 <hr>
1522 <div class="refsect2">
1523 <a name="udisks-daemon-launch-spawned-job-gstring-sync"></a><h3>udisks_daemon_launch_spawned_job_gstring_sync ()</h3>
1524 <pre class="programlisting"><span class="returnvalue">gboolean</span>
1525 udisks_daemon_launch_spawned_job_gstring_sync
1526 (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
1527 <em class="parameter"><code><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> *object</code></em>,
1528 <em class="parameter"><code>const <span class="type">gchar</span> *job_operation</code></em>,
1529 <em class="parameter"><code><span class="type">uid_t</span> job_started_by_uid</code></em>,
1530 <em class="parameter"><code><span class="type">gboolean</span> no_inhibit</code></em>,
1531 <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1532 <em class="parameter"><code><span class="type">uid_t</span> run_as_uid</code></em>,
1533 <em class="parameter"><code><span class="type">uid_t</span> run_as_euid</code></em>,
1534 <em class="parameter"><code><span class="type">gint</span> *out_status</code></em>,
1535 <em class="parameter"><code><span class="type">gchar</span> **out_message</code></em>,
1536 <em class="parameter"><code><span class="type">GString</span> *input_string</code></em>,
1537 <em class="parameter"><code>const <span class="type">gchar</span> *command_line_format</code></em>,
1538 <em class="parameter"><code>...</code></em>);</pre>
1539 <p>Like <a class="link" href="UDisksDaemon.html#udisks-daemon-launch-spawned-job" title="udisks_daemon_launch_spawned_job ()"><code class="function">udisks_daemon_launch_spawned_job()</code></a> but blocks the calling
1540 thread until the job completes.</p>
1541 <p>This function is the same as udisks_daemon_launch_spawned_job_sync, with
1542 the only difference that it takes a GString and is therefore able to
1543 handle binary inputs that contain '\0' bytes.</p>
1544 <div class="refsect3">
1545 <a name="udisks-daemon-launch-spawned-job-gstring-sync.parameters"></a><h4>Parameters</h4>
1546 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1547 <colgroup>
1548 <col width="150px" class="parameters_name">
1549 <col class="parameters_description">
1550 <col width="200px" class="parameters_annotations">
1551 </colgroup>
1552 <tbody>
1553 <tr>
1554 <td class="parameter_name"><p>daemon</p></td>
1555 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1556 <td class="parameter_annotations"> </td>
1557 </tr>
1558 <tr>
1559 <td class="parameter_name"><p>object</p></td>
1560 <td class="parameter_description"><p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> to add to the job or <code class="literal">NULL</code>. </p></td>
1561 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1562 </tr>
1563 <tr>
1564 <td class="parameter_name"><p>job_operation</p></td>
1565 <td class="parameter_description"><p>The operation for the job.</p></td>
1566 <td class="parameter_annotations"> </td>
1567 </tr>
1568 <tr>
1569 <td class="parameter_name"><p>job_started_by_uid</p></td>
1570 <td class="parameter_description"><p>The user who started the job.</p></td>
1571 <td class="parameter_annotations"> </td>
1572 </tr>
1573 <tr>
1574 <td class="parameter_name"><p>no_inhibit</p></td>
1575 <td class="parameter_description"><p>Avoid placing system inhibitor lock.</p></td>
1576 <td class="parameter_annotations"> </td>
1577 </tr>
1578 <tr>
1579 <td class="parameter_name"><p>cancellable</p></td>
1580 <td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>.</p></td>
1581 <td class="parameter_annotations"> </td>
1582 </tr>
1583 <tr>
1584 <td class="parameter_name"><p>run_as_uid</p></td>
1585 <td class="parameter_description"><p>The <span class="type">uid_t</span> to run the command as.</p></td>
1586 <td class="parameter_annotations"> </td>
1587 </tr>
1588 <tr>
1589 <td class="parameter_name"><p>run_as_euid</p></td>
1590 <td class="parameter_description"><p>The effective <span class="type">uid_t</span> to run the command as.</p></td>
1591 <td class="parameter_annotations"> </td>
1592 </tr>
1593 <tr>
1594 <td class="parameter_name"><p>input_string</p></td>
1595 <td class="parameter_description"><p>A string to write to stdin of the spawned program or <code class="literal">NULL</code>.</p></td>
1596 <td class="parameter_annotations"> </td>
1597 </tr>
1598 <tr>
1599 <td class="parameter_name"><p>out_status</p></td>
1600 <td class="parameter_description"><p>Return location for the <em class="parameter"><code>status</code></em>
1601 parameter of the <a class="link" href="UDisksSpawnedJob.html#UDisksSpawnedJob-spawned-job-completed" title="The “spawned-job-completed” signal"><span class="type">“spawned-job-completed”</span></a> signal.</p></td>
1602 <td class="parameter_annotations"> </td>
1603 </tr>
1604 <tr>
1605 <td class="parameter_name"><p>out_message</p></td>
1606 <td class="parameter_description"><p>Return location for the <em class="parameter"><code>message</code></em>
1607 parameter of the <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signal.</p></td>
1608 <td class="parameter_annotations"> </td>
1609 </tr>
1610 <tr>
1611 <td class="parameter_name"><p>command_line_format</p></td>
1612 <td class="parameter_description"><p>printf()-style format for the command line to spawn.</p></td>
1613 <td class="parameter_annotations"> </td>
1614 </tr>
1615 <tr>
1616 <td class="parameter_name"><p>...</p></td>
1617 <td class="parameter_description"><p>Arguments for <em class="parameter"><code>command_line_format</code></em>
1618 .</p></td>
1619 <td class="parameter_annotations"> </td>
1620 </tr>
1621 </tbody>
1622 </table></div>
1623 </div>
1624 <div class="refsect3">
1625 <a name="udisks-daemon-launch-spawned-job-gstring-sync.returns"></a><h4>Returns</h4>
1626 <p> The <em class="parameter"><code>success</code></em>
1627 parameter of the <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signal.</p>
1628 </div>
1629 </div>
1630 <hr>
1631 <div class="refsect2">
1632 <a name="udisks-daemon-launch-threaded-job"></a><h3>udisks_daemon_launch_threaded_job ()</h3>
1633 <pre class="programlisting"><a class="link" href="UDisksBaseJob.html" title="UDisksBaseJob"><span class="returnvalue">UDisksBaseJob</span></a> *
1634 udisks_daemon_launch_threaded_job (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
1635 <em class="parameter"><code><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> *object</code></em>,
1636 <em class="parameter"><code>const <span class="type">gchar</span> *job_operation</code></em>,
1637 <em class="parameter"><code><span class="type">uid_t</span> job_started_by_uid</code></em>,
1638 <em class="parameter"><code><span class="type">gboolean</span> no_inhibit</code></em>,
1639 <em class="parameter"><code><a class="link" href="UDisksThreadedJob.html#UDisksThreadedJobFunc" title="UDisksThreadedJobFunc ()"><span class="type">UDisksThreadedJobFunc</span></a> job_func</code></em>,
1640 <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
1641 <em class="parameter"><code><span class="type">GDestroyNotify</span> user_data_free_func</code></em>,
1642 <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>);</pre>
1643 <p>Launches a new job by running <em class="parameter"><code>job_func</code></em>
1644 in a new dedicated thread.</p>
1645 <p>The job is not started automatically! Use <a class="link" href="UDisksThreadedJob.html#udisks-threaded-job-start" title="udisks_threaded_job_start ()"><code class="function">udisks_threaded_job_start()</code></a> to
1646 start the job after <a class="link" href="UDisksThreadedJob.html#UDisksThreadedJob-threaded-job-completed" title="The “threaded-job-completed” signal"><span class="type">“threaded-job-completed”</span></a> or
1647 <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signals are connected (to get notified when the job is
1648 done). This is to prevent a race condition with the <em class="parameter"><code>job_func</code></em>
1649 finishing
1650 before the signals are connected in which case the signal handlers are never
1651 triggered.</p>
1652 <p>Long-running jobs should periodically check <em class="parameter"><code>cancellable</code></em>
1653 to see if
1654 they have been cancelled.</p>
1655 <p>The returned object will be exported on the bus until the
1656 <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signal is emitted on the object. It is not
1657 valid to use the returned object after this signal fires.</p>
1658 <div class="refsect3">
1659 <a name="udisks-daemon-launch-threaded-job.parameters"></a><h4>Parameters</h4>
1660 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1661 <colgroup>
1662 <col width="150px" class="parameters_name">
1663 <col class="parameters_description">
1664 <col width="200px" class="parameters_annotations">
1665 </colgroup>
1666 <tbody>
1667 <tr>
1668 <td class="parameter_name"><p>daemon</p></td>
1669 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1670 <td class="parameter_annotations"> </td>
1671 </tr>
1672 <tr>
1673 <td class="parameter_name"><p>object</p></td>
1674 <td class="parameter_description"><p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> to add to the job or <code class="literal">NULL</code>. </p></td>
1675 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1676 </tr>
1677 <tr>
1678 <td class="parameter_name"><p>job_operation</p></td>
1679 <td class="parameter_description"><p>The operation for the job.</p></td>
1680 <td class="parameter_annotations"> </td>
1681 </tr>
1682 <tr>
1683 <td class="parameter_name"><p>job_started_by_uid</p></td>
1684 <td class="parameter_description"><p>The user who started the job.</p></td>
1685 <td class="parameter_annotations"> </td>
1686 </tr>
1687 <tr>
1688 <td class="parameter_name"><p>no_inhibit</p></td>
1689 <td class="parameter_description"><p>Avoid placing system inhibitor lock.</p></td>
1690 <td class="parameter_annotations"> </td>
1691 </tr>
1692 <tr>
1693 <td class="parameter_name"><p>job_func</p></td>
1694 <td class="parameter_description"><p>The function to run in another thread.</p></td>
1695 <td class="parameter_annotations"> </td>
1696 </tr>
1697 <tr>
1698 <td class="parameter_name"><p>user_data</p></td>
1699 <td class="parameter_description"><p>User data to pass to <em class="parameter"><code>job_func</code></em>
1700 .</p></td>
1701 <td class="parameter_annotations"> </td>
1702 </tr>
1703 <tr>
1704 <td class="parameter_name"><p>user_data_free_func</p></td>
1705 <td class="parameter_description"><p>Function to free <em class="parameter"><code>user_data</code></em>
1706 with or <code class="literal">NULL</code>.</p></td>
1707 <td class="parameter_annotations"> </td>
1708 </tr>
1709 <tr>
1710 <td class="parameter_name"><p>cancellable</p></td>
1711 <td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>.</p></td>
1712 <td class="parameter_annotations"> </td>
1713 </tr>
1714 </tbody>
1715 </table></div>
1716 </div>
1717 <div class="refsect3">
1718 <a name="udisks-daemon-launch-threaded-job.returns"></a><h4>Returns</h4>
1719 <p> A <a class="link" href="UDisksThreadedJob.html" title="UDisksThreadedJob"><span class="type">UDisksThreadedJob</span></a> object. Do not free, the object
1720 belongs to <em class="parameter"><code>manager</code></em>
1721 .</p>
1722 </div>
1723 </div>
1724 <hr>
1725 <div class="refsect2">
1726 <a name="udisks-daemon-launch-threaded-job-sync"></a><h3>udisks_daemon_launch_threaded_job_sync ()</h3>
1727 <pre class="programlisting"><span class="returnvalue">gboolean</span>
1728 udisks_daemon_launch_threaded_job_sync
1729 (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>,
1730 <em class="parameter"><code><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> *object</code></em>,
1731 <em class="parameter"><code>const <span class="type">gchar</span> *job_operation</code></em>,
1732 <em class="parameter"><code><span class="type">uid_t</span> job_started_by_uid</code></em>,
1733 <em class="parameter"><code><span class="type">gboolean</span> no_inhibit</code></em>,
1734 <em class="parameter"><code><a class="link" href="UDisksThreadedJob.html#UDisksThreadedJobFunc" title="UDisksThreadedJobFunc ()"><span class="type">UDisksThreadedJobFunc</span></a> job_func</code></em>,
1735 <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
1736 <em class="parameter"><code><span class="type">GDestroyNotify</span> user_data_free_func</code></em>,
1737 <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
1738 <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
1739 <p>Like <a class="link" href="UDisksDaemon.html#udisks-daemon-launch-threaded-job" title="udisks_daemon_launch_threaded_job ()"><code class="function">udisks_daemon_launch_threaded_job()</code></a> but blocks the calling
1740 thread until the job completes.</p>
1741 <div class="refsect3">
1742 <a name="udisks-daemon-launch-threaded-job-sync.parameters"></a><h4>Parameters</h4>
1743 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1744 <colgroup>
1745 <col width="150px" class="parameters_name">
1746 <col class="parameters_description">
1747 <col width="200px" class="parameters_annotations">
1748 </colgroup>
1749 <tbody>
1750 <tr>
1751 <td class="parameter_name"><p>daemon</p></td>
1752 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1753 <td class="parameter_annotations"> </td>
1754 </tr>
1755 <tr>
1756 <td class="parameter_name"><p>object</p></td>
1757 <td class="parameter_description"><p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> to add to the job or <code class="literal">NULL</code>. </p></td>
1758 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1759 </tr>
1760 <tr>
1761 <td class="parameter_name"><p>job_operation</p></td>
1762 <td class="parameter_description"><p>The operation for the job.</p></td>
1763 <td class="parameter_annotations"> </td>
1764 </tr>
1765 <tr>
1766 <td class="parameter_name"><p>job_started_by_uid</p></td>
1767 <td class="parameter_description"><p>The user who started the job.</p></td>
1768 <td class="parameter_annotations"> </td>
1769 </tr>
1770 <tr>
1771 <td class="parameter_name"><p>no_inhibit</p></td>
1772 <td class="parameter_description"><p>Avoid placing system inhibitor lock.</p></td>
1773 <td class="parameter_annotations"> </td>
1774 </tr>
1775 <tr>
1776 <td class="parameter_name"><p>job_func</p></td>
1777 <td class="parameter_description"><p>The function to run in another thread.</p></td>
1778 <td class="parameter_annotations"> </td>
1779 </tr>
1780 <tr>
1781 <td class="parameter_name"><p>user_data</p></td>
1782 <td class="parameter_description"><p>User data to pass to <em class="parameter"><code>job_func</code></em>
1783 .</p></td>
1784 <td class="parameter_annotations"> </td>
1785 </tr>
1786 <tr>
1787 <td class="parameter_name"><p>user_data_free_func</p></td>
1788 <td class="parameter_description"><p>Function to free <em class="parameter"><code>user_data</code></em>
1789 with or <code class="literal">NULL</code>.</p></td>
1790 <td class="parameter_annotations"> </td>
1791 </tr>
1792 <tr>
1793 <td class="parameter_name"><p>cancellable</p></td>
1794 <td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>.</p></td>
1795 <td class="parameter_annotations"> </td>
1796 </tr>
1797 <tr>
1798 <td class="parameter_name"><p>error</p></td>
1799 <td class="parameter_description"><p>The <span class="type">GError</span> set by the <a class="link" href="UDisksThreadedJob.html#UDisksThreadedJobFunc" title="UDisksThreadedJobFunc ()"><span class="type">UDisksThreadedJobFunc</span></a>.</p></td>
1800 <td class="parameter_annotations"> </td>
1801 </tr>
1802 </tbody>
1803 </table></div>
1804 </div>
1805 <div class="refsect3">
1806 <a name="udisks-daemon-launch-threaded-job-sync.returns"></a><h4>Returns</h4>
1807 <p> The <em class="parameter"><code>success</code></em>
1808 parameter of the <a class="link" href="UDisksJob.html#UDisksJob-completed" title="The “completed” signal"><span class="type">“completed”</span></a> signal.</p>
1809 </div>
1810 </div>
1811 <hr>
1812 <div class="refsect2">
1813 <a name="udisks-daemon-get-uuid"></a><h3>udisks_daemon_get_uuid ()</h3>
1814 <pre class="programlisting">const <span class="returnvalue">gchar</span> *
1815 udisks_daemon_get_uuid (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>);</pre>
1816 <p>Gets the UUID string specific to this <em class="parameter"><code>daemon</code></em>
1817 instance.</p>
1818 <div class="refsect3">
1819 <a name="udisks-daemon-get-uuid.parameters"></a><h4>Parameters</h4>
1820 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1821 <colgroup>
1822 <col width="150px" class="parameters_name">
1823 <col class="parameters_description">
1824 <col width="200px" class="parameters_annotations">
1825 </colgroup>
1826 <tbody><tr>
1827 <td class="parameter_name"><p>daemon</p></td>
1828 <td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td>
1829 <td class="parameter_annotations"> </td>
1830 </tr></tbody>
1831 </table></div>
1832 </div>
1833 <div class="refsect3">
1834 <a name="udisks-daemon-get-uuid.returns"></a><h4>Returns</h4>
1835 <p> the UUID string. Do not free, the string is owned by <em class="parameter"><code>daemon</code></em>
1836 .</p>
1837 </div>
1838 </div>
1839 </div>
1840 <div class="refsect1">
1841 <a name="UDisksDaemon.other_details"></a><h2>Types and Values</h2>
1842 <div class="refsect2">
1843 <a name="UDisksDaemon-struct"></a><h3>UDisksDaemon</h3>
1844 <pre class="programlisting">typedef struct _UDisksDaemon UDisksDaemon;</pre>
1845 <p>The <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> structure contains only private data and should
1846 only be accessed using the provided API.</p>
1847 </div>
1848 <hr>
1849 <div class="refsect2">
1850 <a name="UDISKS-DEFAULT-WAIT-TIMEOUT:CAPS"></a><h3>UDISKS_DEFAULT_WAIT_TIMEOUT</h3>
1851 <pre class="programlisting">#define UDISKS_DEFAULT_WAIT_TIMEOUT 20 /* seconds */
1852 </pre>
1853 <p>Default timeout in seconds to wait for an object or uevent.</p>
1854 </div>
1855 </div>
1856 <div class="refsect1">
1857 <a name="UDisksDaemon.property-details"></a><h2>Property Details</h2>
1858 <div class="refsect2">
1859 <a name="UDisksDaemon--connection"></a><h3>The <code class="literal">“connection”</code> property</h3>
1860 <pre class="programlisting"> “connection” <span class="type">GDBusConnection</span> *</pre>
1861 <p>The <span class="type">GDBusConnection</span> the daemon is for.</p>
1862 <p>Owner: UDisksDaemon</p>
1863 <p>Flags: Read / Write / Construct Only</p>
1864 </div>
1865 <hr>
1866 <div class="refsect2">
1867 <a name="UDisksDaemon--disable-modules"></a><h3>The <code class="literal">“disable-modules”</code> property</h3>
1868 <pre class="programlisting"> “disable-modules” <span class="type">gboolean</span></pre>
1869 <p>Whether modules should be disabled</p>
1870 <p>Owner: UDisksDaemon</p>
1871 <p>Flags: Read / Write / Construct Only</p>
1872 <p>Default value: FALSE</p>
1873 </div>
1874 <hr>
1875 <div class="refsect2">
1876 <a name="UDisksDaemon--enable-tcrypt"></a><h3>The <code class="literal">“enable-tcrypt”</code> property</h3>
1877 <pre class="programlisting"> “enable-tcrypt” <span class="type">gboolean</span></pre>
1878 <p>Whether devices should be tested for being TCRYPT encrypted.</p>
1879 <p>Owner: UDisksDaemon</p>
1880 <p>Flags: Read / Write / Construct Only</p>
1881 <p>Default value: FALSE</p>
1882 </div>
1883 <hr>
1884 <div class="refsect2">
1885 <a name="UDisksDaemon--force-load-modules"></a><h3>The <code class="literal">“force-load-modules”</code> property</h3>
1886 <pre class="programlisting"> “force-load-modules” <span class="type">gboolean</span></pre>
1887 <p>Whether modules should be activated upon startup</p>
1888 <p>Owner: UDisksDaemon</p>
1889 <p>Flags: Read / Write / Construct Only</p>
1890 <p>Default value: FALSE</p>
1891 </div>
1892 <hr>
1893 <div class="refsect2">
1894 <a name="UDisksDaemon--mount-monitor"></a><h3>The <code class="literal">“mount-monitor”</code> property</h3>
1895 <pre class="programlisting"> “mount-monitor” <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a> *</pre>
1896 <p>The <a class="link" href="UDisksMountMonitor.html" title="UDisksMountMonitor"><span class="type">UDisksMountMonitor</span></a> used by the daemon</p>
1897 <p>Owner: UDisksDaemon</p>
1898 <p>Flags: Read</p>
1899 </div>
1900 <hr>
1901 <div class="refsect2">
1902 <a name="UDisksDaemon--object-manager"></a><h3>The <code class="literal">“object-manager”</code> property</h3>
1903 <pre class="programlisting"> “object-manager” <span class="type">GDBusObjectManagerServer</span> *</pre>
1904 <p>The <span class="type">GDBusObjectManager</span> used by the daemon</p>
1905 <p>Owner: UDisksDaemon</p>
1906 <p>Flags: Read</p>
1907 </div>
1908 <hr>
1909 <div class="refsect2">
1910 <a name="UDisksDaemon--uninstalled"></a><h3>The <code class="literal">“uninstalled”</code> property</h3>
1911 <pre class="programlisting"> “uninstalled” <span class="type">gboolean</span></pre>
1912 <p>Loads modules from the build directory.</p>
1913 <p>Owner: UDisksDaemon</p>
1914 <p>Flags: Read / Write / Construct Only</p>
1915 <p>Default value: FALSE</p>
1916 </div>
1917 <hr>
1918 <div class="refsect2">
1919 <a name="UDisksDaemon--uuid"></a><h3>The <code class="literal">“uuid”</code> property</h3>
1920 <pre class="programlisting"> “uuid” <span class="type">char</span> *</pre>
1921 <p>The UUID specific for this daemon instance.</p>
1922 <p>Owner: UDisksDaemon</p>
1923 <p>Flags: Read / Write</p>
1924 <p>Default value: NULL</p>
1925 </div>
1926 </div>
1927 </div>
1928 <div class="footer">
1929 <hr>Generated by GTK-Doc V1.35.1</div>
1930 </body>
1931 </html>