| 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>UDisksLinuxPartition: 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="UDisksLinuxBlock.html" title="UDisksLinuxBlock"> |
| 10 |
<link rel="next" href="UDisksLinuxPartitionTable.html" title="UDisksLinuxPartitionTable"> |
| 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="#UDisksLinuxPartition.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> |
| 19 |
<a href="#UDisksLinuxPartition.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span> |
| 20 |
<a href="#UDisksLinuxPartition.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span> |
| 21 |
</td> |
| 22 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 23 |
<td><a accesskey="u" href="ref-daemon-block-devices.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> |
| 24 |
<td><a accesskey="p" href="UDisksLinuxBlock.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 25 |
<td><a accesskey="n" href="UDisksLinuxPartitionTable.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
| 26 |
</tr></table> |
| 27 |
<div class="refentry"> |
| 28 |
<a name="UDisksLinuxPartition"></a><div class="titlepage"></div> |
| 29 |
<div class="refnamediv"><table width="100%"><tr> |
| 30 |
<td valign="top"> |
| 31 |
<h2><span class="refentrytitle"><a name="UDisksLinuxPartition.top_of_page"></a>UDisksLinuxPartition</span></h2> |
| 32 |
<p>UDisksLinuxPartition — Linux implementation of <a class="link" href="UDisksPartition.html" title="UDisksPartition"><span class="type">UDisksPartition</span></a></p> |
| 33 |
</td> |
| 34 |
<td class="gallery_image" valign="top" align="right"></td> |
| 35 |
</tr></table></div> |
| 36 |
<div class="refsect1"> |
| 37 |
<a name="UDisksLinuxPartition.functions"></a><h2>Functions</h2> |
| 38 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 39 |
<colgroup> |
| 40 |
<col width="150px" class="functions_proto_type"> |
| 41 |
<col class="functions_proto_name"> |
| 42 |
</colgroup> |
| 43 |
<tbody> |
| 44 |
<tr> |
| 45 |
<td class="function_type"> |
| 46 |
<a class="link" href="UDisksPartition.html" title="UDisksPartition"><span class="returnvalue">UDisksPartition</span></a> * |
| 47 |
</td> |
| 48 |
<td class="function_name"> |
| 49 |
<a class="link" href="UDisksLinuxPartition.html#udisks-linux-partition-new" title="udisks_linux_partition_new ()">udisks_linux_partition_new</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="UDisksLinuxPartition.html#udisks-linux-partition-update" title="udisks_linux_partition_update ()">udisks_linux_partition_update</a> <span class="c_punctuation">()</span> |
| 58 |
</td> |
| 59 |
</tr> |
| 60 |
<tr> |
| 61 |
<td class="function_type"> |
| 62 |
<span class="returnvalue">gboolean</span> |
| 63 |
</td> |
| 64 |
<td class="function_name"> |
| 65 |
<a class="link" href="UDisksLinuxPartition.html#udisks-linux-partition-set-type-sync" title="udisks_linux_partition_set_type_sync ()">udisks_linux_partition_set_type_sync</a> <span class="c_punctuation">()</span> |
| 66 |
</td> |
| 67 |
</tr> |
| 68 |
</tbody> |
| 69 |
</table></div> |
| 70 |
</div> |
| 71 |
<div class="refsect1"> |
| 72 |
<a name="UDisksLinuxPartition.other"></a><h2>Types and Values</h2> |
| 73 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 74 |
<colgroup> |
| 75 |
<col width="150px" class="other_proto_type"> |
| 76 |
<col class="other_proto_name"> |
| 77 |
</colgroup> |
| 78 |
<tbody><tr> |
| 79 |
<td class="datatype_keyword"> </td> |
| 80 |
<td class="function_name"><a class="link" href="UDisksLinuxPartition.html#UDisksLinuxPartition-struct" title="UDisksLinuxPartition">UDisksLinuxPartition</a></td> |
| 81 |
</tr></tbody> |
| 82 |
</table></div> |
| 83 |
</div> |
| 84 |
<div class="refsect1"> |
| 85 |
<a name="UDisksLinuxPartition.object-hierarchy"></a><h2>Object Hierarchy</h2> |
| 86 |
<pre class="screen"> GObject |
| 87 |
<span class="lineart">╰──</span> GDBusInterfaceSkeleton |
| 88 |
<span class="lineart">╰──</span> <a class="link" href="UDisksPartition.html#UDisksPartitionSkeleton">UDisksPartitionSkeleton</a> |
| 89 |
<span class="lineart">╰──</span> UDisksLinuxPartition |
| 90 |
</pre> |
| 91 |
</div> |
| 92 |
<div class="refsect1"> |
| 93 |
<a name="UDisksLinuxPartition.implemented-interfaces"></a><h2>Implemented Interfaces</h2> |
| 94 |
<p> |
| 95 |
UDisksLinuxPartition implements |
| 96 |
GDBusInterface and <a class="link" href="UDisksPartition.html" title="UDisksPartition">UDisksPartition</a>.</p> |
| 97 |
</div> |
| 98 |
<div class="refsect1"> |
| 99 |
<a name="UDisksLinuxPartition.description"></a><h2>Description</h2> |
| 100 |
<p>This type provides an implementation of the <a class="link" href="UDisksPartition.html" title="UDisksPartition"><span class="type">UDisksPartition</span></a> |
| 101 |
interface on Linux.</p> |
| 102 |
</div> |
| 103 |
<div class="refsect1"> |
| 104 |
<a name="UDisksLinuxPartition.functions_details"></a><h2>Functions</h2> |
| 105 |
<div class="refsect2"> |
| 106 |
<a name="udisks-linux-partition-new"></a><h3>udisks_linux_partition_new ()</h3> |
| 107 |
<pre class="programlisting"><a class="link" href="UDisksPartition.html" title="UDisksPartition"><span class="returnvalue">UDisksPartition</span></a> * |
| 108 |
udisks_linux_partition_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> |
| 109 |
<p>Creates a new <a class="link" href="UDisksLinuxPartition.html" title="UDisksLinuxPartition"><span class="type">UDisksLinuxPartition</span></a> instance.</p> |
| 110 |
<div class="refsect3"> |
| 111 |
<a name="udisks-linux-partition-new.returns"></a><h4>Returns</h4> |
| 112 |
<p> A new <a class="link" href="UDisksLinuxPartition.html" title="UDisksLinuxPartition"><span class="type">UDisksLinuxPartition</span></a>. Free with <code class="function">g_object_unref()</code>.</p> |
| 113 |
</div> |
| 114 |
</div> |
| 115 |
<hr> |
| 116 |
<div class="refsect2"> |
| 117 |
<a name="udisks-linux-partition-update"></a><h3>udisks_linux_partition_update ()</h3> |
| 118 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 119 |
udisks_linux_partition_update (<em class="parameter"><code><a class="link" href="UDisksLinuxPartition.html" title="UDisksLinuxPartition"><span class="type">UDisksLinuxPartition</span></a> *partition</code></em>, |
| 120 |
<em class="parameter"><code><a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> *object</code></em>);</pre> |
| 121 |
<p>Updates the interface.</p> |
| 122 |
<div class="refsect3"> |
| 123 |
<a name="udisks-linux-partition-update.parameters"></a><h4>Parameters</h4> |
| 124 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 125 |
<colgroup> |
| 126 |
<col width="150px" class="parameters_name"> |
| 127 |
<col class="parameters_description"> |
| 128 |
<col width="200px" class="parameters_annotations"> |
| 129 |
</colgroup> |
| 130 |
<tbody> |
| 131 |
<tr> |
| 132 |
<td class="parameter_name"><p>partition</p></td> |
| 133 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxPartition.html" title="UDisksLinuxPartition"><span class="type">UDisksLinuxPartition</span></a>.</p></td> |
| 134 |
<td class="parameter_annotations"> </td> |
| 135 |
</tr> |
| 136 |
<tr> |
| 137 |
<td class="parameter_name"><p>object</p></td> |
| 138 |
<td class="parameter_description"><p>The enclosing <a class="link" href="UDisksLinuxBlockObject.html" title="UDisksLinuxBlockObject"><span class="type">UDisksLinuxBlockObject</span></a> instance.</p></td> |
| 139 |
<td class="parameter_annotations"> </td> |
| 140 |
</tr> |
| 141 |
</tbody> |
| 142 |
</table></div> |
| 143 |
</div> |
| 144 |
</div> |
| 145 |
<hr> |
| 146 |
<div class="refsect2"> |
| 147 |
<a name="udisks-linux-partition-set-type-sync"></a><h3>udisks_linux_partition_set_type_sync ()</h3> |
| 148 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 149 |
udisks_linux_partition_set_type_sync (<em class="parameter"><code><a class="link" href="UDisksLinuxPartition.html" title="UDisksLinuxPartition"><span class="type">UDisksLinuxPartition</span></a> *partition</code></em>, |
| 150 |
<em class="parameter"><code>const <span class="type">gchar</span> *type</code></em>, |
| 151 |
<em class="parameter"><code><span class="type">uid_t</span> caller_uid</code></em>, |
| 152 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 153 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 154 |
<p>Sets the partition type. The calling thread is blocked while the |
| 155 |
operation is pending.</p> |
| 156 |
<div class="refsect3"> |
| 157 |
<a name="udisks-linux-partition-set-type-sync.parameters"></a><h4>Parameters</h4> |
| 158 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 159 |
<colgroup> |
| 160 |
<col width="150px" class="parameters_name"> |
| 161 |
<col class="parameters_description"> |
| 162 |
<col width="200px" class="parameters_annotations"> |
| 163 |
</colgroup> |
| 164 |
<tbody> |
| 165 |
<tr> |
| 166 |
<td class="parameter_name"><p>partition</p></td> |
| 167 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxPartition.html" title="UDisksLinuxPartition"><span class="type">UDisksLinuxPartition</span></a>.</p></td> |
| 168 |
<td class="parameter_annotations"> </td> |
| 169 |
</tr> |
| 170 |
<tr> |
| 171 |
<td class="parameter_name"><p>type</p></td> |
| 172 |
<td class="parameter_description"><p>The partition type to set.</p></td> |
| 173 |
<td class="parameter_annotations"> </td> |
| 174 |
</tr> |
| 175 |
<tr> |
| 176 |
<td class="parameter_name"><p>caller_uid</p></td> |
| 177 |
<td class="parameter_description"><p>The uid of the process requesting this change or 0.</p></td> |
| 178 |
<td class="parameter_annotations"> </td> |
| 179 |
</tr> |
| 180 |
<tr> |
| 181 |
<td class="parameter_name"><p>cancellable</p></td> |
| 182 |
<td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>.</p></td> |
| 183 |
<td class="parameter_annotations"> </td> |
| 184 |
</tr> |
| 185 |
<tr> |
| 186 |
<td class="parameter_name"><p>error</p></td> |
| 187 |
<td class="parameter_description"><p>Return location for error or <code class="literal">NULL</code>.</p></td> |
| 188 |
<td class="parameter_annotations"> </td> |
| 189 |
</tr> |
| 190 |
</tbody> |
| 191 |
</table></div> |
| 192 |
</div> |
| 193 |
<div class="refsect3"> |
| 194 |
<a name="udisks-linux-partition-set-type-sync.returns"></a><h4>Returns</h4> |
| 195 |
<p> <code class="literal">TRUE</code> if the operation succeeded, <code class="literal">FALSE</code> if error is set.</p> |
| 196 |
</div> |
| 197 |
</div> |
| 198 |
</div> |
| 199 |
<div class="refsect1"> |
| 200 |
<a name="UDisksLinuxPartition.other_details"></a><h2>Types and Values</h2> |
| 201 |
<div class="refsect2"> |
| 202 |
<a name="UDisksLinuxPartition-struct"></a><h3>UDisksLinuxPartition</h3> |
| 203 |
<pre class="programlisting">typedef struct _UDisksLinuxPartition UDisksLinuxPartition;</pre> |
| 204 |
<p>The <a class="link" href="UDisksLinuxPartition.html" title="UDisksLinuxPartition"><span class="type">UDisksLinuxPartition</span></a> structure contains only private data and should |
| 205 |
only be accessed using the provided API.</p> |
| 206 |
</div> |
| 207 |
</div> |
| 208 |
</div> |
| 209 |
<div class="footer"> |
| 210 |
<hr>Generated by GTK-Doc V1.35.1</div> |
| 211 |
</body> |
| 212 |
</html> |