| 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>UDisksLinuxBlockObject: UDisks Reference Manual</title> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"> |
| 7 |
<link rel="home" href="index.html" title="UDisks Reference Manual"> |
| 8 |
<link rel="up" href="ref-daemon-block-devices.html" title="Block devices on Linux"> |
| 9 |
<link rel="prev" href="UDisksLinuxLoop.html" title="UDisksLinuxLoop"> |
| 10 |
<link rel="next" href="UDisksLinuxNVMeNamespace.html" title="UDisksLinuxNVMeNamespace"> |
| 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="#UDisksLinuxBlockObject.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> |
| 19 |
<a href="#UDisksLinuxBlockObject.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span> |
| 20 |
<a href="#UDisksLinuxBlockObject.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span> |
| 21 |
<a href="#UDisksLinuxBlockObject.properties" class="shortcut">Properties</a></span> |
| 22 |
</td> |
| 23 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 24 |
<td><a accesskey="u" href="ref-daemon-block-devices.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> |
| 25 |
<td><a accesskey="p" href="UDisksLinuxLoop.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 26 |
<td><a accesskey="n" href="UDisksLinuxNVMeNamespace.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
| 27 |
</tr></table> |
| 28 |
<div class="refentry"> |
| 29 |
<a name="UDisksLinuxBlockObject"></a><div class="titlepage"></div> |
| 30 |
<div class="refnamediv"><table width="100%"><tr> |
| 31 |
<td valign="top"> |
| 32 |
<h2><span class="refentrytitle"><a name="UDisksLinuxBlockObject.top_of_page"></a>UDisksLinuxBlockObject</span></h2> |
| 33 |
<p>UDisksLinuxBlockObject — Object representing a block device on Linux.</p> |
| 34 |
</td> |
| 35 |
<td class="gallery_image" valign="top" align="right"></td> |
| 36 |
</tr></table></div> |
| 37 |
<div class="refsect1"> |
| 38 |
<a name="UDisksLinuxBlockObject.functions"></a><h2>Functions</h2> |
| 39 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 40 |
<colgroup> |
| 41 |
<col width="150px" class="functions_proto_type"> |
| 42 |
<col class="functions_proto_name"> |
| 43 |
</colgroup> |
| 44 |
<tbody> |
| 45 |
<tr> |
| 46 |
<td class="function_type"> |
| 47 |
<a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="returnvalue">UDisksLinuxBlockObject</span></a> * |
| 48 |
</td> |
| 49 |
<td class="function_name"> |
| 50 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-new" title="udisks_linux_block_object_new ()">udisks_linux_block_object_new</a> <span class="c_punctuation">()</span> |
| 51 |
</td> |
| 52 |
</tr> |
| 53 |
<tr> |
| 54 |
<td class="function_type"> |
| 55 |
<span class="returnvalue">void</span> |
| 56 |
</td> |
| 57 |
<td class="function_name"> |
| 58 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-uevent" title="udisks_linux_block_object_uevent ()">udisks_linux_block_object_uevent</a> <span class="c_punctuation">()</span> |
| 59 |
</td> |
| 60 |
</tr> |
| 61 |
<tr> |
| 62 |
<td class="function_type"> |
| 63 |
<a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="returnvalue">UDisksDaemon</span></a> * |
| 64 |
</td> |
| 65 |
<td class="function_name"> |
| 66 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-get-daemon" title="udisks_linux_block_object_get_daemon ()">udisks_linux_block_object_get_daemon</a> <span class="c_punctuation">()</span> |
| 67 |
</td> |
| 68 |
</tr> |
| 69 |
<tr> |
| 70 |
<td class="function_type"> |
| 71 |
<a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="returnvalue">UDisksLinuxDevice</span></a> * |
| 72 |
</td> |
| 73 |
<td class="function_name"> |
| 74 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-get-device" title="udisks_linux_block_object_get_device ()">udisks_linux_block_object_get_device</a> <span class="c_punctuation">()</span> |
| 75 |
</td> |
| 76 |
</tr> |
| 77 |
<tr> |
| 78 |
<td class="function_type"> |
| 79 |
<span class="returnvalue">gchar</span> * |
| 80 |
</td> |
| 81 |
<td class="function_name"> |
| 82 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-get-device-file" title="udisks_linux_block_object_get_device_file ()">udisks_linux_block_object_get_device_file</a> <span class="c_punctuation">()</span> |
| 83 |
</td> |
| 84 |
</tr> |
| 85 |
<tr> |
| 86 |
<td class="function_type"> |
| 87 |
<span class="returnvalue">dev_t</span> |
| 88 |
</td> |
| 89 |
<td class="function_name"> |
| 90 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-get-device-number" title="udisks_linux_block_object_get_device_number ()">udisks_linux_block_object_get_device_number</a> <span class="c_punctuation">()</span> |
| 91 |
</td> |
| 92 |
</tr> |
| 93 |
<tr> |
| 94 |
<td class="function_type"> |
| 95 |
<span class="returnvalue">void</span> |
| 96 |
</td> |
| 97 |
<td class="function_name"> |
| 98 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-trigger-uevent" title="udisks_linux_block_object_trigger_uevent ()">udisks_linux_block_object_trigger_uevent</a> <span class="c_punctuation">()</span> |
| 99 |
</td> |
| 100 |
</tr> |
| 101 |
<tr> |
| 102 |
<td class="function_type"> |
| 103 |
<span class="returnvalue">gboolean</span> |
| 104 |
</td> |
| 105 |
<td class="function_name"> |
| 106 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-trigger-uevent-sync" title="udisks_linux_block_object_trigger_uevent_sync ()">udisks_linux_block_object_trigger_uevent_sync</a> <span class="c_punctuation">()</span> |
| 107 |
</td> |
| 108 |
</tr> |
| 109 |
<tr> |
| 110 |
<td class="function_type"> |
| 111 |
<span class="returnvalue">gboolean</span> |
| 112 |
</td> |
| 113 |
<td class="function_name"> |
| 114 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-reread-partition-table" title="udisks_linux_block_object_reread_partition_table ()">udisks_linux_block_object_reread_partition_table</a> <span class="c_punctuation">()</span> |
| 115 |
</td> |
| 116 |
</tr> |
| 117 |
<tr> |
| 118 |
<td class="function_type"> |
| 119 |
<span class="returnvalue">gboolean</span> |
| 120 |
</td> |
| 121 |
<td class="function_name"> |
| 122 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-contains-filesystem" title="udisks_linux_block_object_contains_filesystem ()">udisks_linux_block_object_contains_filesystem</a> <span class="c_punctuation">()</span> |
| 123 |
</td> |
| 124 |
</tr> |
| 125 |
<tr> |
| 126 |
<td class="function_type"> |
| 127 |
<span class="returnvalue">void</span> |
| 128 |
</td> |
| 129 |
<td class="function_name"> |
| 130 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-lock-for-cleanup" title="udisks_linux_block_object_lock_for_cleanup ()">udisks_linux_block_object_lock_for_cleanup</a> <span class="c_punctuation">()</span> |
| 131 |
</td> |
| 132 |
</tr> |
| 133 |
<tr> |
| 134 |
<td class="function_type"> |
| 135 |
<span class="returnvalue">gboolean</span> |
| 136 |
</td> |
| 137 |
<td class="function_name"> |
| 138 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-try-lock-for-cleanup" title="udisks_linux_block_object_try_lock_for_cleanup ()">udisks_linux_block_object_try_lock_for_cleanup</a> <span class="c_punctuation">()</span> |
| 139 |
</td> |
| 140 |
</tr> |
| 141 |
<tr> |
| 142 |
<td class="function_type"> |
| 143 |
<span class="returnvalue">void</span> |
| 144 |
</td> |
| 145 |
<td class="function_name"> |
| 146 |
<a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-release-cleanup-lock" title="udisks_linux_block_object_release_cleanup_lock ()">udisks_linux_block_object_release_cleanup_lock</a> <span class="c_punctuation">()</span> |
| 147 |
</td> |
| 148 |
</tr> |
| 149 |
</tbody> |
| 150 |
</table></div> |
| 151 |
</div> |
| 152 |
<div class="refsect1"> |
| 153 |
<a name="UDisksLinuxBlockObject.properties"></a><h2>Properties</h2> |
| 154 |
<div class="informaltable"><table class="informaltable" border="0"> |
| 155 |
<colgroup> |
| 156 |
<col width="150px" class="properties_type"> |
| 157 |
<col width="300px" class="properties_name"> |
| 158 |
<col width="200px" class="properties_flags"> |
| 159 |
</colgroup> |
| 160 |
<tbody> |
| 161 |
<tr> |
| 162 |
<td class="property_type"> |
| 163 |
<a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *</td> |
| 164 |
<td class="property_name"><a class="link" href="UDisksLinuxBlockObject.html#UDisksLinuxBlockObject--daemon" title="The “daemon” property">daemon</a></td> |
| 165 |
<td class="property_flags">Read / Write / Construct Only</td> |
| 166 |
</tr> |
| 167 |
<tr> |
| 168 |
<td class="property_type"> |
| 169 |
<a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *</td> |
| 170 |
<td class="property_name"><a class="link" href="UDisksLinuxBlockObject.html#UDisksLinuxBlockObject--device" title="The “device” property">device</a></td> |
| 171 |
<td class="property_flags">Read / Write / Construct Only</td> |
| 172 |
</tr> |
| 173 |
</tbody> |
| 174 |
</table></div> |
| 175 |
</div> |
| 176 |
<div class="refsect1"> |
| 177 |
<a name="UDisksLinuxBlockObject.other"></a><h2>Types and Values</h2> |
| 178 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 179 |
<colgroup> |
| 180 |
<col width="150px" class="other_proto_type"> |
| 181 |
<col class="other_proto_name"> |
| 182 |
</colgroup> |
| 183 |
<tbody><tr> |
| 184 |
<td class="datatype_keyword"> </td> |
| 185 |
<td class="function_name"><a class="link" href="UDisksLinuxBlockObject.html#UDisksLinuxBlockObject-struct" title="UDisksLinuxBlockObject">UDisksLinuxBlockObject</a></td> |
| 186 |
</tr></tbody> |
| 187 |
</table></div> |
| 188 |
</div> |
| 189 |
<div class="refsect1"> |
| 190 |
<a name="UDisksLinuxBlockObject.object-hierarchy"></a><h2>Object Hierarchy</h2> |
| 191 |
<pre class="screen"> GObject |
| 192 |
<span class="lineart">╰──</span> GDBusObjectSkeleton |
| 193 |
<span class="lineart">╰──</span> <a class="link" href="UDisksObject.html#UDisksObjectSkeleton">UDisksObjectSkeleton</a> |
| 194 |
<span class="lineart">╰──</span> UDisksLinuxBlockObject |
| 195 |
</pre> |
| 196 |
</div> |
| 197 |
<div class="refsect1"> |
| 198 |
<a name="UDisksLinuxBlockObject.implemented-interfaces"></a><h2>Implemented Interfaces</h2> |
| 199 |
<p> |
| 200 |
UDisksLinuxBlockObject implements |
| 201 |
GDBusObject and <a class="link" href="UDisksObject.html" title="UDisksObject">UDisksObject</a>.</p> |
| 202 |
</div> |
| 203 |
<div class="refsect1"> |
| 204 |
<a name="UDisksLinuxBlockObject.description"></a><h2>Description</h2> |
| 205 |
<p>Object corresponding to a block device on Linux.</p> |
| 206 |
</div> |
| 207 |
<div class="refsect1"> |
| 208 |
<a name="UDisksLinuxBlockObject.functions_details"></a><h2>Functions</h2> |
| 209 |
<div class="refsect2"> |
| 210 |
<a name="udisks-linux-block-object-new"></a><h3>udisks_linux_block_object_new ()</h3> |
| 211 |
<pre class="programlisting"><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="returnvalue">UDisksLinuxBlockObject</span></a> * |
| 212 |
udisks_linux_block_object_new (<em class="parameter"><code><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *daemon</code></em>, |
| 213 |
<em class="parameter"><code><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *device</code></em>);</pre> |
| 214 |
<p>Create a new block object.</p> |
| 215 |
<div class="refsect3"> |
| 216 |
<a name="udisks-linux-block-object-new.parameters"></a><h4>Parameters</h4> |
| 217 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 218 |
<colgroup> |
| 219 |
<col width="150px" class="parameters_name"> |
| 220 |
<col class="parameters_description"> |
| 221 |
<col width="200px" class="parameters_annotations"> |
| 222 |
</colgroup> |
| 223 |
<tbody> |
| 224 |
<tr> |
| 225 |
<td class="parameter_name"><p>daemon</p></td> |
| 226 |
<td class="parameter_description"><p>A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>.</p></td> |
| 227 |
<td class="parameter_annotations"> </td> |
| 228 |
</tr> |
| 229 |
<tr> |
| 230 |
<td class="parameter_name"><p>device</p></td> |
| 231 |
<td class="parameter_description"><p>The <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> for the device.</p></td> |
| 232 |
<td class="parameter_annotations"> </td> |
| 233 |
</tr> |
| 234 |
</tbody> |
| 235 |
</table></div> |
| 236 |
</div> |
| 237 |
<div class="refsect3"> |
| 238 |
<a name="udisks-linux-block-object-new.returns"></a><h4>Returns</h4> |
| 239 |
<p> A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> object. Free with <code class="function">g_object_unref()</code>.</p> |
| 240 |
</div> |
| 241 |
</div> |
| 242 |
<hr> |
| 243 |
<div class="refsect2"> |
| 244 |
<a name="udisks-linux-block-object-uevent"></a><h3>udisks_linux_block_object_uevent ()</h3> |
| 245 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 246 |
udisks_linux_block_object_uevent (<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>, |
| 247 |
<em class="parameter"><code>const <span class="type">gchar</span> *action</code></em>, |
| 248 |
<em class="parameter"><code><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *device</code></em>);</pre> |
| 249 |
<p>Updates all information on interfaces on <em class="parameter"><code>object</code></em> |
| 250 |
as a result of incoming uevent processing.</p> |
| 251 |
<div class="refsect3"> |
| 252 |
<a name="udisks-linux-block-object-uevent.parameters"></a><h4>Parameters</h4> |
| 253 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 254 |
<colgroup> |
| 255 |
<col width="150px" class="parameters_name"> |
| 256 |
<col class="parameters_description"> |
| 257 |
<col width="200px" class="parameters_annotations"> |
| 258 |
</colgroup> |
| 259 |
<tbody> |
| 260 |
<tr> |
| 261 |
<td class="parameter_name"><p>object</p></td> |
| 262 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 263 |
<td class="parameter_annotations"> </td> |
| 264 |
</tr> |
| 265 |
<tr> |
| 266 |
<td class="parameter_name"><p>action</p></td> |
| 267 |
<td class="parameter_description"><p>Uevent action or <code class="literal">NULL</code></p></td> |
| 268 |
<td class="parameter_annotations"> </td> |
| 269 |
</tr> |
| 270 |
<tr> |
| 271 |
<td class="parameter_name"><p>device</p></td> |
| 272 |
<td class="parameter_description"><p>A new <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> device object or <code class="literal">NULL</code> if the device hasn't changed.</p></td> |
| 273 |
<td class="parameter_annotations"> </td> |
| 274 |
</tr> |
| 275 |
</tbody> |
| 276 |
</table></div> |
| 277 |
</div> |
| 278 |
</div> |
| 279 |
<hr> |
| 280 |
<div class="refsect2"> |
| 281 |
<a name="udisks-linux-block-object-get-daemon"></a><h3>udisks_linux_block_object_get_daemon ()</h3> |
| 282 |
<pre class="programlisting"><a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="returnvalue">UDisksDaemon</span></a> * |
| 283 |
udisks_linux_block_object_get_daemon (<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>);</pre> |
| 284 |
<p>Gets the daemon used by <em class="parameter"><code>object</code></em> |
| 285 |
.</p> |
| 286 |
<div class="refsect3"> |
| 287 |
<a name="udisks-linux-block-object-get-daemon.parameters"></a><h4>Parameters</h4> |
| 288 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 289 |
<colgroup> |
| 290 |
<col width="150px" class="parameters_name"> |
| 291 |
<col class="parameters_description"> |
| 292 |
<col width="200px" class="parameters_annotations"> |
| 293 |
</colgroup> |
| 294 |
<tbody><tr> |
| 295 |
<td class="parameter_name"><p>object</p></td> |
| 296 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 297 |
<td class="parameter_annotations"> </td> |
| 298 |
</tr></tbody> |
| 299 |
</table></div> |
| 300 |
</div> |
| 301 |
<div class="refsect3"> |
| 302 |
<a name="udisks-linux-block-object-get-daemon.returns"></a><h4>Returns</h4> |
| 303 |
<p> A <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a>. Do not free, the object is owned by <em class="parameter"><code>object</code></em> |
| 304 |
.</p> |
| 305 |
</div> |
| 306 |
</div> |
| 307 |
<hr> |
| 308 |
<div class="refsect2"> |
| 309 |
<a name="udisks-linux-block-object-get-device"></a><h3>udisks_linux_block_object_get_device ()</h3> |
| 310 |
<pre class="programlisting"><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="returnvalue">UDisksLinuxDevice</span></a> * |
| 311 |
udisks_linux_block_object_get_device (<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>);</pre> |
| 312 |
<p>Gets the current <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> for <em class="parameter"><code>object</code></em> |
| 313 |
. Connect to |
| 314 |
<span class="type">“notify”</span> to track changes to the <a class="link" href="UDisksLinuxBlockObject.html#UDisksLinuxBlockObject--device" title="The “device” property"><span class="type">“device”</span></a> |
| 315 |
property.</p> |
| 316 |
<div class="refsect3"> |
| 317 |
<a name="udisks-linux-block-object-get-device.parameters"></a><h4>Parameters</h4> |
| 318 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 319 |
<colgroup> |
| 320 |
<col width="150px" class="parameters_name"> |
| 321 |
<col class="parameters_description"> |
| 322 |
<col width="200px" class="parameters_annotations"> |
| 323 |
</colgroup> |
| 324 |
<tbody><tr> |
| 325 |
<td class="parameter_name"><p>object</p></td> |
| 326 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 327 |
<td class="parameter_annotations"> </td> |
| 328 |
</tr></tbody> |
| 329 |
</table></div> |
| 330 |
</div> |
| 331 |
<div class="refsect3"> |
| 332 |
<a name="udisks-linux-block-object-get-device.returns"></a><h4>Returns</h4> |
| 333 |
<p> A <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a>. Free with <code class="function">g_object_unref()</code>.</p> |
| 334 |
</div> |
| 335 |
</div> |
| 336 |
<hr> |
| 337 |
<div class="refsect2"> |
| 338 |
<a name="udisks-linux-block-object-get-device-file"></a><h3>udisks_linux_block_object_get_device_file ()</h3> |
| 339 |
<pre class="programlisting"><span class="returnvalue">gchar</span> * |
| 340 |
udisks_linux_block_object_get_device_file |
| 341 |
(<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>);</pre> |
| 342 |
<p>Gets the device path for this object (eg. /dev/sda1).</p> |
| 343 |
<div class="refsect3"> |
| 344 |
<a name="udisks-linux-block-object-get-device-file.parameters"></a><h4>Parameters</h4> |
| 345 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 346 |
<colgroup> |
| 347 |
<col width="150px" class="parameters_name"> |
| 348 |
<col class="parameters_description"> |
| 349 |
<col width="200px" class="parameters_annotations"> |
| 350 |
</colgroup> |
| 351 |
<tbody><tr> |
| 352 |
<td class="parameter_name"><p>object</p></td> |
| 353 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 354 |
<td class="parameter_annotations"> </td> |
| 355 |
</tr></tbody> |
| 356 |
</table></div> |
| 357 |
</div> |
| 358 |
<div class="refsect3"> |
| 359 |
<a name="udisks-linux-block-object-get-device-file.returns"></a><h4>Returns</h4> |
| 360 |
<p> A device path. Free with <code class="function">g_free()</code>.</p> |
| 361 |
</div> |
| 362 |
</div> |
| 363 |
<hr> |
| 364 |
<div class="refsect2"> |
| 365 |
<a name="udisks-linux-block-object-get-device-number"></a><h3>udisks_linux_block_object_get_device_number ()</h3> |
| 366 |
<pre class="programlisting"><span class="returnvalue">dev_t</span> |
| 367 |
udisks_linux_block_object_get_device_number |
| 368 |
(<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>);</pre> |
| 369 |
<p>Gets the device number for this object.</p> |
| 370 |
<div class="refsect3"> |
| 371 |
<a name="udisks-linux-block-object-get-device-number.parameters"></a><h4>Parameters</h4> |
| 372 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 373 |
<colgroup> |
| 374 |
<col width="150px" class="parameters_name"> |
| 375 |
<col class="parameters_description"> |
| 376 |
<col width="200px" class="parameters_annotations"> |
| 377 |
</colgroup> |
| 378 |
<tbody><tr> |
| 379 |
<td class="parameter_name"><p>object</p></td> |
| 380 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 381 |
<td class="parameter_annotations"> </td> |
| 382 |
</tr></tbody> |
| 383 |
</table></div> |
| 384 |
</div> |
| 385 |
<div class="refsect3"> |
| 386 |
<a name="udisks-linux-block-object-get-device-number.returns"></a><h4>Returns</h4> |
| 387 |
<p> A dev_t device number or zero in case of an error.</p> |
| 388 |
</div> |
| 389 |
</div> |
| 390 |
<hr> |
| 391 |
<div class="refsect2"> |
| 392 |
<a name="udisks-linux-block-object-trigger-uevent"></a><h3>udisks_linux_block_object_trigger_uevent ()</h3> |
| 393 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 394 |
udisks_linux_block_object_trigger_uevent |
| 395 |
(<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>);</pre> |
| 396 |
<p>Triggers a 'change' uevent in the kernel.</p> |
| 397 |
<p>Refer to <a class="link" href="udisks2-Utilities.html#udisks-daemon-util-trigger-uevent" title="udisks_daemon_util_trigger_uevent ()"><code class="function">udisks_daemon_util_trigger_uevent()</code></a> for detailed description.</p> |
| 398 |
<div class="refsect3"> |
| 399 |
<a name="udisks-linux-block-object-trigger-uevent.parameters"></a><h4>Parameters</h4> |
| 400 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 401 |
<colgroup> |
| 402 |
<col width="150px" class="parameters_name"> |
| 403 |
<col class="parameters_description"> |
| 404 |
<col width="200px" class="parameters_annotations"> |
| 405 |
</colgroup> |
| 406 |
<tbody><tr> |
| 407 |
<td class="parameter_name"><p>object</p></td> |
| 408 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 409 |
<td class="parameter_annotations"> </td> |
| 410 |
</tr></tbody> |
| 411 |
</table></div> |
| 412 |
</div> |
| 413 |
</div> |
| 414 |
<hr> |
| 415 |
<div class="refsect2"> |
| 416 |
<a name="udisks-linux-block-object-trigger-uevent-sync"></a><h3>udisks_linux_block_object_trigger_uevent_sync ()</h3> |
| 417 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 418 |
udisks_linux_block_object_trigger_uevent_sync |
| 419 |
(<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>, |
| 420 |
<em class="parameter"><code><span class="type">guint</span> timeout_seconds</code></em>);</pre> |
| 421 |
<p>Triggers a 'change' uevent in the kernel and waits until it's received and |
| 422 |
processed through the uevent queue.</p> |
| 423 |
<p>This is a convenient wrapper around <a class="link" href="udisks2-Utilities.html#udisks-daemon-util-trigger-uevent-sync" title="udisks_daemon_util_trigger_uevent_sync ()"><code class="function">udisks_daemon_util_trigger_uevent_sync()</code></a>. |
| 424 |
Refer to this function for detailed documentation.</p> |
| 425 |
<div class="refsect3"> |
| 426 |
<a name="udisks-linux-block-object-trigger-uevent-sync.parameters"></a><h4>Parameters</h4> |
| 427 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 428 |
<colgroup> |
| 429 |
<col width="150px" class="parameters_name"> |
| 430 |
<col class="parameters_description"> |
| 431 |
<col width="200px" class="parameters_annotations"> |
| 432 |
</colgroup> |
| 433 |
<tbody> |
| 434 |
<tr> |
| 435 |
<td class="parameter_name"><p>object</p></td> |
| 436 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 437 |
<td class="parameter_annotations"> </td> |
| 438 |
</tr> |
| 439 |
<tr> |
| 440 |
<td class="parameter_name"><p>timeout_seconds</p></td> |
| 441 |
<td class="parameter_description"><p>Maximum time to wait for the uevent (in seconds).</p></td> |
| 442 |
<td class="parameter_annotations"> </td> |
| 443 |
</tr> |
| 444 |
</tbody> |
| 445 |
</table></div> |
| 446 |
</div> |
| 447 |
<div class="refsect3"> |
| 448 |
<a name="udisks-linux-block-object-trigger-uevent-sync.returns"></a><h4>Returns</h4> |
| 449 |
<p> <code class="literal">TRUE</code> if the uevent has been successfully received, <code class="literal">FALSE</code> otherwise |
| 450 |
or when the kernel version is too old.</p> |
| 451 |
</div> |
| 452 |
</div> |
| 453 |
<hr> |
| 454 |
<div class="refsect2"> |
| 455 |
<a name="udisks-linux-block-object-reread-partition-table"></a><h3>udisks_linux_block_object_reread_partition_table ()</h3> |
| 456 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 457 |
udisks_linux_block_object_reread_partition_table |
| 458 |
(<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>, |
| 459 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 460 |
<p>Requests the kernel to re-read the partition table for <em class="parameter"><code>object</code></em> |
| 461 |
.</p> |
| 462 |
<p>The events from any change this may cause will bubble up from the |
| 463 |
kernel through the udev stack and will eventually be received by |
| 464 |
the udisks daemon process itself. This method does not wait for the |
| 465 |
event to be received.</p> |
| 466 |
<div class="refsect3"> |
| 467 |
<a name="udisks-linux-block-object-reread-partition-table.parameters"></a><h4>Parameters</h4> |
| 468 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 469 |
<colgroup> |
| 470 |
<col width="150px" class="parameters_name"> |
| 471 |
<col class="parameters_description"> |
| 472 |
<col width="200px" class="parameters_annotations"> |
| 473 |
</colgroup> |
| 474 |
<tbody> |
| 475 |
<tr> |
| 476 |
<td class="parameter_name"><p>object</p></td> |
| 477 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 478 |
<td class="parameter_annotations"> </td> |
| 479 |
</tr> |
| 480 |
<tr> |
| 481 |
<td class="parameter_name"><p>error</p></td> |
| 482 |
<td class="parameter_description"><p>Return location for error.</p></td> |
| 483 |
<td class="parameter_annotations"> </td> |
| 484 |
</tr> |
| 485 |
</tbody> |
| 486 |
</table></div> |
| 487 |
</div> |
| 488 |
<div class="refsect3"> |
| 489 |
<a name="udisks-linux-block-object-reread-partition-table.returns"></a><h4>Returns</h4> |
| 490 |
<p> <code class="literal">TRUE</code> if the partition reread request was issued successfully |
| 491 |
or <code class="literal">FALSE</code> when error occurred with <em class="parameter"><code>error</code></em> |
| 492 |
set.</p> |
| 493 |
</div> |
| 494 |
</div> |
| 495 |
<hr> |
| 496 |
<div class="refsect2"> |
| 497 |
<a name="udisks-linux-block-object-contains-filesystem"></a><h3>udisks_linux_block_object_contains_filesystem ()</h3> |
| 498 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 499 |
udisks_linux_block_object_contains_filesystem |
| 500 |
(<em class="parameter"><code><a class="link" href="UDisksObject.html" title="UDisksObject"><span class="type">UDisksObject</span></a> *object</code></em>);</pre> |
| 501 |
<p>Check whether filesystem has been detected on the block device.</p> |
| 502 |
<div class="refsect3"> |
| 503 |
<a name="udisks-linux-block-object-contains-filesystem.parameters"></a><h4>Parameters</h4> |
| 504 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 505 |
<colgroup> |
| 506 |
<col width="150px" class="parameters_name"> |
| 507 |
<col class="parameters_description"> |
| 508 |
<col width="200px" class="parameters_annotations"> |
| 509 |
</colgroup> |
| 510 |
<tbody><tr> |
| 511 |
<td class="parameter_name"><p>object</p></td> |
| 512 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 513 |
<td class="parameter_annotations"> </td> |
| 514 |
</tr></tbody> |
| 515 |
</table></div> |
| 516 |
</div> |
| 517 |
<div class="refsect3"> |
| 518 |
<a name="udisks-linux-block-object-contains-filesystem.returns"></a><h4>Returns</h4> |
| 519 |
<p> <code class="literal">TRUE</code> if the block device contains filesystem, <code class="literal">FALSE</code> otherwise.</p> |
| 520 |
</div> |
| 521 |
</div> |
| 522 |
<hr> |
| 523 |
<div class="refsect2"> |
| 524 |
<a name="udisks-linux-block-object-lock-for-cleanup"></a><h3>udisks_linux_block_object_lock_for_cleanup ()</h3> |
| 525 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 526 |
udisks_linux_block_object_lock_for_cleanup |
| 527 |
(<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>);</pre> |
| 528 |
<p>Acquires the "cleanup" lock of the block device <em class="parameter"><code>object</code></em> |
| 529 |
. Typically used to signal |
| 530 |
the cleanup thread that the block device is busy.</p> |
| 531 |
<div class="refsect3"> |
| 532 |
<a name="udisks-linux-block-object-lock-for-cleanup.parameters"></a><h4>Parameters</h4> |
| 533 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 534 |
<colgroup> |
| 535 |
<col width="150px" class="parameters_name"> |
| 536 |
<col class="parameters_description"> |
| 537 |
<col width="200px" class="parameters_annotations"> |
| 538 |
</colgroup> |
| 539 |
<tbody><tr> |
| 540 |
<td class="parameter_name"><p>object</p></td> |
| 541 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 542 |
<td class="parameter_annotations"> </td> |
| 543 |
</tr></tbody> |
| 544 |
</table></div> |
| 545 |
</div> |
| 546 |
</div> |
| 547 |
<hr> |
| 548 |
<div class="refsect2"> |
| 549 |
<a name="udisks-linux-block-object-try-lock-for-cleanup"></a><h3>udisks_linux_block_object_try_lock_for_cleanup ()</h3> |
| 550 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 551 |
udisks_linux_block_object_try_lock_for_cleanup |
| 552 |
(<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>);</pre> |
| 553 |
<p>Attempts to lock the block device <em class="parameter"><code>object</code></em> |
| 554 |
for cleanup. Typically used by the cleanup |
| 555 |
thread to check whether the block device is busy and cleanup can be performed.</p> |
| 556 |
<div class="refsect3"> |
| 557 |
<a name="udisks-linux-block-object-try-lock-for-cleanup.parameters"></a><h4>Parameters</h4> |
| 558 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 559 |
<colgroup> |
| 560 |
<col width="150px" class="parameters_name"> |
| 561 |
<col class="parameters_description"> |
| 562 |
<col width="200px" class="parameters_annotations"> |
| 563 |
</colgroup> |
| 564 |
<tbody><tr> |
| 565 |
<td class="parameter_name"><p>object</p></td> |
| 566 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 567 |
<td class="parameter_annotations"> </td> |
| 568 |
</tr></tbody> |
| 569 |
</table></div> |
| 570 |
</div> |
| 571 |
<div class="refsect3"> |
| 572 |
<a name="udisks-linux-block-object-try-lock-for-cleanup.returns"></a><h4>Returns</h4> |
| 573 |
<p> <code class="literal">TRUE</code> if lock has been acquired, <code class="literal">FALSE</code> when the block device is busy.</p> |
| 574 |
</div> |
| 575 |
</div> |
| 576 |
<hr> |
| 577 |
<div class="refsect2"> |
| 578 |
<a name="udisks-linux-block-object-release-cleanup-lock"></a><h3>udisks_linux_block_object_release_cleanup_lock ()</h3> |
| 579 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 580 |
udisks_linux_block_object_release_cleanup_lock |
| 581 |
(<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>);</pre> |
| 582 |
<p>Releases a lock previously acquired by <a class="link" href="UDisksLinuxBlockObject.html#udisks-linux-block-object-lock-for-cleanup" title="udisks_linux_block_object_lock_for_cleanup ()"><code class="function">udisks_linux_block_object_lock_for_cleanup()</code></a>.</p> |
| 583 |
<div class="refsect3"> |
| 584 |
<a name="udisks-linux-block-object-release-cleanup-lock.parameters"></a><h4>Parameters</h4> |
| 585 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 586 |
<colgroup> |
| 587 |
<col width="150px" class="parameters_name"> |
| 588 |
<col class="parameters_description"> |
| 589 |
<col width="200px" class="parameters_annotations"> |
| 590 |
</colgroup> |
| 591 |
<tbody><tr> |
| 592 |
<td class="parameter_name"><p>object</p></td> |
| 593 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a>.</p></td> |
| 594 |
<td class="parameter_annotations"> </td> |
| 595 |
</tr></tbody> |
| 596 |
</table></div> |
| 597 |
</div> |
| 598 |
</div> |
| 599 |
</div> |
| 600 |
<div class="refsect1"> |
| 601 |
<a name="UDisksLinuxBlockObject.other_details"></a><h2>Types and Values</h2> |
| 602 |
<div class="refsect2"> |
| 603 |
<a name="UDisksLinuxBlockObject-struct"></a><h3>UDisksLinuxBlockObject</h3> |
| 604 |
<pre class="programlisting">typedef struct _UDisksLinuxBlockObject UDisksLinuxBlockObject;</pre> |
| 605 |
<p>The <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> structure contains only private data and |
| 606 |
should only be accessed using the provided API.</p> |
| 607 |
</div> |
| 608 |
</div> |
| 609 |
<div class="refsect1"> |
| 610 |
<a name="UDisksLinuxBlockObject.property-details"></a><h2>Property Details</h2> |
| 611 |
<div class="refsect2"> |
| 612 |
<a name="UDisksLinuxBlockObject--daemon"></a><h3>The <code class="literal">“daemon”</code> property</h3> |
| 613 |
<pre class="programlisting"> “daemon” <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> *</pre> |
| 614 |
<p>The <a class="link" href="UDisksDaemon.html" title="UDisksDaemon"><span class="type">UDisksDaemon</span></a> the object is for.</p> |
| 615 |
<p>Owner: UDisksLinuxBlockObject</p> |
| 616 |
<p>Flags: Read / Write / Construct Only</p> |
| 617 |
</div> |
| 618 |
<hr> |
| 619 |
<div class="refsect2"> |
| 620 |
<a name="UDisksLinuxBlockObject--device"></a><h3>The <code class="literal">“device”</code> property</h3> |
| 621 |
<pre class="programlisting"> “device” <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *</pre> |
| 622 |
<p>The <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> for the object. Connect to the <span class="type">“notify”</span> |
| 623 |
signal to get notified whenever this is updated.</p> |
| 624 |
<p>Owner: UDisksLinuxBlockObject</p> |
| 625 |
<p>Flags: Read / Write / Construct Only</p> |
| 626 |
</div> |
| 627 |
</div> |
| 628 |
</div> |
| 629 |
<div class="footer"> |
| 630 |
<hr>Generated by GTK-Doc V1.35.1</div> |
| 631 |
</body> |
| 632 |
</html> |