Debian Codegraph @

doc/html/UDisksClient.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>UDisksClient: 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-library.html" title="Part III. Library API Reference">
9 <link rel="prev" href="ref-library.html" title="Part III. Library API Reference">
10 <link rel="next" href="UDisksObjectInfo.html" title="UDisksObjectInfo">
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="#UDisksClient.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
19 <a href="#UDisksClient.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces">  <span class="dim">|</span> 
20 <a href="#UDisksClient.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties">  <span class="dim">|</span> 
21 <a href="#UDisksClient.properties" class="shortcut">Properties</a></span><span id="nav_signals">  <span class="dim">|</span> 
22 <a href="#UDisksClient.signals" class="shortcut">Signals</a></span>
23 </td>
24 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
25 <td><a accesskey="u" href="ref-library.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
26 <td><a accesskey="p" href="ref-library.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
27 <td><a accesskey="n" href="UDisksObjectInfo.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
28 </tr></table>
29 <div class="refentry">
30 <a name="UDisksClient"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
32 <td valign="top">
33 <h2><span class="refentrytitle"><a name="UDisksClient.top_of_page"></a>UDisksClient</span></h2>
34 <p>UDisksClient — Utility routines for accessing the UDisks service</p>
35 </td>
36 <td class="gallery_image" valign="top" align="right"></td>
37 </tr></table></div>
38 <div class="refsect1">
39 <a name="UDisksClient.functions"></a><h2>Functions</h2>
40 <div class="informaltable"><table class="informaltable" width="100%" border="0">
41 <colgroup>
42 <col width="150px" class="functions_proto_type">
43 <col class="functions_proto_name">
44 </colgroup>
45 <tbody>
46 <tr>
47 <td class="define_keyword">#define</td>
48 <td class="function_name">
49 <a class="link" href="UDisksClient.html#UDISKS-CHECK-VERSION:CAPS" title="UDISKS_CHECK_VERSION()">UDISKS_CHECK_VERSION</a><span class="c_punctuation">()</span>
50 </td>
51 </tr>
52 <tr>
53 <td class="function_type">
54 <span class="returnvalue">void</span>
55 </td>
56 <td class="function_name">
57 <a class="link" href="UDisksClient.html#udisks-client-new" title="udisks_client_new ()">udisks_client_new</a> <span class="c_punctuation">()</span>
58 </td>
59 </tr>
60 <tr>
61 <td class="function_type">
62 <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="returnvalue">UDisksClient</span></a> *
63 </td>
64 <td class="function_name">
65 <a class="link" href="UDisksClient.html#udisks-client-new-finish" title="udisks_client_new_finish ()">udisks_client_new_finish</a> <span class="c_punctuation">()</span>
66 </td>
67 </tr>
68 <tr>
69 <td class="function_type">
70 <span class="returnvalue">void</span>
71 </td>
72 <td class="function_name">
73 <a class="link" href="UDisksClient.html#udisks-client-new-for-connection" title="udisks_client_new_for_connection ()">udisks_client_new_for_connection</a> <span class="c_punctuation">()</span>
74 </td>
75 </tr>
76 <tr>
77 <td class="function_type">
78 <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="returnvalue">UDisksClient</span></a> *
79 </td>
80 <td class="function_name">
81 <a class="link" href="UDisksClient.html#udisks-client-new-for-connection-finish" title="udisks_client_new_for_connection_finish ()">udisks_client_new_for_connection_finish</a> <span class="c_punctuation">()</span>
82 </td>
83 </tr>
84 <tr>
85 <td class="function_type">
86 <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="returnvalue">UDisksClient</span></a> *
87 </td>
88 <td class="function_name">
89 <a class="link" href="UDisksClient.html#udisks-client-new-sync" title="udisks_client_new_sync ()">udisks_client_new_sync</a> <span class="c_punctuation">()</span>
90 </td>
91 </tr>
92 <tr>
93 <td class="function_type">
94 <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
95 </td>
96 <td class="function_name">
97 <a class="link" href="UDisksClient.html#udisks-client-get-object" title="udisks_client_get_object ()">udisks_client_get_object</a> <span class="c_punctuation">()</span>
98 </td>
99 </tr>
100 <tr>
101 <td class="function_type">
102 <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
103 </td>
104 <td class="function_name">
105 <a class="link" href="UDisksClient.html#udisks-client-peek-object" title="udisks_client_peek_object ()">udisks_client_peek_object</a> <span class="c_punctuation">()</span>
106 </td>
107 </tr>
108 <tr>
109 <td class="function_type">
110 <span class="returnvalue">GDBusObjectManager</span> *
111 </td>
112 <td class="function_name">
113 <a class="link" href="UDisksClient.html#udisks-client-get-object-manager" title="udisks_client_get_object_manager ()">udisks_client_get_object_manager</a> <span class="c_punctuation">()</span>
114 </td>
115 </tr>
116 <tr>
117 <td class="function_type">
118 <a class="link" href="UDisksManager.html" title="UDisksManager"><span class="returnvalue">UDisksManager</span></a> *
119 </td>
120 <td class="function_name">
121 <a class="link" href="UDisksClient.html#udisks-client-get-manager" title="udisks_client_get_manager ()">udisks_client_get_manager</a> <span class="c_punctuation">()</span>
122 </td>
123 </tr>
124 <tr>
125 <td class="function_type">
126 <span class="returnvalue">void</span>
127 </td>
128 <td class="function_name">
129 <a class="link" href="UDisksClient.html#udisks-client-settle" title="udisks_client_settle ()">udisks_client_settle</a> <span class="c_punctuation">()</span>
130 </td>
131 </tr>
132 <tr>
133 <td class="function_type">
134 <span class="returnvalue">void</span>
135 </td>
136 <td class="function_name">
137 <a class="link" href="UDisksClient.html#udisks-client-queue-changed" title="udisks_client_queue_changed ()">udisks_client_queue_changed</a> <span class="c_punctuation">()</span>
138 </td>
139 </tr>
140 <tr>
141 <td class="function_type">
142 <span class="returnvalue">GList</span> *
143 </td>
144 <td class="function_name">
145 <a class="link" href="UDisksClient.html#udisks-client-get-jobs-for-object" title="udisks_client_get_jobs_for_object ()">udisks_client_get_jobs_for_object</a> <span class="c_punctuation">()</span>
146 </td>
147 </tr>
148 <tr>
149 <td class="function_type">
150 <span class="returnvalue">gchar</span> *
151 </td>
152 <td class="function_name">
153 <a class="link" href="UDisksClient.html#udisks-client-get-job-description" title="udisks_client_get_job_description ()">udisks_client_get_job_description</a> <span class="c_punctuation">()</span>
154 </td>
155 </tr>
156 <tr>
157 <td class="function_type">
158 <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="returnvalue">UDisksBlock</span></a> *
159 </td>
160 <td class="function_name">
161 <a class="link" href="UDisksClient.html#udisks-client-get-block-for-dev" title="udisks_client_get_block_for_dev ()">udisks_client_get_block_for_dev</a> <span class="c_punctuation">()</span>
162 </td>
163 </tr>
164 <tr>
165 <td class="function_type">
166 <span class="returnvalue">GList</span> *
167 </td>
168 <td class="function_name">
169 <a class="link" href="UDisksClient.html#udisks-client-get-block-for-label" title="udisks_client_get_block_for_label ()">udisks_client_get_block_for_label</a> <span class="c_punctuation">()</span>
170 </td>
171 </tr>
172 <tr>
173 <td class="function_type">
174 <span class="returnvalue">GList</span> *
175 </td>
176 <td class="function_name">
177 <a class="link" href="UDisksClient.html#udisks-client-get-block-for-uuid" title="udisks_client_get_block_for_uuid ()">udisks_client_get_block_for_uuid</a> <span class="c_punctuation">()</span>
178 </td>
179 </tr>
180 <tr>
181 <td class="function_type">
182 <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="returnvalue">UDisksBlock</span></a> *
183 </td>
184 <td class="function_name">
185 <a class="link" href="UDisksClient.html#udisks-client-get-block-for-drive" title="udisks_client_get_block_for_drive ()">udisks_client_get_block_for_drive</a> <span class="c_punctuation">()</span>
186 </td>
187 </tr>
188 <tr>
189 <td class="function_type">
190 <a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="returnvalue">UDisksDrive</span></a> *
191 </td>
192 <td class="function_name">
193 <a class="link" href="UDisksClient.html#udisks-client-get-drive-for-block" title="udisks_client_get_drive_for_block ()">udisks_client_get_drive_for_block</a> <span class="c_punctuation">()</span>
194 </td>
195 </tr>
196 <tr>
197 <td class="function_type">
198 <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="returnvalue">UDisksBlock</span></a> *
199 </td>
200 <td class="function_name">
201 <a class="link" href="UDisksClient.html#udisks-client-get-cleartext-block" title="udisks_client_get_cleartext_block ()">udisks_client_get_cleartext_block</a> <span class="c_punctuation">()</span>
202 </td>
203 </tr>
204 <tr>
205 <td class="function_type">
206 <a class="link" href="UDisksPartitionTable.html" title="UDisksPartitionTable"><span class="returnvalue">UDisksPartitionTable</span></a> *
207 </td>
208 <td class="function_name">
209 <a class="link" href="UDisksClient.html#udisks-client-get-partition-table" title="udisks_client_get_partition_table ()">udisks_client_get_partition_table</a> <span class="c_punctuation">()</span>
210 </td>
211 </tr>
212 <tr>
213 <td class="function_type">
214 <a class="link" href="UDisksLoop.html" title="UDisksLoop"><span class="returnvalue">UDisksLoop</span></a> *
215 </td>
216 <td class="function_name">
217 <a class="link" href="UDisksClient.html#udisks-client-get-loop-for-block" title="udisks_client_get_loop_for_block ()">udisks_client_get_loop_for_block</a> <span class="c_punctuation">()</span>
218 </td>
219 </tr>
220 <tr>
221 <td class="function_type">
222 <span class="returnvalue">GList</span> *
223 </td>
224 <td class="function_name">
225 <a class="link" href="UDisksClient.html#udisks-client-get-partitions" title="udisks_client_get_partitions ()">udisks_client_get_partitions</a> <span class="c_punctuation">()</span>
226 </td>
227 </tr>
228 <tr>
229 <td class="function_type">
230 <span class="returnvalue">GList</span> *
231 </td>
232 <td class="function_name">
233 <a class="link" href="UDisksClient.html#udisks-client-get-drive-siblings" title="udisks_client_get_drive_siblings ()">udisks_client_get_drive_siblings</a> <span class="c_punctuation">()</span>
234 </td>
235 </tr>
236 <tr>
237 <td class="function_type">
238 <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="returnvalue">UDisksBlock</span></a> *
239 </td>
240 <td class="function_name">
241 <a class="link" href="UDisksClient.html#udisks-client-get-block-for-mdraid" title="udisks_client_get_block_for_mdraid ()">udisks_client_get_block_for_mdraid</a> <span class="c_punctuation">()</span>
242 </td>
243 </tr>
244 <tr>
245 <td class="function_type">
246 <span class="returnvalue">GList</span> *
247 </td>
248 <td class="function_name">
249 <a class="link" href="UDisksClient.html#udisks-client-get-all-blocks-for-mdraid" title="udisks_client_get_all_blocks_for_mdraid ()">udisks_client_get_all_blocks_for_mdraid</a> <span class="c_punctuation">()</span>
250 </td>
251 </tr>
252 <tr>
253 <td class="function_type">
254 <span class="returnvalue">GList</span> *
255 </td>
256 <td class="function_name">
257 <a class="link" href="UDisksClient.html#udisks-client-get-members-for-mdraid" title="udisks_client_get_members_for_mdraid ()">udisks_client_get_members_for_mdraid</a> <span class="c_punctuation">()</span>
258 </td>
259 </tr>
260 <tr>
261 <td class="function_type">
262 <a class="link" href="UDisksMDRaid.html" title="UDisksMDRaid"><span class="returnvalue">UDisksMDRaid</span></a> *
263 </td>
264 <td class="function_name">
265 <a class="link" href="UDisksClient.html#udisks-client-get-mdraid-for-block" title="udisks_client_get_mdraid_for_block ()">udisks_client_get_mdraid_for_block</a> <span class="c_punctuation">()</span>
266 </td>
267 </tr>
268 <tr>
269 <td class="function_type">
270 <a class="link" href="UDisksObjectInfo.html" title="UDisksObjectInfo"><span class="returnvalue">UDisksObjectInfo</span></a> *
271 </td>
272 <td class="function_name">
273 <a class="link" href="UDisksClient.html#udisks-client-get-object-info" title="udisks_client_get_object_info ()">udisks_client_get_object_info</a> <span class="c_punctuation">()</span>
274 </td>
275 </tr>
276 <tr>
277 <td class="function_type">
278 <span class="returnvalue">void</span>
279 </td>
280 <td class="function_name">
281 <a class="link" href="UDisksClient.html#udisks-client-get-drive-info" title="udisks_client_get_drive_info ()">udisks_client_get_drive_info</a> <span class="c_punctuation">()</span>
282 </td>
283 </tr>
284 <tr>
285 <td class="function_type">
286 <span class="returnvalue">gchar</span> *
287 </td>
288 <td class="function_name">
289 <a class="link" href="UDisksClient.html#udisks-client-get-partition-info" title="udisks_client_get_partition_info ()">udisks_client_get_partition_info</a> <span class="c_punctuation">()</span>
290 </td>
291 </tr>
292 <tr>
293 <td class="function_type">
294 <span class="returnvalue">gchar</span> *
295 </td>
296 <td class="function_name">
297 <a class="link" href="UDisksClient.html#udisks-client-get-size-for-display" title="udisks_client_get_size_for_display ()">udisks_client_get_size_for_display</a> <span class="c_punctuation">()</span>
298 </td>
299 </tr>
300 <tr>
301 <td class="function_type">
302 <span class="returnvalue">gchar</span> *
303 </td>
304 <td class="function_name">
305 <a class="link" href="UDisksClient.html#udisks-client-get-id-for-display" title="udisks_client_get_id_for_display ()">udisks_client_get_id_for_display</a> <span class="c_punctuation">()</span>
306 </td>
307 </tr>
308 <tr>
309 <td class="function_type">
310 <span class="returnvalue">gchar</span> *
311 </td>
312 <td class="function_name">
313 <a class="link" href="UDisksClient.html#udisks-client-get-media-compat-for-display" title="udisks_client_get_media_compat_for_display ()">udisks_client_get_media_compat_for_display</a> <span class="c_punctuation">()</span>
314 </td>
315 </tr>
316 <tr>
317 <td class="function_type">
318 <span class="returnvalue">void</span>
319 </td>
320 <td class="function_name">
321 <a class="link" href="UDisksClient.html#udisks-partition-type-info-free" title="udisks_partition_type_info_free ()">udisks_partition_type_info_free</a> <span class="c_punctuation">()</span>
322 </td>
323 </tr>
324 <tr>
325 <td class="function_type">
326 <span class="returnvalue">GList</span> *
327 </td>
328 <td class="function_name">
329 <a class="link" href="UDisksClient.html#udisks-client-get-partition-type-infos" title="udisks_client_get_partition_type_infos ()">udisks_client_get_partition_type_infos</a> <span class="c_punctuation">()</span>
330 </td>
331 </tr>
332 <tr>
333 <td class="function_type">const <span class="returnvalue">gchar</span> **
334 </td>
335 <td class="function_name">
336 <a class="link" href="UDisksClient.html#udisks-client-get-partition-table-subtypes" title="udisks_client_get_partition_table_subtypes ()">udisks_client_get_partition_table_subtypes</a> <span class="c_punctuation">()</span>
337 </td>
338 </tr>
339 <tr>
340 <td class="function_type">const <span class="returnvalue">gchar</span> *
341 </td>
342 <td class="function_name">
343 <a class="link" href="UDisksClient.html#udisks-client-get-partition-type-for-display" title="udisks_client_get_partition_type_for_display ()">udisks_client_get_partition_type_for_display</a> <span class="c_punctuation">()</span>
344 </td>
345 </tr>
346 <tr>
347 <td class="function_type">const <span class="returnvalue">gchar</span> *
348 </td>
349 <td class="function_name">
350 <a class="link" href="UDisksClient.html#udisks-client-get-partition-type-and-subtype-for-display" title="udisks_client_get_partition_type_and_subtype_for_display ()">udisks_client_get_partition_type_and_subtype_for_display</a> <span class="c_punctuation">()</span>
351 </td>
352 </tr>
353 <tr>
354 <td class="function_type">const <span class="returnvalue">gchar</span> *
355 </td>
356 <td class="function_name">
357 <a class="link" href="UDisksClient.html#udisks-client-get-partition-table-type-for-display" title="udisks_client_get_partition_table_type_for_display ()">udisks_client_get_partition_table_type_for_display</a> <span class="c_punctuation">()</span>
358 </td>
359 </tr>
360 <tr>
361 <td class="function_type">const <span class="returnvalue">gchar</span> *
362 </td>
363 <td class="function_name">
364 <a class="link" href="UDisksClient.html#udisks-client-get-partition-table-subtype-for-display" title="udisks_client_get_partition_table_subtype_for_display ()">udisks_client_get_partition_table_subtype_for_display</a> <span class="c_punctuation">()</span>
365 </td>
366 </tr>
367 </tbody>
368 </table></div>
369 </div>
370 <div class="refsect1">
371 <a name="UDisksClient.properties"></a><h2>Properties</h2>
372 <div class="informaltable"><table class="informaltable" border="0">
373 <colgroup>
374 <col width="150px" class="properties_type">
375 <col width="300px" class="properties_name">
376 <col width="200px" class="properties_flags">
377 </colgroup>
378 <tbody>
379 <tr>
380 <td class="property_type">
381 <span class="type">GDBusConnection</span> *</td>
382 <td class="property_name"><a class="link" href="UDisksClient.html#UDisksClient--bus-connection" title="The “bus-connection” property">bus-connection</a></td>
383 <td class="property_flags">Read / Write / Construct Only</td>
384 </tr>
385 <tr>
386 <td class="property_type">
387 <a class="link" href="UDisksManager.html" title="UDisksManager"><span class="type">UDisksManager</span></a> *</td>
388 <td class="property_name"><a class="link" href="UDisksClient.html#UDisksClient--manager" title="The “manager” property">manager</a></td>
389 <td class="property_flags">Read</td>
390 </tr>
391 <tr>
392 <td class="property_type">
393 <span class="type">GDBusObjectManager</span> *</td>
394 <td class="property_name"><a class="link" href="UDisksClient.html#UDisksClient--object-manager" title="The “object-manager” property">object-manager</a></td>
395 <td class="property_flags">Read</td>
396 </tr>
397 </tbody>
398 </table></div>
399 </div>
400 <div class="refsect1">
401 <a name="UDisksClient.signals"></a><h2>Signals</h2>
402 <div class="informaltable"><table class="informaltable" border="0">
403 <colgroup>
404 <col width="150px" class="signal_proto_type">
405 <col width="300px" class="signal_proto_name">
406 <col width="200px" class="signal_proto_flags">
407 </colgroup>
408 <tbody><tr>
409 <td class="signal_type"><span class="returnvalue">void</span></td>
410 <td class="signal_name"><a class="link" href="UDisksClient.html#UDisksClient-changed" title="The “changed” signal">changed</a></td>
411 <td class="signal_flags">Run Last</td>
412 </tr></tbody>
413 </table></div>
414 </div>
415 <a name="UDisksPartitionTypeInfo"></a><div class="refsect1">
416 <a name="UDisksClient.other"></a><h2>Types and Values</h2>
417 <div class="informaltable"><table class="informaltable" width="100%" border="0">
418 <colgroup>
419 <col width="150px" class="other_proto_type">
420 <col class="other_proto_name">
421 </colgroup>
422 <tbody>
423 <tr>
424 <td class="define_keyword">#define</td>
425 <td class="function_name"><a class="link" href="UDisksClient.html#UDISKS-MAJOR-VERSION:CAPS" title="UDISKS_MAJOR_VERSION">UDISKS_MAJOR_VERSION</a></td>
426 </tr>
427 <tr>
428 <td class="define_keyword">#define</td>
429 <td class="function_name"><a class="link" href="UDisksClient.html#UDISKS-MINOR-VERSION:CAPS" title="UDISKS_MINOR_VERSION">UDISKS_MINOR_VERSION</a></td>
430 </tr>
431 <tr>
432 <td class="define_keyword">#define</td>
433 <td class="function_name"><a class="link" href="UDisksClient.html#UDISKS-MICRO-VERSION:CAPS" title="UDISKS_MICRO_VERSION">UDISKS_MICRO_VERSION</a></td>
434 </tr>
435 <tr>
436 <td class="datatype_keyword"> </td>
437 <td class="function_name"><a class="link" href="UDisksClient.html#UDisksClient-struct" title="UDisksClient">UDisksClient</a></td>
438 </tr>
439 <tr>
440 <td class="datatype_keyword"> </td>
441 <td class="function_name"><a class="link" href="UDisksClient.html#UDisksPartitionTypeInfo-struct" title="UDisksPartitionTypeInfo">UDisksPartitionTypeInfo</a></td>
442 </tr>
443 <tr>
444 <td class="datatype_keyword">enum</td>
445 <td class="function_name"><a class="link" href="UDisksClient.html#UDisksPartitionTypeInfoFlags" title="enum UDisksPartitionTypeInfoFlags">UDisksPartitionTypeInfoFlags</a></td>
446 </tr>
447 </tbody>
448 </table></div>
449 </div>
450 <div class="refsect1">
451 <a name="UDisksClient.object-hierarchy"></a><h2>Object Hierarchy</h2>
452 <pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-Boxed-Types.html">GBoxed</a>
453 <span class="lineart">╰──</span> UDisksPartitionTypeInfo
454 <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GFlags</a>
455 <span class="lineart">╰──</span> UDisksPartitionTypeInfoFlags
456 GObject
457 <span class="lineart">╰──</span> UDisksClient
458 </pre>
459 </div>
460 <div class="refsect1">
461 <a name="UDisksClient.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
462 <p>
463 UDisksClient implements
464 GInitable and GAsyncInitable.</p>
465 </div>
466 <div class="refsect1">
467 <a name="UDisksClient.description"></a><h2>Description</h2>
468 <p><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> is used for accessing the UDisks service from a
469 client program.</p>
470 </div>
471 <div class="refsect1">
472 <a name="UDisksClient.functions_details"></a><h2>Functions</h2>
473 <div class="refsect2">
474 <a name="UDISKS-CHECK-VERSION:CAPS"></a><h3>UDISKS_CHECK_VERSION()</h3>
475 <pre class="programlisting">#define UDISKS_CHECK_VERSION(major,minor,micro)</pre>
476 <p>Macro to check against the version of the libudisks2 library that
477 is being compiled against.</p>
478 <div class="refsect3">
479 <a name="UDISKS-CHECK-VERSION.parameters"></a><h4>Parameters</h4>
480 <div class="informaltable"><table class="informaltable" width="100%" border="0">
481 <colgroup>
482 <col width="150px" class="parameters_name">
483 <col class="parameters_description">
484 <col width="200px" class="parameters_annotations">
485 </colgroup>
486 <tbody>
487 <tr>
488 <td class="parameter_name"><p>major</p></td>
489 <td class="parameter_description"><p>The major version to check for.</p></td>
490 <td class="parameter_annotations"> </td>
491 </tr>
492 <tr>
493 <td class="parameter_name"><p>minor</p></td>
494 <td class="parameter_description"><p>the minor version to check for.</p></td>
495 <td class="parameter_annotations"> </td>
496 </tr>
497 <tr>
498 <td class="parameter_name"><p>micro</p></td>
499 <td class="parameter_description"><p>The micro version to check for.</p></td>
500 <td class="parameter_annotations"> </td>
501 </tr>
502 </tbody>
503 </table></div>
504 </div>
505 <div class="refsect3">
506 <a name="UDISKS-CHECK-VERSION.returns"></a><h4>Returns</h4>
507 <p> <code class="literal">TRUE</code> if the version of the libudisks2 header files is the
508 same as or newer than the passed in version.</p>
509 </div>
510 </div>
511 <hr>
512 <div class="refsect2">
513 <a name="udisks-client-new"></a><h3>udisks_client_new ()</h3>
514 <pre class="programlisting"><span class="returnvalue">void</span>
515 udisks_client_new (<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
516 <em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
517 <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
518 <p>Asynchronously gets a <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>. When the operation is
519 finished, <em class="parameter"><code>callback</code></em>
520 will be invoked in the <GTKDOCLINK HREF="g-main-context-push-thread-default">thread-default main
521 loop</GTKDOCLINK> of the thread you are calling this method from.</p>
522 <div class="refsect3">
523 <a name="udisks-client-new.parameters"></a><h4>Parameters</h4>
524 <div class="informaltable"><table class="informaltable" width="100%" border="0">
525 <colgroup>
526 <col width="150px" class="parameters_name">
527 <col class="parameters_description">
528 <col width="200px" class="parameters_annotations">
529 </colgroup>
530 <tbody>
531 <tr>
532 <td class="parameter_name"><p>cancellable</p></td>
533 <td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>.</p></td>
534 <td class="parameter_annotations"> </td>
535 </tr>
536 <tr>
537 <td class="parameter_name"><p>callback</p></td>
538 <td class="parameter_description"><p>Function that will be called when the result is ready.</p></td>
539 <td class="parameter_annotations"> </td>
540 </tr>
541 <tr>
542 <td class="parameter_name"><p>user_data</p></td>
543 <td class="parameter_description"><p>Data to pass to <em class="parameter"><code>callback</code></em>
544 .</p></td>
545 <td class="parameter_annotations"> </td>
546 </tr>
547 </tbody>
548 </table></div>
549 </div>
550 </div>
551 <hr>
552 <div class="refsect2">
553 <a name="udisks-client-new-finish"></a><h3>udisks_client_new_finish ()</h3>
554 <pre class="programlisting"><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="returnvalue">UDisksClient</span></a> *
555 udisks_client_new_finish (<em class="parameter"><code><span class="type">GAsyncResult</span> *res</code></em>,
556 <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
557 <p>Finishes an operation started with <a class="link" href="UDisksClient.html#udisks-client-new" title="udisks_client_new ()"><code class="function">udisks_client_new()</code></a>.</p>
558 <div class="refsect3">
559 <a name="udisks-client-new-finish.parameters"></a><h4>Parameters</h4>
560 <div class="informaltable"><table class="informaltable" width="100%" border="0">
561 <colgroup>
562 <col width="150px" class="parameters_name">
563 <col class="parameters_description">
564 <col width="200px" class="parameters_annotations">
565 </colgroup>
566 <tbody>
567 <tr>
568 <td class="parameter_name"><p>res</p></td>
569 <td class="parameter_description"><p>A <span class="type">GAsyncResult</span>.</p></td>
570 <td class="parameter_annotations"> </td>
571 </tr>
572 <tr>
573 <td class="parameter_name"><p>error</p></td>
574 <td class="parameter_description"><p>Return location for error or <code class="literal">NULL</code>.</p></td>
575 <td class="parameter_annotations"> </td>
576 </tr>
577 </tbody>
578 </table></div>
579 </div>
580 <div class="refsect3">
581 <a name="udisks-client-new-finish.returns"></a><h4>Returns</h4>
582 <p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> or <code class="literal">NULL</code> if <em class="parameter"><code>error</code></em>
583 is set. Free
584 with <code class="function">g_object_unref()</code> when done with it. </p>
585 <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>
586 </div>
587 </div>
588 <hr>
589 <div class="refsect2">
590 <a name="udisks-client-new-for-connection"></a><h3>udisks_client_new_for_connection ()</h3>
591 <pre class="programlisting"><span class="returnvalue">void</span>
592 udisks_client_new_for_connection (<em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>,
593 <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
594 <em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
595 <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
596 <p>Like <a class="link" href="UDisksClient.html#udisks-client-new" title="udisks_client_new ()"><code class="function">udisks_client_new()</code></a> but takes a <span class="type">GDBusConnection</span> which will be used
597 when connecting to the UDisks daemon over D-Bus. This is useful for unit
598 tests which may want to use <span class="type">GTestDBus</span> to create a D-Bus daemon on the
599 session bus.</p>
600 <div class="refsect3">
601 <a name="udisks-client-new-for-connection.parameters"></a><h4>Parameters</h4>
602 <div class="informaltable"><table class="informaltable" width="100%" border="0">
603 <colgroup>
604 <col width="150px" class="parameters_name">
605 <col class="parameters_description">
606 <col width="200px" class="parameters_annotations">
607 </colgroup>
608 <tbody>
609 <tr>
610 <td class="parameter_name"><p>connection</p></td>
611 <td class="parameter_description"><p>a <span class="type">GDBusConnection</span>. If <code class="literal">NULL</code>, a system bus
612 connection will be used. </p></td>
613 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
614 </tr>
615 <tr>
616 <td class="parameter_name"><p>cancellable</p></td>
617 <td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>.</p></td>
618 <td class="parameter_annotations"> </td>
619 </tr>
620 <tr>
621 <td class="parameter_name"><p>callback</p></td>
622 <td class="parameter_description"><p>Function that will be called when the result is ready.</p></td>
623 <td class="parameter_annotations"> </td>
624 </tr>
625 <tr>
626 <td class="parameter_name"><p>user_data</p></td>
627 <td class="parameter_description"><p>Data to pass to <em class="parameter"><code>callback</code></em>
628 .</p></td>
629 <td class="parameter_annotations"> </td>
630 </tr>
631 </tbody>
632 </table></div>
633 </div>
634 <p class="since">Since: 2.9.0</p>
635 </div>
636 <hr>
637 <div class="refsect2">
638 <a name="udisks-client-new-for-connection-finish"></a><h3>udisks_client_new_for_connection_finish ()</h3>
639 <pre class="programlisting"><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="returnvalue">UDisksClient</span></a> *
640 udisks_client_new_for_connection_finish
641 (<em class="parameter"><code><span class="type">GAsyncResult</span> *res</code></em>,
642 <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
643 <p>Finishes an operation started with <a class="link" href="UDisksClient.html#udisks-client-new-for-connection" title="udisks_client_new_for_connection ()"><code class="function">udisks_client_new_for_connection()</code></a>.</p>
644 <div class="refsect3">
645 <a name="udisks-client-new-for-connection-finish.parameters"></a><h4>Parameters</h4>
646 <div class="informaltable"><table class="informaltable" width="100%" border="0">
647 <colgroup>
648 <col width="150px" class="parameters_name">
649 <col class="parameters_description">
650 <col width="200px" class="parameters_annotations">
651 </colgroup>
652 <tbody>
653 <tr>
654 <td class="parameter_name"><p>res</p></td>
655 <td class="parameter_description"><p>A <span class="type">GAsyncResult</span>.</p></td>
656 <td class="parameter_annotations"> </td>
657 </tr>
658 <tr>
659 <td class="parameter_name"><p>error</p></td>
660 <td class="parameter_description"><p>Return location for error or <code class="literal">NULL</code>.</p></td>
661 <td class="parameter_annotations"> </td>
662 </tr>
663 </tbody>
664 </table></div>
665 </div>
666 <div class="refsect3">
667 <a name="udisks-client-new-for-connection-finish.returns"></a><h4>Returns</h4>
668 <p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> or <code class="literal">NULL</code> if <em class="parameter"><code>error</code></em>
669 is set. Free
670 with <code class="function">g_object_unref()</code> when done with it. </p>
671 <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>
672 </div>
673 <p class="since">Since: 2.9.0</p>
674 </div>
675 <hr>
676 <div class="refsect2">
677 <a name="udisks-client-new-sync"></a><h3>udisks_client_new_sync ()</h3>
678 <pre class="programlisting"><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="returnvalue">UDisksClient</span></a> *
679 udisks_client_new_sync (<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
680 <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
681 <p>Synchronously gets a <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> for the local system.</p>
682 <div class="refsect3">
683 <a name="udisks-client-new-sync.parameters"></a><h4>Parameters</h4>
684 <div class="informaltable"><table class="informaltable" width="100%" border="0">
685 <colgroup>
686 <col width="150px" class="parameters_name">
687 <col class="parameters_description">
688 <col width="200px" class="parameters_annotations">
689 </colgroup>
690 <tbody>
691 <tr>
692 <td class="parameter_name"><p>cancellable</p></td>
693 <td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. </p></td>
694 <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>
695 </tr>
696 <tr>
697 <td class="parameter_name"><p>error</p></td>
698 <td class="parameter_description"><p>Return location for error or <code class="literal">NULL</code>. </p></td>
699 <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>
700 </tr>
701 </tbody>
702 </table></div>
703 </div>
704 <div class="refsect3">
705 <a name="udisks-client-new-sync.returns"></a><h4>Returns</h4>
706 <p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> or <code class="literal">NULL</code> if <em class="parameter"><code>error</code></em>
707 is set. Free
708 with <code class="function">g_object_unref()</code> when done with it. </p>
709 <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>
710 </div>
711 </div>
712 <hr>
713 <div class="refsect2">
714 <a name="udisks-client-get-object"></a><h3>udisks_client_get_object ()</h3>
715 <pre class="programlisting"><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
716 udisks_client_get_object (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
717 <em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>);</pre>
718 <p>Convenience function for looking up an <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> for <em class="parameter"><code>object_path</code></em>
719 .</p>
720 <div class="refsect3">
721 <a name="udisks-client-get-object.parameters"></a><h4>Parameters</h4>
722 <div class="informaltable"><table class="informaltable" width="100%" border="0">
723 <colgroup>
724 <col width="150px" class="parameters_name">
725 <col class="parameters_description">
726 <col width="200px" class="parameters_annotations">
727 </colgroup>
728 <tbody>
729 <tr>
730 <td class="parameter_name"><p>client</p></td>
731 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
732 <td class="parameter_annotations"> </td>
733 </tr>
734 <tr>
735 <td class="parameter_name"><p>object_path</p></td>
736 <td class="parameter_description"><p>Object path.</p></td>
737 <td class="parameter_annotations"> </td>
738 </tr>
739 </tbody>
740 </table></div>
741 </div>
742 <div class="refsect3">
743 <a name="udisks-client-get-object.returns"></a><h4>Returns</h4>
744 <p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> corresponding to
745 <em class="parameter"><code>object_path</code></em>
746 or <code class="literal">NULL</code> if not found. The returned object must be
747 freed with <code class="function">g_object_unref()</code>. </p>
748 <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>
749 </div>
750 </div>
751 <hr>
752 <div class="refsect2">
753 <a name="udisks-client-peek-object"></a><h3>udisks_client_peek_object ()</h3>
754 <pre class="programlisting"><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="returnvalue">UDisksObject</span></a> *
755 udisks_client_peek_object (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
756 <em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>);</pre>
757 <p>Like <a class="link" href="UDisksClient.html#udisks-client-get-object" title="udisks_client_get_object ()"><code class="function">udisks_client_get_object()</code></a> but doesn't increase the reference
758 count on the returned <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a>.</p>
759 <div class="warning">The returned object is only valid until removed so it is only safe to use this function on the thread where <em class="parameter"><code>client</code></em> was constructed. Use <a class="link" href="UDisksClient.html#udisks-client-get-object" title="udisks_client_get_object ()"><code class="function">udisks_client_get_object()</code></a> if on another thread.</div>
760 <div class="refsect3">
761 <a name="udisks-client-peek-object.parameters"></a><h4>Parameters</h4>
762 <div class="informaltable"><table class="informaltable" width="100%" border="0">
763 <colgroup>
764 <col width="150px" class="parameters_name">
765 <col class="parameters_description">
766 <col width="200px" class="parameters_annotations">
767 </colgroup>
768 <tbody>
769 <tr>
770 <td class="parameter_name"><p>client</p></td>
771 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
772 <td class="parameter_annotations"> </td>
773 </tr>
774 <tr>
775 <td class="parameter_name"><p>object_path</p></td>
776 <td class="parameter_description"><p>Object path.</p></td>
777 <td class="parameter_annotations"> </td>
778 </tr>
779 </tbody>
780 </table></div>
781 </div>
782 <div class="refsect3">
783 <a name="udisks-client-peek-object.returns"></a><h4>Returns</h4>
784 <p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> corresponding to
785 <em class="parameter"><code>object_path</code></em>
786 or <code class="literal">NULL</code> if not found. </p>
787 <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
788 </div>
789 </div>
790 <hr>
791 <div class="refsect2">
792 <a name="udisks-client-get-object-manager"></a><h3>udisks_client_get_object_manager ()</h3>
793 <pre class="programlisting"><span class="returnvalue">GDBusObjectManager</span> *
794 udisks_client_get_object_manager (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>);</pre>
795 <p>Gets the <span class="type">GDBusObjectManager</span> used by <em class="parameter"><code>client</code></em>
796 .</p>
797 <div class="refsect3">
798 <a name="udisks-client-get-object-manager.parameters"></a><h4>Parameters</h4>
799 <div class="informaltable"><table class="informaltable" width="100%" border="0">
800 <colgroup>
801 <col width="150px" class="parameters_name">
802 <col class="parameters_description">
803 <col width="200px" class="parameters_annotations">
804 </colgroup>
805 <tbody><tr>
806 <td class="parameter_name"><p>client</p></td>
807 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
808 <td class="parameter_annotations"> </td>
809 </tr></tbody>
810 </table></div>
811 </div>
812 <div class="refsect3">
813 <a name="udisks-client-get-object-manager.returns"></a><h4>Returns</h4>
814 <p>A <span class="type">GDBusObjectManager</span>. Do not free, the
815 instance is owned by <em class="parameter"><code>client</code></em>
816 . </p>
817 <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
818 </div>
819 </div>
820 <hr>
821 <div class="refsect2">
822 <a name="udisks-client-get-manager"></a><h3>udisks_client_get_manager ()</h3>
823 <pre class="programlisting"><a class="link" href="UDisksManager.html" title="UDisksManager"><span class="returnvalue">UDisksManager</span></a> *
824 udisks_client_get_manager (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>);</pre>
825 <p>Gets the <a class="link" href="UDisksManager.html" title="UDisksManager"><span class="type">UDisksManager</span></a> interface on the well-known
826 <code class="literal">/org/freedesktop/UDisks2/Manager</code> object.</p>
827 <div class="refsect3">
828 <a name="udisks-client-get-manager.parameters"></a><h4>Parameters</h4>
829 <div class="informaltable"><table class="informaltable" width="100%" border="0">
830 <colgroup>
831 <col width="150px" class="parameters_name">
832 <col class="parameters_description">
833 <col width="200px" class="parameters_annotations">
834 </colgroup>
835 <tbody><tr>
836 <td class="parameter_name"><p>client</p></td>
837 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
838 <td class="parameter_annotations"> </td>
839 </tr></tbody>
840 </table></div>
841 </div>
842 <div class="refsect3">
843 <a name="udisks-client-get-manager.returns"></a><h4>Returns</h4>
844 <p>A <a class="link" href="UDisksManager.html" title="UDisksManager"><span class="type">UDisksManager</span></a> or <code class="literal">NULL</code> if the udisksd
845 daemon is not currently running. Do not free, the instance is owned
846 by <em class="parameter"><code>client</code></em>
847 . </p>
848 <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
849 </div>
850 </div>
851 <hr>
852 <div class="refsect2">
853 <a name="udisks-client-settle"></a><h3>udisks_client_settle ()</h3>
854 <pre class="programlisting"><span class="returnvalue">void</span>
855 udisks_client_settle (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>);</pre>
856 <p>Blocks until all pending D-Bus messages have been delivered. Also
857 emits the (rate-limited) <a class="link" href="UDisksClient.html#UDisksClient-changed" title="The “changed” signal"><span class="type">“changed”</span></a> signal if changes
858 are currently pending.</p>
859 <p>This is useful in two situations: 1. when using synchronous method
860 calls since e.g. D-Bus signals received while waiting for the reply
861 are queued up and dispatched after the synchronous call ends; and</p>
862 <div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>when using asynchronous calls where the return value references
863 a newly created object (such as the <a class="link" href="gdbus-org.freedesktop.UDisks2.Manager.html#gdbus-method-org-freedesktop-UDisks2-Manager.LoopSetup" title="The LoopSetup() method">Manager.LoopSetup()</a> method).</p></li></ol></div>
864 <div class="refsect3">
865 <a name="udisks-client-settle.parameters"></a><h4>Parameters</h4>
866 <div class="informaltable"><table class="informaltable" width="100%" border="0">
867 <colgroup>
868 <col width="150px" class="parameters_name">
869 <col class="parameters_description">
870 <col width="200px" class="parameters_annotations">
871 </colgroup>
872 <tbody><tr>
873 <td class="parameter_name"><p>client</p></td>
874 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
875 <td class="parameter_annotations"> </td>
876 </tr></tbody>
877 </table></div>
878 </div>
879 </div>
880 <hr>
881 <div class="refsect2">
882 <a name="udisks-client-queue-changed"></a><h3>udisks_client_queue_changed ()</h3>
883 <pre class="programlisting"><span class="returnvalue">void</span>
884 udisks_client_queue_changed (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>);</pre>
885 <p>Queues up a <a class="link" href="UDisksClient.html#UDisksClient-changed" title="The “changed” signal"><span class="type">“changed”</span></a> signal and rate-limit it. See
886 the documentation for the <a class="link" href="UDisksClient.html#UDisksClient-changed" title="The “changed” signal"><span class="type">“changed”</span></a> property for more
887 information.</p>
888 <div class="refsect3">
889 <a name="udisks-client-queue-changed.parameters"></a><h4>Parameters</h4>
890 <div class="informaltable"><table class="informaltable" width="100%" border="0">
891 <colgroup>
892 <col width="150px" class="parameters_name">
893 <col class="parameters_description">
894 <col width="200px" class="parameters_annotations">
895 </colgroup>
896 <tbody><tr>
897 <td class="parameter_name"><p>client</p></td>
898 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
899 <td class="parameter_annotations"> </td>
900 </tr></tbody>
901 </table></div>
902 </div>
903 <p class="since">Since: 2.1</p>
904 </div>
905 <hr>
906 <div class="refsect2">
907 <a name="udisks-client-get-jobs-for-object"></a><h3>udisks_client_get_jobs_for_object ()</h3>
908 <pre class="programlisting"><span class="returnvalue">GList</span> *
909 udisks_client_get_jobs_for_object (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
910 <em class="parameter"><code><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> *object</code></em>);</pre>
911 <p>Gets all the <a class="link" href="UDisksJob.html" title="UDisksJob"><span class="type">UDisksJob</span></a> instances that reference <em class="parameter"><code>object</code></em>
912 , if any.</p>
913 <div class="refsect3">
914 <a name="udisks-client-get-jobs-for-object.parameters"></a><h4>Parameters</h4>
915 <div class="informaltable"><table class="informaltable" width="100%" border="0">
916 <colgroup>
917 <col width="150px" class="parameters_name">
918 <col class="parameters_description">
919 <col width="200px" class="parameters_annotations">
920 </colgroup>
921 <tbody>
922 <tr>
923 <td class="parameter_name"><p>client</p></td>
924 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
925 <td class="parameter_annotations"> </td>
926 </tr>
927 <tr>
928 <td class="parameter_name"><p>object</p></td>
929 <td class="parameter_description"><p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a>.</p></td>
930 <td class="parameter_annotations"> </td>
931 </tr>
932 </tbody>
933 </table></div>
934 </div>
935 <div class="refsect3">
936 <a name="udisks-client-get-jobs-for-object.returns"></a><h4>Returns</h4>
937 <p>A list of <a class="link" href="UDisksJob.html" title="UDisksJob"><span class="type">UDisksJob</span></a> instances. The
938 returned list should be freed with <code class="function">g_list_free()</code> after each
939 element has been freed with <code class="function">g_object_unref()</code>. </p>
940 <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> UDisksJob]</span></p>
941 </div>
942 </div>
943 <hr>
944 <div class="refsect2">
945 <a name="udisks-client-get-job-description"></a><h3>udisks_client_get_job_description ()</h3>
946 <pre class="programlisting"><span class="returnvalue">gchar</span> *
947 udisks_client_get_job_description (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
948 <em class="parameter"><code><a class="link" href="UDisksJob.html" title="UDisksJob"><span class="type">UDisksJob</span></a> *job</code></em>);</pre>
949 <p>Gets a human-readable and localized text string describing the
950 operation of <em class="parameter"><code>job</code></em>
951 .</p>
952 <p>For known job types, see the documentation for the</p>
953 <a class="link" href="gdbus-org.freedesktop.UDisks2.Job.html#gdbus-property-org-freedesktop-UDisks2-Job.Operation" title='The "Operation" property'>Job:Operation</a><p>D-Bus property.</p>
954 <div class="refsect3">
955 <a name="udisks-client-get-job-description.parameters"></a><h4>Parameters</h4>
956 <div class="informaltable"><table class="informaltable" width="100%" border="0">
957 <colgroup>
958 <col width="150px" class="parameters_name">
959 <col class="parameters_description">
960 <col width="200px" class="parameters_annotations">
961 </colgroup>
962 <tbody>
963 <tr>
964 <td class="parameter_name"><p>client</p></td>
965 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
966 <td class="parameter_annotations"> </td>
967 </tr>
968 <tr>
969 <td class="parameter_name"><p>job</p></td>
970 <td class="parameter_description"><p>A <a class="link" href="UDisksJob.html" title="UDisksJob"><span class="type">UDisksJob</span></a>.</p></td>
971 <td class="parameter_annotations"> </td>
972 </tr>
973 </tbody>
974 </table></div>
975 </div>
976 <div class="refsect3">
977 <a name="udisks-client-get-job-description.returns"></a><h4>Returns</h4>
978 <p>A string that should be freed with <code class="function">g_free()</code>. </p>
979 <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>
980 </div>
981 </div>
982 <hr>
983 <div class="refsect2">
984 <a name="udisks-client-get-block-for-dev"></a><h3>udisks_client_get_block_for_dev ()</h3>
985 <pre class="programlisting"><a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="returnvalue">UDisksBlock</span></a> *
986 udisks_client_get_block_for_dev (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
987 <em class="parameter"><code><span class="type">dev_t</span> block_device_number</code></em>);</pre>
988 <p>Gets the <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> corresponding to <em class="parameter"><code>block_device_number</code></em>
989 , if any.</p>
990 <div class="refsect3">
991 <a name="udisks-client-get-block-for-dev.parameters"></a><h4>Parameters</h4>
992 <div class="informaltable"><table class="informaltable" width="100%" border="0">
993 <colgroup>
994 <col width="150px" class="parameters_name">
995 <col class="parameters_description">
996 <col width="200px" class="parameters_annotations">
997 </colgroup>
998 <tbody>
999 <tr>
1000 <td class="parameter_name"><p>client</p></td>
1001 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1002 <td class="parameter_annotations"> </td>
1003 </tr>
1004 <tr>
1005 <td class="parameter_name"><p>block_device_number</p></td>
1006 <td class="parameter_description"><p>A <span class="type">dev_t</span> to get a <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> for. </p></td>
1007 <td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> guint64]</span></td>
1008 </tr>
1009 </tbody>
1010 </table></div>
1011 </div>
1012 <div class="refsect3">
1013 <a name="udisks-client-get-block-for-dev.returns"></a><h4>Returns</h4>
1014 <p>A <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> or <code class="literal">NULL</code> if not found. </p>
1015 <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>
1016 </div>
1017 </div>
1018 <hr>
1019 <div class="refsect2">
1020 <a name="udisks-client-get-block-for-label"></a><h3>udisks_client_get_block_for_label ()</h3>
1021 <pre class="programlisting"><span class="returnvalue">GList</span> *
1022 udisks_client_get_block_for_label (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1023 <em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>);</pre>
1024 <p>Gets all the <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> instances with the given label, if any.</p>
1025 <div class="refsect3">
1026 <a name="udisks-client-get-block-for-label.parameters"></a><h4>Parameters</h4>
1027 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1028 <colgroup>
1029 <col width="150px" class="parameters_name">
1030 <col class="parameters_description">
1031 <col width="200px" class="parameters_annotations">
1032 </colgroup>
1033 <tbody>
1034 <tr>
1035 <td class="parameter_name"><p>client</p></td>
1036 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1037 <td class="parameter_annotations"> </td>
1038 </tr>
1039 <tr>
1040 <td class="parameter_name"><p>label</p></td>
1041 <td class="parameter_description"><p>The label.</p></td>
1042 <td class="parameter_annotations"> </td>
1043 </tr>
1044 </tbody>
1045 </table></div>
1046 </div>
1047 <div class="refsect3">
1048 <a name="udisks-client-get-block-for-label.returns"></a><h4>Returns</h4>
1049 <p>A list of <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> instances. The
1050 returned list should be freed with <code class="function">g_list_free()</code> after each
1051 element has been freed with <code class="function">g_object_unref()</code>. </p>
1052 <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> UDisksBlock]</span></p>
1053 </div>
1054 </div>
1055 <hr>
1056 <div class="refsect2">
1057 <a name="udisks-client-get-block-for-uuid"></a><h3>udisks_client_get_block_for_uuid ()</h3>
1058 <pre class="programlisting"><span class="returnvalue">GList</span> *
1059 udisks_client_get_block_for_uuid (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1060 <em class="parameter"><code>const <span class="type">gchar</span> *uuid</code></em>);</pre>
1061 <p>Gets all the <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> instances with the given uuid, if any.</p>
1062 <div class="refsect3">
1063 <a name="udisks-client-get-block-for-uuid.parameters"></a><h4>Parameters</h4>
1064 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1065 <colgroup>
1066 <col width="150px" class="parameters_name">
1067 <col class="parameters_description">
1068 <col width="200px" class="parameters_annotations">
1069 </colgroup>
1070 <tbody>
1071 <tr>
1072 <td class="parameter_name"><p>client</p></td>
1073 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1074 <td class="parameter_annotations"> </td>
1075 </tr>
1076 <tr>
1077 <td class="parameter_name"><p>uuid</p></td>
1078 <td class="parameter_description"><p>The uuid.</p></td>
1079 <td class="parameter_annotations"> </td>
1080 </tr>
1081 </tbody>
1082 </table></div>
1083 </div>
1084 <div class="refsect3">
1085 <a name="udisks-client-get-block-for-uuid.returns"></a><h4>Returns</h4>
1086 <p>A list of <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> instances. The
1087 returned list should be freed with <code class="function">g_list_free()</code> after each
1088 element has been freed with <code class="function">g_object_unref()</code>. </p>
1089 <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> UDisksBlock]</span></p>
1090 </div>
1091 </div>
1092 <hr>
1093 <div class="refsect2">
1094 <a name="udisks-client-get-block-for-drive"></a><h3>udisks_client_get_block_for_drive ()</h3>
1095 <pre class="programlisting"><a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="returnvalue">UDisksBlock</span></a> *
1096 udisks_client_get_block_for_drive (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1097 <em class="parameter"><code><a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a> *drive</code></em>,
1098 <em class="parameter"><code><span class="type">gboolean</span> get_physical</code></em>);</pre>
1099 <p>Gets a block device corresponding to <em class="parameter"><code>drive</code></em>
1100 . The returned block
1101 device, if any, is for the whole disk drive, e.g. a partition block
1102 device is never returned.</p>
1103 <p>Set <em class="parameter"><code>get_physical</code></em>
1104 to <code class="literal">TRUE</code> if you need a block device that you can
1105 send low-level SCSI commands with (for multipath, this returns one
1106 of the physical paths). Set it to <code class="literal">FALSE</code> if you need a block device
1107 that you can read/write data with (for multipath, this returns the
1108 mapped device).</p>
1109 <div class="refsect3">
1110 <a name="udisks-client-get-block-for-drive.parameters"></a><h4>Parameters</h4>
1111 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1112 <colgroup>
1113 <col width="150px" class="parameters_name">
1114 <col class="parameters_description">
1115 <col width="200px" class="parameters_annotations">
1116 </colgroup>
1117 <tbody>
1118 <tr>
1119 <td class="parameter_name"><p>client</p></td>
1120 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1121 <td class="parameter_annotations"> </td>
1122 </tr>
1123 <tr>
1124 <td class="parameter_name"><p>drive</p></td>
1125 <td class="parameter_description"><p>A <a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a>.</p></td>
1126 <td class="parameter_annotations"> </td>
1127 </tr>
1128 <tr>
1129 <td class="parameter_name"><p>get_physical</p></td>
1130 <td class="parameter_description"><p><code class="literal">TRUE</code> to get a physical device, <code class="literal">FALSE</code> to get the logical device.</p></td>
1131 <td class="parameter_annotations"> </td>
1132 </tr>
1133 </tbody>
1134 </table></div>
1135 </div>
1136 <div class="refsect3">
1137 <a name="udisks-client-get-block-for-drive.returns"></a><h4>Returns</h4>
1138 <p>A <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> or <code class="literal">NULL</code> if the requested
1139 kind of block device is not available - use <code class="function">g_object_unref()</code> to
1140 free the returned object. </p>
1141 <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>
1142 </div>
1143 </div>
1144 <hr>
1145 <div class="refsect2">
1146 <a name="udisks-client-get-drive-for-block"></a><h3>udisks_client_get_drive_for_block ()</h3>
1147 <pre class="programlisting"><a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="returnvalue">UDisksDrive</span></a> *
1148 udisks_client_get_drive_for_block (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1149 <em class="parameter"><code><a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> *block</code></em>);</pre>
1150 <p>Gets the <a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a> that <em class="parameter"><code>block</code></em>
1151 belongs to, if any.</p>
1152 <div class="refsect3">
1153 <a name="udisks-client-get-drive-for-block.parameters"></a><h4>Parameters</h4>
1154 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1155 <colgroup>
1156 <col width="150px" class="parameters_name">
1157 <col class="parameters_description">
1158 <col width="200px" class="parameters_annotations">
1159 </colgroup>
1160 <tbody>
1161 <tr>
1162 <td class="parameter_name"><p>client</p></td>
1163 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1164 <td class="parameter_annotations"> </td>
1165 </tr>
1166 <tr>
1167 <td class="parameter_name"><p>block</p></td>
1168 <td class="parameter_description"><p>A <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a>.</p></td>
1169 <td class="parameter_annotations"> </td>
1170 </tr>
1171 </tbody>
1172 </table></div>
1173 </div>
1174 <div class="refsect3">
1175 <a name="udisks-client-get-drive-for-block.returns"></a><h4>Returns</h4>
1176 <p>A <a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a> or <code class="literal">NULL</code> if there is no
1177 <a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a> for <em class="parameter"><code>block</code></em>
1178 - free the returned object with
1179 <code class="function">g_object_unref()</code>. </p>
1180 <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>
1181 </div>
1182 </div>
1183 <hr>
1184 <div class="refsect2">
1185 <a name="udisks-client-get-cleartext-block"></a><h3>udisks_client_get_cleartext_block ()</h3>
1186 <pre class="programlisting"><a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="returnvalue">UDisksBlock</span></a> *
1187 udisks_client_get_cleartext_block (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1188 <em class="parameter"><code><a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> *block</code></em>);</pre>
1189 <p>If <em class="parameter"><code>block</code></em>
1190 is an unlocked encrypted device, gets the cleartext device.</p>
1191 <div class="refsect3">
1192 <a name="udisks-client-get-cleartext-block.parameters"></a><h4>Parameters</h4>
1193 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1194 <colgroup>
1195 <col width="150px" class="parameters_name">
1196 <col class="parameters_description">
1197 <col width="200px" class="parameters_annotations">
1198 </colgroup>
1199 <tbody>
1200 <tr>
1201 <td class="parameter_name"><p>client</p></td>
1202 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1203 <td class="parameter_annotations"> </td>
1204 </tr>
1205 <tr>
1206 <td class="parameter_name"><p>block</p></td>
1207 <td class="parameter_description"><p>A <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a>.</p></td>
1208 <td class="parameter_annotations"> </td>
1209 </tr>
1210 </tbody>
1211 </table></div>
1212 </div>
1213 <div class="refsect3">
1214 <a name="udisks-client-get-cleartext-block.returns"></a><h4>Returns</h4>
1215 <p>A <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> or <code class="literal">NULL</code>. Free with
1216 <code class="function">g_object_unref()</code> when done with it. </p>
1217 <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>
1218 </div>
1219 </div>
1220 <hr>
1221 <div class="refsect2">
1222 <a name="udisks-client-get-partition-table"></a><h3>udisks_client_get_partition_table ()</h3>
1223 <pre class="programlisting"><a class="link" href="UDisksPartitionTable.html" title="UDisksPartitionTable"><span class="returnvalue">UDisksPartitionTable</span></a> *
1224 udisks_client_get_partition_table (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1225 <em class="parameter"><code><a class="link" href="UDisksPartition.html" title="UDisksPartition"><span class="type">UDisksPartition</span></a> *partition</code></em>);</pre>
1226 <p>Gets the <a class="link" href="UDisksPartitionTable.html" title="UDisksPartitionTable"><span class="type">UDisksPartitionTable</span></a> corresponding to <em class="parameter"><code>partition</code></em>
1227 .</p>
1228 <div class="refsect3">
1229 <a name="udisks-client-get-partition-table.parameters"></a><h4>Parameters</h4>
1230 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1231 <colgroup>
1232 <col width="150px" class="parameters_name">
1233 <col class="parameters_description">
1234 <col width="200px" class="parameters_annotations">
1235 </colgroup>
1236 <tbody>
1237 <tr>
1238 <td class="parameter_name"><p>client</p></td>
1239 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1240 <td class="parameter_annotations"> </td>
1241 </tr>
1242 <tr>
1243 <td class="parameter_name"><p>partition</p></td>
1244 <td class="parameter_description"><p>A <a class="link" href="UDisksPartition.html" title="UDisksPartition"><span class="type">UDisksPartition</span></a>.</p></td>
1245 <td class="parameter_annotations"> </td>
1246 </tr>
1247 </tbody>
1248 </table></div>
1249 </div>
1250 <div class="refsect3">
1251 <a name="udisks-client-get-partition-table.returns"></a><h4>Returns</h4>
1252 <p>A <a class="link" href="UDisksPartitionTable.html" title="UDisksPartitionTable"><span class="type">UDisksPartitionTable</span></a> or <code class="literal">NULL</code> if there is no <a class="link" href="UDisksPartitionTable.html" title="UDisksPartitionTable"><span class="type">UDisksPartitionTable</span></a> for <em class="parameter"><code>partition</code></em>
1253 .
1254 Free with <code class="function">g_object_unref()</code>. </p>
1255 <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>
1256 </div>
1257 </div>
1258 <hr>
1259 <div class="refsect2">
1260 <a name="udisks-client-get-loop-for-block"></a><h3>udisks_client_get_loop_for_block ()</h3>
1261 <pre class="programlisting"><a class="link" href="UDisksLoop.html" title="UDisksLoop"><span class="returnvalue">UDisksLoop</span></a> *
1262 udisks_client_get_loop_for_block (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1263 <em class="parameter"><code><a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> *block</code></em>);</pre>
1264 <p>Gets the corresponding loop interface for <em class="parameter"><code>block</code></em>
1265 .</p>
1266 <p>This only works if <em class="parameter"><code>block</code></em>
1267 itself is a loop device or a partition of
1268 a loop device.</p>
1269 <div class="refsect3">
1270 <a name="udisks-client-get-loop-for-block.parameters"></a><h4>Parameters</h4>
1271 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1272 <colgroup>
1273 <col width="150px" class="parameters_name">
1274 <col class="parameters_description">
1275 <col width="200px" class="parameters_annotations">
1276 </colgroup>
1277 <tbody>
1278 <tr>
1279 <td class="parameter_name"><p>client</p></td>
1280 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1281 <td class="parameter_annotations"> </td>
1282 </tr>
1283 <tr>
1284 <td class="parameter_name"><p>block</p></td>
1285 <td class="parameter_description"><p>A <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a>.</p></td>
1286 <td class="parameter_annotations"> </td>
1287 </tr>
1288 </tbody>
1289 </table></div>
1290 </div>
1291 <div class="refsect3">
1292 <a name="udisks-client-get-loop-for-block.returns"></a><h4>Returns</h4>
1293 <p>A <a class="link" href="UDisksLoop.html" title="UDisksLoop"><span class="type">UDisksLoop</span></a> or <code class="literal">NULL</code>. Free with <code class="function">g_object_unref()</code>. </p>
1294 <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>
1295 </div>
1296 </div>
1297 <hr>
1298 <div class="refsect2">
1299 <a name="udisks-client-get-partitions"></a><h3>udisks_client_get_partitions ()</h3>
1300 <pre class="programlisting"><span class="returnvalue">GList</span> *
1301 udisks_client_get_partitions (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1302 <em class="parameter"><code><a class="link" href="UDisksPartitionTable.html" title="UDisksPartitionTable"><span class="type">UDisksPartitionTable</span></a> *table</code></em>);</pre>
1303 <p>Gets all partitions of <em class="parameter"><code>table</code></em>
1304 .</p>
1305 <div class="refsect3">
1306 <a name="udisks-client-get-partitions.parameters"></a><h4>Parameters</h4>
1307 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1308 <colgroup>
1309 <col width="150px" class="parameters_name">
1310 <col class="parameters_description">
1311 <col width="200px" class="parameters_annotations">
1312 </colgroup>
1313 <tbody>
1314 <tr>
1315 <td class="parameter_name"><p>client</p></td>
1316 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1317 <td class="parameter_annotations"> </td>
1318 </tr>
1319 <tr>
1320 <td class="parameter_name"><p>table</p></td>
1321 <td class="parameter_description"><p>A <a class="link" href="UDisksPartitionTable.html" title="UDisksPartitionTable"><span class="type">UDisksPartitionTable</span></a>.</p></td>
1322 <td class="parameter_annotations"> </td>
1323 </tr>
1324 </tbody>
1325 </table></div>
1326 </div>
1327 <div class="refsect3">
1328 <a name="udisks-client-get-partitions.returns"></a><h4>Returns</h4>
1329 <p>A list of <a class="link" href="UDisksPartition.html" title="UDisksPartition"><span class="type">UDisksPartition</span></a> instances. The
1330 returned list should be freed with <code class="function">g_list_free()</code> after each
1331 element has been freed with <code class="function">g_object_unref()</code>. </p>
1332 <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> UDisksPartition]</span></p>
1333 </div>
1334 </div>
1335 <hr>
1336 <div class="refsect2">
1337 <a name="udisks-client-get-drive-siblings"></a><h3>udisks_client_get_drive_siblings ()</h3>
1338 <pre class="programlisting"><span class="returnvalue">GList</span> *
1339 udisks_client_get_drive_siblings (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1340 <em class="parameter"><code><a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a> *drive</code></em>);</pre>
1341 <p>Gets all siblings for <em class="parameter"><code>drive</code></em>
1342 .</p>
1343 <div class="refsect3">
1344 <a name="udisks-client-get-drive-siblings.parameters"></a><h4>Parameters</h4>
1345 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1346 <colgroup>
1347 <col width="150px" class="parameters_name">
1348 <col class="parameters_description">
1349 <col width="200px" class="parameters_annotations">
1350 </colgroup>
1351 <tbody>
1352 <tr>
1353 <td class="parameter_name"><p>client</p></td>
1354 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a></p></td>
1355 <td class="parameter_annotations"> </td>
1356 </tr>
1357 <tr>
1358 <td class="parameter_name"><p>drive</p></td>
1359 <td class="parameter_description"><p>A <a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a>.</p></td>
1360 <td class="parameter_annotations"> </td>
1361 </tr>
1362 </tbody>
1363 </table></div>
1364 </div>
1365 <div class="refsect3">
1366 <a name="udisks-client-get-drive-siblings.returns"></a><h4>Returns</h4>
1367 <p>A list of <a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a> instances. The
1368 returned list should be freed with <code class="function">g_list_free()</code> after each element has been
1369 freed with <code class="function">g_object_unref()</code>. </p>
1370 <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> UDisksDrive]</span></p>
1371 </div>
1372 <p class="since">Since: 2.1</p>
1373 </div>
1374 <hr>
1375 <div class="refsect2">
1376 <a name="udisks-client-get-block-for-mdraid"></a><h3>udisks_client_get_block_for_mdraid ()</h3>
1377 <pre class="programlisting"><a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="returnvalue">UDisksBlock</span></a> *
1378 udisks_client_get_block_for_mdraid (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1379 <em class="parameter"><code><a class="link" href="UDisksMDRaid.html" title="UDisksMDRaid"><span class="type">UDisksMDRaid</span></a> *raid</code></em>);</pre>
1380 <p>Gets the RAID device (e.g. <code class="filename">/dev/md0</code>) for <em class="parameter"><code>raid</code></em>
1381 .</p>
1382 <p>In the case of a <a class="ulink" href="http://en.wikipedia.org/wiki/Split-brain_(computing)" target="_top">split-brain
1383 syndrome</a>, it is undefined which RAID device is
1384 returned. For example this can happen if
1385 <code class="filename">/dev/sda</code> and <code class="filename">/dev/sdb</code> are
1386 components of a two-disk RAID-1 and <code class="filename">/dev/md0</code>
1387 and <code class="filename">/dev/md1</code> are two degraded arrays, each one
1388 using exactly one of the two devices. Use
1389 <a class="link" href="UDisksClient.html#udisks-client-get-all-blocks-for-mdraid" title="udisks_client_get_all_blocks_for_mdraid ()"><code class="function">udisks_client_get_all_blocks_for_mdraid()</code></a> to get all RAID devices.</p>
1390 <div class="refsect3">
1391 <a name="udisks-client-get-block-for-mdraid.parameters"></a><h4>Parameters</h4>
1392 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1393 <colgroup>
1394 <col width="150px" class="parameters_name">
1395 <col class="parameters_description">
1396 <col width="200px" class="parameters_annotations">
1397 </colgroup>
1398 <tbody>
1399 <tr>
1400 <td class="parameter_name"><p>client</p></td>
1401 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1402 <td class="parameter_annotations"> </td>
1403 </tr>
1404 <tr>
1405 <td class="parameter_name"><p>raid</p></td>
1406 <td class="parameter_description"><p>A <a class="link" href="UDisksMDRaid.html" title="UDisksMDRaid"><span class="type">UDisksMDRaid</span></a>.</p></td>
1407 <td class="parameter_annotations"> </td>
1408 </tr>
1409 </tbody>
1410 </table></div>
1411 </div>
1412 <div class="refsect3">
1413 <a name="udisks-client-get-block-for-mdraid.returns"></a><h4>Returns</h4>
1414 <p>A <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> or <code class="literal">NULL</code> if no RAID device is running. </p>
1415 <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>
1416 </div>
1417 <p class="since">Since: 2.1</p>
1418 </div>
1419 <hr>
1420 <div class="refsect2">
1421 <a name="udisks-client-get-all-blocks-for-mdraid"></a><h3>udisks_client_get_all_blocks_for_mdraid ()</h3>
1422 <pre class="programlisting"><span class="returnvalue">GList</span> *
1423 udisks_client_get_all_blocks_for_mdraid
1424 (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1425 <em class="parameter"><code><a class="link" href="UDisksMDRaid.html" title="UDisksMDRaid"><span class="type">UDisksMDRaid</span></a> *raid</code></em>);</pre>
1426 <p>Gets all RAID devices (e.g. <code class="filename">/dev/md0</code> and <code class="filename">/dev/md1</code>) for <em class="parameter"><code>raid</code></em>
1427 .</p>
1428 <p>This is usually only useful in <a class="ulink" href="http://en.wikipedia.org/wiki/Split-brain_(computing)" target="_top">split-brain
1429 situations</a> — see <a class="link" href="UDisksClient.html#udisks-client-get-block-for-mdraid" title="udisks_client_get_block_for_mdraid ()"><code class="function">udisks_client_get_block_for_mdraid()</code></a> for
1430 an example — and is normally used only to convey the problem in an
1431 user interface.</p>
1432 <div class="refsect3">
1433 <a name="udisks-client-get-all-blocks-for-mdraid.parameters"></a><h4>Parameters</h4>
1434 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1435 <colgroup>
1436 <col width="150px" class="parameters_name">
1437 <col class="parameters_description">
1438 <col width="200px" class="parameters_annotations">
1439 </colgroup>
1440 <tbody>
1441 <tr>
1442 <td class="parameter_name"><p>client</p></td>
1443 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1444 <td class="parameter_annotations"> </td>
1445 </tr>
1446 <tr>
1447 <td class="parameter_name"><p>raid</p></td>
1448 <td class="parameter_description"><p>A <a class="link" href="UDisksMDRaid.html" title="UDisksMDRaid"><span class="type">UDisksMDRaid</span></a>.</p></td>
1449 <td class="parameter_annotations"> </td>
1450 </tr>
1451 </tbody>
1452 </table></div>
1453 </div>
1454 <div class="refsect3">
1455 <a name="udisks-client-get-all-blocks-for-mdraid.returns"></a><h4>Returns</h4>
1456 <p>A list of <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> instances. The
1457 returned list should be freed with <code class="function">g_list_free()</code> after each
1458 element has been freed with <code class="function">g_object_unref()</code>. </p>
1459 <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> UDisksBlock]</span></p>
1460 </div>
1461 <p class="since">Since: 2.1</p>
1462 </div>
1463 <hr>
1464 <div class="refsect2">
1465 <a name="udisks-client-get-members-for-mdraid"></a><h3>udisks_client_get_members_for_mdraid ()</h3>
1466 <pre class="programlisting"><span class="returnvalue">GList</span> *
1467 udisks_client_get_members_for_mdraid (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1468 <em class="parameter"><code><a class="link" href="UDisksMDRaid.html" title="UDisksMDRaid"><span class="type">UDisksMDRaid</span></a> *raid</code></em>);</pre>
1469 <p>Gets the physical block devices that are part of <em class="parameter"><code>raid</code></em>
1470 .</p>
1471 <div class="refsect3">
1472 <a name="udisks-client-get-members-for-mdraid.parameters"></a><h4>Parameters</h4>
1473 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1474 <colgroup>
1475 <col width="150px" class="parameters_name">
1476 <col class="parameters_description">
1477 <col width="200px" class="parameters_annotations">
1478 </colgroup>
1479 <tbody>
1480 <tr>
1481 <td class="parameter_name"><p>client</p></td>
1482 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1483 <td class="parameter_annotations"> </td>
1484 </tr>
1485 <tr>
1486 <td class="parameter_name"><p>raid</p></td>
1487 <td class="parameter_description"><p>A <a class="link" href="UDisksMDRaid.html" title="UDisksMDRaid"><span class="type">UDisksMDRaid</span></a>.</p></td>
1488 <td class="parameter_annotations"> </td>
1489 </tr>
1490 </tbody>
1491 </table></div>
1492 </div>
1493 <div class="refsect3">
1494 <a name="udisks-client-get-members-for-mdraid.returns"></a><h4>Returns</h4>
1495 <p>A list of <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> instances. The
1496 returned list should be freed with <code class="function">g_list_free()</code> after each
1497 element has been freed with <code class="function">g_object_unref()</code>. </p>
1498 <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> UDisksBlock]</span></p>
1499 </div>
1500 <p class="since">Since: 2.1</p>
1501 </div>
1502 <hr>
1503 <div class="refsect2">
1504 <a name="udisks-client-get-mdraid-for-block"></a><h3>udisks_client_get_mdraid_for_block ()</h3>
1505 <pre class="programlisting"><a class="link" href="UDisksMDRaid.html" title="UDisksMDRaid"><span class="returnvalue">UDisksMDRaid</span></a> *
1506 udisks_client_get_mdraid_for_block (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1507 <em class="parameter"><code><a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> *block</code></em>);</pre>
1508 <p>Gets the <a class="link" href="UDisksMDRaid.html" title="UDisksMDRaid"><span class="type">UDisksMDRaid</span></a> that <em class="parameter"><code>block</code></em>
1509 is the block device for, if any.</p>
1510 <div class="refsect3">
1511 <a name="udisks-client-get-mdraid-for-block.parameters"></a><h4>Parameters</h4>
1512 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1513 <colgroup>
1514 <col width="150px" class="parameters_name">
1515 <col class="parameters_description">
1516 <col width="200px" class="parameters_annotations">
1517 </colgroup>
1518 <tbody>
1519 <tr>
1520 <td class="parameter_name"><p>client</p></td>
1521 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1522 <td class="parameter_annotations"> </td>
1523 </tr>
1524 <tr>
1525 <td class="parameter_name"><p>block</p></td>
1526 <td class="parameter_description"><p>A <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a>.</p></td>
1527 <td class="parameter_annotations"> </td>
1528 </tr>
1529 </tbody>
1530 </table></div>
1531 </div>
1532 <div class="refsect3">
1533 <a name="udisks-client-get-mdraid-for-block.returns"></a><h4>Returns</h4>
1534 <p>A <a class="link" href="UDisksMDRaid.html" title="UDisksMDRaid"><span class="type">UDisksMDRaid</span></a> or <code class="literal">NULL</code> if there is no
1535 <a class="link" href="UDisksMDRaid.html" title="UDisksMDRaid"><span class="type">UDisksMDRaid</span></a> for <em class="parameter"><code>block</code></em>
1536 or <em class="parameter"><code>block</code></em>
1537 is not a MD-RAID block
1538 device. Free the returned object with <code class="function">g_object_unref()</code>. </p>
1539 <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>
1540 </div>
1541 <p class="since">Since: 2.1</p>
1542 </div>
1543 <hr>
1544 <div class="refsect2">
1545 <a name="udisks-client-get-object-info"></a><h3>udisks_client_get_object_info ()</h3>
1546 <pre class="programlisting"><a class="link" href="UDisksObjectInfo.html" title="UDisksObjectInfo"><span class="returnvalue">UDisksObjectInfo</span></a> *
1547 udisks_client_get_object_info (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1548 <em class="parameter"><code><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> *object</code></em>);</pre>
1549 <p>Gets information about a <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> instance that is suitable to
1550 present in an user interface. Information is returned in the
1551 <a class="link" href="UDisksObjectInfo.html" title="UDisksObjectInfo"><span class="type">UDisksObjectInfo</span></a> object and is localized.</p>
1552 <div class="refsect3">
1553 <a name="udisks-client-get-object-info.parameters"></a><h4>Parameters</h4>
1554 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1555 <colgroup>
1556 <col width="150px" class="parameters_name">
1557 <col class="parameters_description">
1558 <col width="200px" class="parameters_annotations">
1559 </colgroup>
1560 <tbody>
1561 <tr>
1562 <td class="parameter_name"><p>client</p></td>
1563 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1564 <td class="parameter_annotations"> </td>
1565 </tr>
1566 <tr>
1567 <td class="parameter_name"><p>object</p></td>
1568 <td class="parameter_description"><p>A <a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a>.</p></td>
1569 <td class="parameter_annotations"> </td>
1570 </tr>
1571 </tbody>
1572 </table></div>
1573 </div>
1574 <div class="refsect3">
1575 <a name="udisks-client-get-object-info.returns"></a><h4>Returns</h4>
1576 <p>A <a class="link" href="UDisksObjectInfo.html" title="UDisksObjectInfo"><span class="type">UDisksObjectInfo</span></a> instance that should be freed with <code class="function">g_object_unref()</code>. </p>
1577 <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>
1578 </div>
1579 <p class="since">Since: 2.1</p>
1580 </div>
1581 <hr>
1582 <div class="refsect2">
1583 <a name="udisks-client-get-drive-info"></a><h3>udisks_client_get_drive_info ()</h3>
1584 <pre class="programlisting"><span class="returnvalue">void</span>
1585 udisks_client_get_drive_info (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1586 <em class="parameter"><code><a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a> *drive</code></em>,
1587 <em class="parameter"><code><span class="type">gchar</span> **out_name</code></em>,
1588 <em class="parameter"><code><span class="type">gchar</span> **out_description</code></em>,
1589 <em class="parameter"><code><span class="type">GIcon</span> **out_drive_icon</code></em>,
1590 <em class="parameter"><code><span class="type">gchar</span> **out_media_description</code></em>,
1591 <em class="parameter"><code><span class="type">GIcon</span> **out_media_icon</code></em>);</pre>
1592 <div class="warning">
1593 <p><code class="literal">udisks_client_get_drive_info</code> has been deprecated since version 2.1 and should not be used in newly-written code.</p>
1594 <p>Use <a class="link" href="UDisksClient.html#udisks-client-get-object-info" title="udisks_client_get_object_info ()"><code class="function">udisks_client_get_object_info()</code></a> instead.</p>
1595 </div>
1596 <p>Gets information about a <a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a> object that is suitable to
1597 present in an user interface. The returned strings are localized.</p>
1598 <div class="refsect3">
1599 <a name="udisks-client-get-drive-info.parameters"></a><h4>Parameters</h4>
1600 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1601 <colgroup>
1602 <col width="150px" class="parameters_name">
1603 <col class="parameters_description">
1604 <col width="200px" class="parameters_annotations">
1605 </colgroup>
1606 <tbody>
1607 <tr>
1608 <td class="parameter_name"><p>client</p></td>
1609 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1610 <td class="parameter_annotations"> </td>
1611 </tr>
1612 <tr>
1613 <td class="parameter_name"><p>drive</p></td>
1614 <td class="parameter_description"><p>A <a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a>.</p></td>
1615 <td class="parameter_annotations"> </td>
1616 </tr>
1617 <tr>
1618 <td class="parameter_name"><p>out_name</p></td>
1619 <td class="parameter_description"><p>Return location for name or <code class="literal">NULL</code>. </p></td>
1620 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1621 </tr>
1622 <tr>
1623 <td class="parameter_name"><p>out_description</p></td>
1624 <td class="parameter_description"><p>Return location for description or <code class="literal">NULL</code>. </p></td>
1625 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1626 </tr>
1627 <tr>
1628 <td class="parameter_name"><p>out_drive_icon</p></td>
1629 <td class="parameter_description"><p>Return location for icon representing the drive or <code class="literal">NULL</code>. </p></td>
1630 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1631 </tr>
1632 <tr>
1633 <td class="parameter_name"><p>out_media_description</p></td>
1634 <td class="parameter_description"><p>Return location for description of the media or <code class="literal">NULL</code>. </p></td>
1635 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1636 </tr>
1637 <tr>
1638 <td class="parameter_name"><p>out_media_icon</p></td>
1639 <td class="parameter_description"><p>Return location for icon representing the media or <code class="literal">NULL</code>. </p></td>
1640 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1641 </tr>
1642 </tbody>
1643 </table></div>
1644 </div>
1645 </div>
1646 <hr>
1647 <div class="refsect2">
1648 <a name="udisks-client-get-partition-info"></a><h3>udisks_client_get_partition_info ()</h3>
1649 <pre class="programlisting"><span class="returnvalue">gchar</span> *
1650 udisks_client_get_partition_info (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1651 <em class="parameter"><code><a class="link" href="UDisksPartition.html" title="UDisksPartition"><span class="type">UDisksPartition</span></a> *partition</code></em>);</pre>
1652 <p>Gets information about <em class="parameter"><code>partition</code></em>
1653 that is suitable to present in an
1654 user interface in a single line of text.</p>
1655 <p>The returned string is localized and includes things like the
1656 partition type, flags (if any) and name (if any).</p>
1657 <div class="refsect3">
1658 <a name="udisks-client-get-partition-info.parameters"></a><h4>Parameters</h4>
1659 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1660 <colgroup>
1661 <col width="150px" class="parameters_name">
1662 <col class="parameters_description">
1663 <col width="200px" class="parameters_annotations">
1664 </colgroup>
1665 <tbody>
1666 <tr>
1667 <td class="parameter_name"><p>client</p></td>
1668 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1669 <td class="parameter_annotations"> </td>
1670 </tr>
1671 <tr>
1672 <td class="parameter_name"><p>partition</p></td>
1673 <td class="parameter_description"><div class="refsect2">
1674 <a name="id-1.4.2.11.32.6.2.1.4.2.2.1"></a><h3>
1675 <a class="link" href="UDisksPartition.html" title="UDisksPartition"><span class="type">UDisksPartition</span></a>.</h3>
1676 </div></td>
1677 <td class="parameter_annotations"> </td>
1678 </tr>
1679 </tbody>
1680 </table></div>
1681 </div>
1682 <div class="refsect3">
1683 <a name="udisks-client-get-partition-info.returns"></a><h4>Returns</h4>
1684 <p>A string that should be freed with <code class="function">g_free()</code>. </p>
1685 <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>
1686 </div>
1687 </div>
1688 <hr>
1689 <div class="refsect2">
1690 <a name="udisks-client-get-size-for-display"></a><h3>udisks_client_get_size_for_display ()</h3>
1691 <pre class="programlisting"><span class="returnvalue">gchar</span> *
1692 udisks_client_get_size_for_display (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1693 <em class="parameter"><code><span class="type">guint64</span> size</code></em>,
1694 <em class="parameter"><code><span class="type">gboolean</span> use_pow2</code></em>,
1695 <em class="parameter"><code><span class="type">gboolean</span> long_string</code></em>);</pre>
1696 <p>Utility function to get a human-readable string that represents <em class="parameter"><code>size</code></em>
1697 .</p>
1698 <div class="refsect3">
1699 <a name="udisks-client-get-size-for-display.parameters"></a><h4>Parameters</h4>
1700 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1701 <colgroup>
1702 <col width="150px" class="parameters_name">
1703 <col class="parameters_description">
1704 <col width="200px" class="parameters_annotations">
1705 </colgroup>
1706 <tbody>
1707 <tr>
1708 <td class="parameter_name"><p>client</p></td>
1709 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1710 <td class="parameter_annotations"> </td>
1711 </tr>
1712 <tr>
1713 <td class="parameter_name"><p>size</p></td>
1714 <td class="parameter_description"><p>Size in bytes</p></td>
1715 <td class="parameter_annotations"> </td>
1716 </tr>
1717 <tr>
1718 <td class="parameter_name"><p>use_pow2</p></td>
1719 <td class="parameter_description"><p>Whether power-of-two units should be used instead of power-of-ten units.</p></td>
1720 <td class="parameter_annotations"> </td>
1721 </tr>
1722 <tr>
1723 <td class="parameter_name"><p>long_string</p></td>
1724 <td class="parameter_description"><p>Whether to produce a long string.</p></td>
1725 <td class="parameter_annotations"> </td>
1726 </tr>
1727 </tbody>
1728 </table></div>
1729 </div>
1730 <div class="refsect3">
1731 <a name="udisks-client-get-size-for-display.returns"></a><h4>Returns</h4>
1732 <p>A string that should be freed with <code class="function">g_free()</code>. </p>
1733 <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>
1734 </div>
1735 </div>
1736 <hr>
1737 <div class="refsect2">
1738 <a name="udisks-client-get-id-for-display"></a><h3>udisks_client_get_id_for_display ()</h3>
1739 <pre class="programlisting"><span class="returnvalue">gchar</span> *
1740 udisks_client_get_id_for_display (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1741 <em class="parameter"><code>const <span class="type">gchar</span> *usage</code></em>,
1742 <em class="parameter"><code>const <span class="type">gchar</span> *type</code></em>,
1743 <em class="parameter"><code>const <span class="type">gchar</span> *version</code></em>,
1744 <em class="parameter"><code><span class="type">gboolean</span> long_string</code></em>);</pre>
1745 <p>Gets a human readable localized string for <em class="parameter"><code>usage</code></em>
1746 , <em class="parameter"><code>type</code></em>
1747 and <em class="parameter"><code>version</code></em>
1748 .</p>
1749 <div class="refsect3">
1750 <a name="udisks-client-get-id-for-display.parameters"></a><h4>Parameters</h4>
1751 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1752 <colgroup>
1753 <col width="150px" class="parameters_name">
1754 <col class="parameters_description">
1755 <col width="200px" class="parameters_annotations">
1756 </colgroup>
1757 <tbody>
1758 <tr>
1759 <td class="parameter_name"><p>client</p></td>
1760 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1761 <td class="parameter_annotations"> </td>
1762 </tr>
1763 <tr>
1764 <td class="parameter_name"><p>usage</p></td>
1765 <td class="parameter_description"><p>Usage id e.g. "filesystem" or "crypto".</p></td>
1766 <td class="parameter_annotations"> </td>
1767 </tr>
1768 <tr>
1769 <td class="parameter_name"><p>type</p></td>
1770 <td class="parameter_description"><p>Type e.g. "ext4" or "crypto_LUKS"</p></td>
1771 <td class="parameter_annotations"> </td>
1772 </tr>
1773 <tr>
1774 <td class="parameter_name"><p>version</p></td>
1775 <td class="parameter_description"><p>Version.</p></td>
1776 <td class="parameter_annotations"> </td>
1777 </tr>
1778 <tr>
1779 <td class="parameter_name"><p>long_string</p></td>
1780 <td class="parameter_description"><p>Whether to produce a long string.</p></td>
1781 <td class="parameter_annotations"> </td>
1782 </tr>
1783 </tbody>
1784 </table></div>
1785 </div>
1786 <div class="refsect3">
1787 <a name="udisks-client-get-id-for-display.returns"></a><h4>Returns</h4>
1788 <p>A string that should be freed with <code class="function">g_free()</code>. </p>
1789 <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>
1790 </div>
1791 </div>
1792 <hr>
1793 <div class="refsect2">
1794 <a name="udisks-client-get-media-compat-for-display"></a><h3>udisks_client_get_media_compat_for_display ()</h3>
1795 <pre class="programlisting"><span class="returnvalue">gchar</span> *
1796 udisks_client_get_media_compat_for_display
1797 (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1798 <em class="parameter"><code>const <span class="type">gchar</span> * const *media_compat</code></em>);</pre>
1799 <p>Gets a human-readable string of the media described by
1800 <em class="parameter"><code>media_compat</code></em>
1801 . The returned information is localized.</p>
1802 <div class="refsect3">
1803 <a name="udisks-client-get-media-compat-for-display.parameters"></a><h4>Parameters</h4>
1804 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1805 <colgroup>
1806 <col width="150px" class="parameters_name">
1807 <col class="parameters_description">
1808 <col width="200px" class="parameters_annotations">
1809 </colgroup>
1810 <tbody>
1811 <tr>
1812 <td class="parameter_name"><p>client</p></td>
1813 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1814 <td class="parameter_annotations"> </td>
1815 </tr>
1816 <tr>
1817 <td class="parameter_name"><p>media_compat</p></td>
1818 <td class="parameter_description"><p>An array of media types.</p></td>
1819 <td class="parameter_annotations"> </td>
1820 </tr>
1821 </tbody>
1822 </table></div>
1823 </div>
1824 <div class="refsect3">
1825 <a name="udisks-client-get-media-compat-for-display.returns"></a><h4>Returns</h4>
1826 <p>A string that should be freed with <code class="function">g_free()</code> or
1827 <code class="literal">NULL</code> if unknown. </p>
1828 <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>
1829 </div>
1830 </div>
1831 <hr>
1832 <div class="refsect2">
1833 <a name="udisks-partition-type-info-free"></a><h3>udisks_partition_type_info_free ()</h3>
1834 <pre class="programlisting"><span class="returnvalue">void</span>
1835 udisks_partition_type_info_free (<em class="parameter"><code><a class="link" href="UDisksClient.html#UDisksPartitionTypeInfo"><span class="type">UDisksPartitionTypeInfo</span></a> *info</code></em>);</pre>
1836 <p>Frees <em class="parameter"><code>info</code></em>
1837 .</p>
1838 <div class="refsect3">
1839 <a name="udisks-partition-type-info-free.parameters"></a><h4>Parameters</h4>
1840 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1841 <colgroup>
1842 <col width="150px" class="parameters_name">
1843 <col class="parameters_description">
1844 <col width="200px" class="parameters_annotations">
1845 </colgroup>
1846 <tbody><tr>
1847 <td class="parameter_name"><p>info</p></td>
1848 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html#UDisksPartitionTypeInfo"><span class="type">UDisksPartitionTypeInfo</span></a>.</p></td>
1849 <td class="parameter_annotations"> </td>
1850 </tr></tbody>
1851 </table></div>
1852 </div>
1853 </div>
1854 <hr>
1855 <div class="refsect2">
1856 <a name="udisks-client-get-partition-type-infos"></a><h3>udisks_client_get_partition_type_infos ()</h3>
1857 <pre class="programlisting"><span class="returnvalue">GList</span> *
1858 udisks_client_get_partition_type_infos
1859 (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1860 <em class="parameter"><code>const <span class="type">gchar</span> *partition_table_type</code></em>,
1861 <em class="parameter"><code>const <span class="type">gchar</span> *partition_table_subtype</code></em>);</pre>
1862 <p>Gets information about all known partition types for <em class="parameter"><code>partition_table_type</code></em>
1863 and <em class="parameter"><code>partition_table_subtype</code></em>
1864 .</p>
1865 <div class="refsect3">
1866 <a name="udisks-client-get-partition-type-infos.parameters"></a><h4>Parameters</h4>
1867 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1868 <colgroup>
1869 <col width="150px" class="parameters_name">
1870 <col class="parameters_description">
1871 <col width="200px" class="parameters_annotations">
1872 </colgroup>
1873 <tbody>
1874 <tr>
1875 <td class="parameter_name"><p>client</p></td>
1876 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1877 <td class="parameter_annotations"> </td>
1878 </tr>
1879 <tr>
1880 <td class="parameter_name"><p>partition_table_type</p></td>
1881 <td class="parameter_description"><p>A partition table type e.g. 'dos' or 'gpt'.</p></td>
1882 <td class="parameter_annotations"> </td>
1883 </tr>
1884 <tr>
1885 <td class="parameter_name"><p>partition_table_subtype</p></td>
1886 <td class="parameter_description"><p>A partition table subtype or <code class="literal">NULL</code> to get all known types. </p></td>
1887 <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>
1888 </tr>
1889 </tbody>
1890 </table></div>
1891 </div>
1892 <div class="refsect3">
1893 <a name="udisks-client-get-partition-type-infos.returns"></a><h4>Returns</h4>
1894 <p>A list of
1895 <a class="link" href="UDisksClient.html#UDisksPartitionTypeInfo"><span class="type">UDisksPartitionTypeInfo</span></a> instances. The returned list should be freed
1896 with <code class="function">g_list_free()</code> after freeing each element with <a class="link" href="UDisksClient.html#udisks-partition-type-info-free" title="udisks_partition_type_info_free ()"><code class="function">udisks_partition_type_info_free()</code></a>. </p>
1897 <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> UDisksPartitionTypeInfo]</span></p>
1898 </div>
1899 </div>
1900 <hr>
1901 <div class="refsect2">
1902 <a name="udisks-client-get-partition-table-subtypes"></a><h3>udisks_client_get_partition_table_subtypes ()</h3>
1903 <pre class="programlisting">const <span class="returnvalue">gchar</span> **
1904 udisks_client_get_partition_table_subtypes
1905 (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1906 <em class="parameter"><code>const <span class="type">gchar</span> *partition_table_type</code></em>);</pre>
1907 <p>Gets all known subtypes for <em class="parameter"><code>partition_table_type</code></em>
1908 .</p>
1909 <div class="refsect3">
1910 <a name="udisks-client-get-partition-table-subtypes.parameters"></a><h4>Parameters</h4>
1911 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1912 <colgroup>
1913 <col width="150px" class="parameters_name">
1914 <col class="parameters_description">
1915 <col width="200px" class="parameters_annotations">
1916 </colgroup>
1917 <tbody>
1918 <tr>
1919 <td class="parameter_name"><p>client</p></td>
1920 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1921 <td class="parameter_annotations"> </td>
1922 </tr>
1923 <tr>
1924 <td class="parameter_name"><p>partition_table_type</p></td>
1925 <td class="parameter_description"><p>A partition table type e.g. 'dos' or 'gpt'.</p></td>
1926 <td class="parameter_annotations"> </td>
1927 </tr>
1928 </tbody>
1929 </table></div>
1930 </div>
1931 <div class="refsect3">
1932 <a name="udisks-client-get-partition-table-subtypes.returns"></a><h4>Returns</h4>
1933 <p>A <code class="literal">NULL</code>-terminated array of
1934 strings. Only the container should be freed with <code class="function">g_free()</code>. </p>
1935 <p><span class="annotation">[<acronym title="The caller owns the data container, but not the data inside it."><span class="acronym">transfer container</span></acronym>]</span></p>
1936 </div>
1937 </div>
1938 <hr>
1939 <div class="refsect2">
1940 <a name="udisks-client-get-partition-type-for-display"></a><h3>udisks_client_get_partition_type_for_display ()</h3>
1941 <pre class="programlisting">const <span class="returnvalue">gchar</span> *
1942 udisks_client_get_partition_type_for_display
1943 (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1944 <em class="parameter"><code>const <span class="type">gchar</span> *partition_table_type</code></em>,
1945 <em class="parameter"><code>const <span class="type">gchar</span> *partition_type</code></em>);</pre>
1946 <p>Gets a human readable localized string for <em class="parameter"><code>partiton_table_type</code></em>
1947 and <em class="parameter"><code>partition_type</code></em>
1948 .</p>
1949 <div class="refsect3">
1950 <a name="udisks-client-get-partition-type-for-display.parameters"></a><h4>Parameters</h4>
1951 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1952 <colgroup>
1953 <col width="150px" class="parameters_name">
1954 <col class="parameters_description">
1955 <col width="200px" class="parameters_annotations">
1956 </colgroup>
1957 <tbody>
1958 <tr>
1959 <td class="parameter_name"><p>client</p></td>
1960 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
1961 <td class="parameter_annotations"> </td>
1962 </tr>
1963 <tr>
1964 <td class="parameter_name"><p>partition_table_type</p></td>
1965 <td class="parameter_description"><p>A partitioning type e.g. 'dos' or 'gpt'.</p></td>
1966 <td class="parameter_annotations"> </td>
1967 </tr>
1968 <tr>
1969 <td class="parameter_name"><p>partition_type</p></td>
1970 <td class="parameter_description"><p>A partition type.</p></td>
1971 <td class="parameter_annotations"> </td>
1972 </tr>
1973 </tbody>
1974 </table></div>
1975 </div>
1976 <div class="refsect3">
1977 <a name="udisks-client-get-partition-type-for-display.returns"></a><h4>Returns</h4>
1978 <p>A description of <em class="parameter"><code>partition_type</code></em>
1979 or <code class="literal">NULL</code> if
1980 unknown. </p>
1981 <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
1982 </div>
1983 </div>
1984 <hr>
1985 <div class="refsect2">
1986 <a name="udisks-client-get-partition-type-and-subtype-for-display"></a><h3>udisks_client_get_partition_type_and_subtype_for_display ()</h3>
1987 <pre class="programlisting">const <span class="returnvalue">gchar</span> *
1988 udisks_client_get_partition_type_and_subtype_for_display
1989 (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
1990 <em class="parameter"><code>const <span class="type">gchar</span> *partition_table_type</code></em>,
1991 <em class="parameter"><code>const <span class="type">gchar</span> *partition_table_subtype</code></em>,
1992 <em class="parameter"><code>const <span class="type">gchar</span> *partition_type</code></em>);</pre>
1993 <p>Like <a class="link" href="UDisksClient.html#udisks-client-get-partition-type-for-display" title="udisks_client_get_partition_type_for_display ()"><code class="function">udisks_client_get_partition_type_for_display()</code></a> but also takes
1994 the partition table subtype into account, if available. This is
1995 useful in scenarios where different subtypes is using the same
1996 partition type.</p>
1997 <div class="refsect3">
1998 <a name="udisks-client-get-partition-type-and-subtype-for-display.parameters"></a><h4>Parameters</h4>
1999 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2000 <colgroup>
2001 <col width="150px" class="parameters_name">
2002 <col class="parameters_description">
2003 <col width="200px" class="parameters_annotations">
2004 </colgroup>
2005 <tbody>
2006 <tr>
2007 <td class="parameter_name"><p>client</p></td>
2008 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
2009 <td class="parameter_annotations"> </td>
2010 </tr>
2011 <tr>
2012 <td class="parameter_name"><p>partition_table_type</p></td>
2013 <td class="parameter_description"><p>A partitioning type e.g. 'dos' or 'gpt'.</p></td>
2014 <td class="parameter_annotations"> </td>
2015 </tr>
2016 <tr>
2017 <td class="parameter_name"><p>partition_table_subtype</p></td>
2018 <td class="parameter_description"><p>A partitioning subtype or <code class="literal">NULL</code>.</p></td>
2019 <td class="parameter_annotations"> </td>
2020 </tr>
2021 <tr>
2022 <td class="parameter_name"><p>partition_type</p></td>
2023 <td class="parameter_description"><p>A partition type.</p></td>
2024 <td class="parameter_annotations"> </td>
2025 </tr>
2026 </tbody>
2027 </table></div>
2028 </div>
2029 <div class="refsect3">
2030 <a name="udisks-client-get-partition-type-and-subtype-for-display.returns"></a><h4>Returns</h4>
2031 <p>A description of <em class="parameter"><code>partition_type</code></em>
2032 or <code class="literal">NULL</code> if
2033 unknown. </p>
2034 <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
2035 </div>
2036 <p class="since">Since: 2.1.1</p>
2037 </div>
2038 <hr>
2039 <div class="refsect2">
2040 <a name="udisks-client-get-partition-table-type-for-display"></a><h3>udisks_client_get_partition_table_type_for_display ()</h3>
2041 <pre class="programlisting">const <span class="returnvalue">gchar</span> *
2042 udisks_client_get_partition_table_type_for_display
2043 (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
2044 <em class="parameter"><code>const <span class="type">gchar</span> *partition_table_type</code></em>);</pre>
2045 <p>Gets a human readable localized string for <em class="parameter"><code>partition_table_type</code></em>
2046 .</p>
2047 <div class="refsect3">
2048 <a name="udisks-client-get-partition-table-type-for-display.parameters"></a><h4>Parameters</h4>
2049 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2050 <colgroup>
2051 <col width="150px" class="parameters_name">
2052 <col class="parameters_description">
2053 <col width="200px" class="parameters_annotations">
2054 </colgroup>
2055 <tbody>
2056 <tr>
2057 <td class="parameter_name"><p>client</p></td>
2058 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
2059 <td class="parameter_annotations"> </td>
2060 </tr>
2061 <tr>
2062 <td class="parameter_name"><p>partition_table_type</p></td>
2063 <td class="parameter_description"><p>A partition table type e.g. 'dos' or 'gpt'.</p></td>
2064 <td class="parameter_annotations"> </td>
2065 </tr>
2066 </tbody>
2067 </table></div>
2068 </div>
2069 <div class="refsect3">
2070 <a name="udisks-client-get-partition-table-type-for-display.returns"></a><h4>Returns</h4>
2071 <p>A description of <em class="parameter"><code>partition_table_type</code></em>
2072 or <code class="literal">NULL</code>. </p>
2073 <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
2074 </div>
2075 </div>
2076 <hr>
2077 <div class="refsect2">
2078 <a name="udisks-client-get-partition-table-subtype-for-display"></a><h3>udisks_client_get_partition_table_subtype_for_display ()</h3>
2079 <pre class="programlisting">const <span class="returnvalue">gchar</span> *
2080 udisks_client_get_partition_table_subtype_for_display
2081 (<em class="parameter"><code><a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client</code></em>,
2082 <em class="parameter"><code>const <span class="type">gchar</span> *partition_table_type</code></em>,
2083 <em class="parameter"><code>const <span class="type">gchar</span> *partition_table_subtype</code></em>);</pre>
2084 <p>Gets a human readable localized string for <em class="parameter"><code>partition_table_type</code></em>
2085 and <em class="parameter"><code>partition_table_subtype</code></em>
2086 .</p>
2087 <div class="refsect3">
2088 <a name="udisks-client-get-partition-table-subtype-for-display.parameters"></a><h4>Parameters</h4>
2089 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2090 <colgroup>
2091 <col width="150px" class="parameters_name">
2092 <col class="parameters_description">
2093 <col width="200px" class="parameters_annotations">
2094 </colgroup>
2095 <tbody>
2096 <tr>
2097 <td class="parameter_name"><p>client</p></td>
2098 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
2099 <td class="parameter_annotations"> </td>
2100 </tr>
2101 <tr>
2102 <td class="parameter_name"><p>partition_table_type</p></td>
2103 <td class="parameter_description"><p>A partition table type e.g. 'dos' or 'gpt'.</p></td>
2104 <td class="parameter_annotations"> </td>
2105 </tr>
2106 <tr>
2107 <td class="parameter_name"><p>partition_table_subtype</p></td>
2108 <td class="parameter_description"><p>A partition table subtype e.g. 'generic' or 'linux'.</p></td>
2109 <td class="parameter_annotations"> </td>
2110 </tr>
2111 </tbody>
2112 </table></div>
2113 </div>
2114 <div class="refsect3">
2115 <a name="udisks-client-get-partition-table-subtype-for-display.returns"></a><h4>Returns</h4>
2116 <p>A description of <em class="parameter"><code>partition_table_type</code></em>
2117 and
2118 <em class="parameter"><code>partition_table_subtype</code></em>
2119 or <code class="literal">NULL</code>. </p>
2120 <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
2121 </div>
2122 </div>
2123 </div>
2124 <div class="refsect1">
2125 <a name="UDisksClient.other_details"></a><h2>Types and Values</h2>
2126 <div class="refsect2">
2127 <a name="UDISKS-MAJOR-VERSION:CAPS"></a><h3>UDISKS_MAJOR_VERSION</h3>
2128 <pre class="programlisting">#define UDISKS_MAJOR_VERSION 2
2129 </pre>
2130 <p>The major version of the libudisks2 header files.</p>
2131 </div>
2132 <hr>
2133 <div class="refsect2">
2134 <a name="UDISKS-MINOR-VERSION:CAPS"></a><h3>UDISKS_MINOR_VERSION</h3>
2135 <pre class="programlisting">#define UDISKS_MINOR_VERSION 11
2136 </pre>
2137 <p>The minor version of the libudisks2 header files.</p>
2138 </div>
2139 <hr>
2140 <div class="refsect2">
2141 <a name="UDISKS-MICRO-VERSION:CAPS"></a><h3>UDISKS_MICRO_VERSION</h3>
2142 <pre class="programlisting">#define UDISKS_MICRO_VERSION 1
2143 </pre>
2144 <p>The micro version of the libudisks2 header files.</p>
2145 </div>
2146 <hr>
2147 <div class="refsect2">
2148 <a name="UDisksClient-struct"></a><h3>UDisksClient</h3>
2149 <pre class="programlisting">typedef struct _UDisksClient UDisksClient;</pre>
2150 <p>The <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> structure contains only private data and should
2151 only be accessed using the provided API.</p>
2152 </div>
2153 <hr>
2154 <div class="refsect2">
2155 <a name="UDisksPartitionTypeInfo-struct"></a><h3>UDisksPartitionTypeInfo</h3>
2156 <pre class="programlisting">typedef struct {
2157 const gchar *table_type;
2158 const gchar *table_subtype;
2159 const gchar *type;
2160 UDisksPartitionTypeInfoFlags flags;
2161 } UDisksPartitionTypeInfo;
2162 </pre>
2163 <p>Detailed information about a partition type.</p>
2164 <p><em class="parameter"><code>table_subtype</code></em>
2165 is used to break the set of partition types for
2166 <em class="parameter"><code>table_type</code></em>
2167 into a logical subsets. It is typically only used in
2168 user interfaces where the partition type is selected.</p>
2169 <p>This struct may grow in the future without it being considered an
2170 ABI break.</p>
2171 <div class="refsect3">
2172 <a name="UDisksPartitionTypeInfo.members"></a><h4>Members</h4>
2173 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2174 <colgroup>
2175 <col width="300px" class="struct_members_name">
2176 <col class="struct_members_description">
2177 <col width="200px" class="struct_members_annotations">
2178 </colgroup>
2179 <tbody>
2180 <tr>
2181 <td class="struct_member_name"><p>const <span class="type">gchar</span> *<em class="structfield"><code><a name="UDisksPartitionTypeInfo-struct.table-type"></a>table_type</code></em>;</p></td>
2182 <td class="struct_member_description"><p>A partition table type e.g. 'dos' or 'gpt'</p></td>
2183 <td class="struct_member_annotations"> </td>
2184 </tr>
2185 <tr>
2186 <td class="struct_member_name"><p>const <span class="type">gchar</span> *<em class="structfield"><code><a name="UDisksPartitionTypeInfo-struct.table-subtype"></a>table_subtype</code></em>;</p></td>
2187 <td class="struct_member_description"><p>A partition table sub-type.</p></td>
2188 <td class="struct_member_annotations"> </td>
2189 </tr>
2190 <tr>
2191 <td class="struct_member_name"><p>const <span class="type">gchar</span> *<em class="structfield"><code><a name="UDisksPartitionTypeInfo-struct.type"></a>type</code></em>;</p></td>
2192 <td class="struct_member_description"><p>A partition type.</p></td>
2193 <td class="struct_member_annotations"> </td>
2194 </tr>
2195 <tr>
2196 <td class="struct_member_name"><p><a class="link" href="UDisksClient.html#UDisksPartitionTypeInfoFlags" title="enum UDisksPartitionTypeInfoFlags"><span class="type">UDisksPartitionTypeInfoFlags</span></a> <em class="structfield"><code><a name="UDisksPartitionTypeInfo-struct.flags"></a>flags</code></em>;</p></td>
2197 <td class="struct_member_description"><p>Flags from the <a class="link" href="UDisksClient.html#UDisksPartitionTypeInfoFlags" title="enum UDisksPartitionTypeInfoFlags"><span class="type">UDisksPartitionTypeInfoFlags</span></a> enumeration.</p></td>
2198 <td class="struct_member_annotations"> </td>
2199 </tr>
2200 </tbody>
2201 </table></div>
2202 </div>
2203 </div>
2204 <hr>
2205 <div class="refsect2">
2206 <a name="UDisksPartitionTypeInfoFlags"></a><h3>enum UDisksPartitionTypeInfoFlags</h3>
2207 <p>Flags describing a partition type.</p>
2208 <div class="refsect3">
2209 <a name="UDisksPartitionTypeInfoFlags.members"></a><h4>Members</h4>
2210 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2211 <colgroup>
2212 <col width="300px" class="enum_members_name">
2213 <col class="enum_members_description">
2214 <col width="200px" class="enum_members_annotations">
2215 </colgroup>
2216 <tbody>
2217 <tr>
2218 <td class="enum_member_name"><p><a name="UDISKS-PARTITION-TYPE-INFO-FLAGS-NONE:CAPS"></a>UDISKS_PARTITION_TYPE_INFO_FLAGS_NONE</p></td>
2219 <td class="enum_member_description">
2220 <p>No flags set.</p>
2221 </td>
2222 <td class="enum_member_annotations"> </td>
2223 </tr>
2224 <tr>
2225 <td class="enum_member_name"><p><a name="UDISKS-PARTITION-TYPE-INFO-FLAGS-SWAP:CAPS"></a>UDISKS_PARTITION_TYPE_INFO_FLAGS_SWAP</p></td>
2226 <td class="enum_member_description">
2227 <p>Partition type is used for swap.</p>
2228 </td>
2229 <td class="enum_member_annotations"> </td>
2230 </tr>
2231 <tr>
2232 <td class="enum_member_name"><p><a name="UDISKS-PARTITION-TYPE-INFO-FLAGS-RAID:CAPS"></a>UDISKS_PARTITION_TYPE_INFO_FLAGS_RAID</p></td>
2233 <td class="enum_member_description">
2234 <p>Partition type is used for RAID/LVM or similar.</p>
2235 </td>
2236 <td class="enum_member_annotations"> </td>
2237 </tr>
2238 <tr>
2239 <td class="enum_member_name"><p><a name="UDISKS-PARTITION-TYPE-INFO-FLAGS-HIDDEN:CAPS"></a>UDISKS_PARTITION_TYPE_INFO_FLAGS_HIDDEN</p></td>
2240 <td class="enum_member_description">
2241 <p>Partition type indicates the partition is hidden (e.g. 'dos' type 0x1b "Hidden W95 FAT32"). Note that this is not the same as user-toggleable attributes/flags for a partition.</p>
2242 </td>
2243 <td class="enum_member_annotations"> </td>
2244 </tr>
2245 <tr>
2246 <td class="enum_member_name"><p><a name="UDISKS-PARTITION-TYPE-INFO-FLAGS-CREATE-ONLY:CAPS"></a>UDISKS_PARTITION_TYPE_INFO_FLAGS_CREATE_ONLY</p></td>
2247 <td class="enum_member_description">
2248 <p>Partition type can only be used when creating a partition and e.g. should not be selectable in a "change partition type" user interface (e.g. 'dos' type 0x05, 0x0f and 0x85 for extended partitions).</p>
2249 </td>
2250 <td class="enum_member_annotations"> </td>
2251 </tr>
2252 <tr>
2253 <td class="enum_member_name"><p><a name="UDISKS-PARTITION-TYPE-INFO-FLAGS-SYSTEM:CAPS"></a>UDISKS_PARTITION_TYPE_INFO_FLAGS_SYSTEM</p></td>
2254 <td class="enum_member_description">
2255 <p>Partition type indicates the partition is part of the system / bootloader (e.g. 'dos' types 0xee, 0xff, 'gpt' types for 'EFI System partition' and 'BIOS Boot partition').</p>
2256 </td>
2257 <td class="enum_member_annotations"> </td>
2258 </tr>
2259 </tbody>
2260 </table></div>
2261 </div>
2262 </div>
2263 </div>
2264 <div class="refsect1">
2265 <a name="UDisksClient.property-details"></a><h2>Property Details</h2>
2266 <div class="refsect2">
2267 <a name="UDisksClient--bus-connection"></a><h3>The <code class="literal">“bus-connection”</code> property</h3>
2268 <pre class="programlisting"> “bus-connection” <span class="type">GDBusConnection</span> *</pre>
2269 <p>The <span class="type">GDBusConnection</span> used to create the <a class="link" href="UDisksClient.html#UDisksClient--object-manager" title="The “object-manager” property"><span class="type">“object-manager”</span></a>, or
2270 <code class="literal">NULL</code> if one wasn't specified during construction of the <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> (in
2271 which case a system bus connection is used).</p>
2272 <p>Owner: UDisksClient</p>
2273 <p>Flags: Read / Write / Construct Only</p>
2274 <p class="since">Since: 2.9.0</p>
2275 </div>
2276 <hr>
2277 <div class="refsect2">
2278 <a name="UDisksClient--manager"></a><h3>The <code class="literal">“manager”</code> property</h3>
2279 <pre class="programlisting"> “manager” <a class="link" href="UDisksManager.html" title="UDisksManager"><span class="type">UDisksManager</span></a> *</pre>
2280 <p>The <a class="link" href="UDisksManager.html" title="UDisksManager"><span class="type">UDisksManager</span></a> interface on the well-known
2281 <code class="literal">/org/freedesktop/UDisks2/Manager</code> object</p>
2282 <p>Owner: UDisksClient</p>
2283 <p>Flags: Read</p>
2284 </div>
2285 <hr>
2286 <div class="refsect2">
2287 <a name="UDisksClient--object-manager"></a><h3>The <code class="literal">“object-manager”</code> property</h3>
2288 <pre class="programlisting"> “object-manager” <span class="type">GDBusObjectManager</span> *</pre>
2289 <p>The <span class="type">GDBusObjectManager</span> used by the <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> instance.</p>
2290 <p>Owner: UDisksClient</p>
2291 <p>Flags: Read</p>
2292 </div>
2293 </div>
2294 <div class="refsect1">
2295 <a name="UDisksClient.signal-details"></a><h2>Signal Details</h2>
2296 <div class="refsect2">
2297 <a name="UDisksClient-changed"></a><h3>The <code class="literal">“changed”</code> signal</h3>
2298 <pre class="programlisting"><span class="returnvalue">void</span>
2299 user_function (<a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a> *client,
2300 <span class="type">gpointer</span> user_data)</pre>
2301 <p>This signal is emitted either when an object or interface is
2302 added or removed a when property has changed. Additionally,
2303 multiple received signals are coalesced into a single signal that
2304 is rate-limited to fire at most every 100ms.</p>
2305 <p>Note that calling <a class="link" href="UDisksClient.html#udisks-client-settle" title="udisks_client_settle ()"><code class="function">udisks_client_settle()</code></a> will cause this signal
2306 to fire if any changes are outstanding.</p>
2307 <p>For greater detail, connect to the
2308 <span class="type">“object-added”</span>,
2309 <span class="type">“object-removed”</span>,
2310 <span class="type">“interface-added”</span>,
2311 <span class="type">“interface-removed”</span>,
2312 <span class="type">“interface-proxy-properties-changed”</span> and
2313 signals on the <a class="link" href="UDisksClient.html#UDisksClient--object-manager" title="The “object-manager” property"><span class="type">“object-manager”</span></a> object.</p>
2314 <div class="refsect3">
2315 <a name="UDisksClient-changed.parameters"></a><h4>Parameters</h4>
2316 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2317 <colgroup>
2318 <col width="150px" class="parameters_name">
2319 <col class="parameters_description">
2320 <col width="200px" class="parameters_annotations">
2321 </colgroup>
2322 <tbody>
2323 <tr>
2324 <td class="parameter_name"><p>client</p></td>
2325 <td class="parameter_description"><p>A <a class="link" href="UDisksClient.html" title="UDisksClient"><span class="type">UDisksClient</span></a>.</p></td>
2326 <td class="parameter_annotations"> </td>
2327 </tr>
2328 <tr>
2329 <td class="parameter_name"><p>user_data</p></td>
2330 <td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
2331 <td class="parameter_annotations"> </td>
2332 </tr>
2333 </tbody>
2334 </table></div>
2335 </div>
2336 <p>Flags: Run Last</p>
2337 </div>
2338 </div>
2339 </div>
2340 <div class="footer">
2341 <hr>Generated by GTK-Doc V1.35.1</div>
2342 </body>
2343 </html>