| 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>ostree-deployment: OSTree API references</title> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"> |
| 7 |
<link rel="home" href="index.html" title="OSTree API references"> |
| 8 |
<link rel="up" href="reference.html" title="API Reference"> |
| 9 |
<link rel="prev" href="ostree-ostree-content-writer.html" title="ostree-content-writer"> |
| 10 |
<link rel="next" href="ostree-ostree-diff.html" title="ostree-diff"> |
| 11 |
<meta name="generator" content="GTK-Doc V1.34.0 (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="#ostree-ostree-deployment.description" class="shortcut">Description</a></span> |
| 19 |
</td> |
| 20 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 21 |
<td><a accesskey="u" href="reference.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> |
| 22 |
<td><a accesskey="p" href="ostree-ostree-content-writer.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 23 |
<td><a accesskey="n" href="ostree-ostree-diff.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
| 24 |
</tr></table> |
| 25 |
<div class="refentry"> |
| 26 |
<a name="ostree-ostree-deployment"></a><div class="titlepage"></div> |
| 27 |
<div class="refnamediv"><table width="100%"><tr> |
| 28 |
<td valign="top"> |
| 29 |
<h2><span class="refentrytitle"><a name="ostree-ostree-deployment.top_of_page"></a>ostree-deployment</span></h2> |
| 30 |
<p>ostree-deployment</p> |
| 31 |
</td> |
| 32 |
<td class="gallery_image" valign="top" align="right"></td> |
| 33 |
</tr></table></div> |
| 34 |
<div class="refsect1"> |
| 35 |
<a name="ostree-ostree-deployment.functions"></a><h2>Functions</h2> |
| 36 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 37 |
<colgroup> |
| 38 |
<col width="150px" class="functions_proto_type"> |
| 39 |
<col class="functions_proto_name"> |
| 40 |
</colgroup> |
| 41 |
<tbody> |
| 42 |
<tr> |
| 43 |
<td class="function_type"> |
| 44 |
<span class="returnvalue">guint</span> |
| 45 |
</td> |
| 46 |
<td class="function_name"> |
| 47 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-hash" title="ostree_deployment_hash ()">ostree_deployment_hash</a> <span class="c_punctuation">()</span> |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
<tr> |
| 51 |
<td class="function_type"> |
| 52 |
<span class="returnvalue">gboolean</span> |
| 53 |
</td> |
| 54 |
<td class="function_name"> |
| 55 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-equal" title="ostree_deployment_equal ()">ostree_deployment_equal</a> <span class="c_punctuation">()</span> |
| 56 |
</td> |
| 57 |
</tr> |
| 58 |
<tr> |
| 59 |
<td class="function_type"> |
| 60 |
<a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 61 |
</td> |
| 62 |
<td class="function_name"> |
| 63 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-new" title="ostree_deployment_new ()">ostree_deployment_new</a> <span class="c_punctuation">()</span> |
| 64 |
</td> |
| 65 |
</tr> |
| 66 |
<tr> |
| 67 |
<td class="function_type"> |
| 68 |
<span class="returnvalue">int</span> |
| 69 |
</td> |
| 70 |
<td class="function_name"> |
| 71 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-get-index" title="ostree_deployment_get_index ()">ostree_deployment_get_index</a> <span class="c_punctuation">()</span> |
| 72 |
</td> |
| 73 |
</tr> |
| 74 |
<tr> |
| 75 |
<td class="function_type">const <span class="returnvalue">char</span> * |
| 76 |
</td> |
| 77 |
<td class="function_name"> |
| 78 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-get-osname" title="ostree_deployment_get_osname ()">ostree_deployment_get_osname</a> <span class="c_punctuation">()</span> |
| 79 |
</td> |
| 80 |
</tr> |
| 81 |
<tr> |
| 82 |
<td class="function_type"> |
| 83 |
<span class="returnvalue">int</span> |
| 84 |
</td> |
| 85 |
<td class="function_name"> |
| 86 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-get-deployserial" title="ostree_deployment_get_deployserial ()">ostree_deployment_get_deployserial</a> <span class="c_punctuation">()</span> |
| 87 |
</td> |
| 88 |
</tr> |
| 89 |
<tr> |
| 90 |
<td class="function_type">const <span class="returnvalue">char</span> * |
| 91 |
</td> |
| 92 |
<td class="function_name"> |
| 93 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-get-csum" title="ostree_deployment_get_csum ()">ostree_deployment_get_csum</a> <span class="c_punctuation">()</span> |
| 94 |
</td> |
| 95 |
</tr> |
| 96 |
<tr> |
| 97 |
<td class="function_type">const <span class="returnvalue">char</span> * |
| 98 |
</td> |
| 99 |
<td class="function_name"> |
| 100 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-get-bootcsum" title="ostree_deployment_get_bootcsum ()">ostree_deployment_get_bootcsum</a> <span class="c_punctuation">()</span> |
| 101 |
</td> |
| 102 |
</tr> |
| 103 |
<tr> |
| 104 |
<td class="function_type"> |
| 105 |
<span class="returnvalue">int</span> |
| 106 |
</td> |
| 107 |
<td class="function_name"> |
| 108 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-get-bootserial" title="ostree_deployment_get_bootserial ()">ostree_deployment_get_bootserial</a> <span class="c_punctuation">()</span> |
| 109 |
</td> |
| 110 |
</tr> |
| 111 |
<tr> |
| 112 |
<td class="function_type"> |
| 113 |
<a class="link" href="ostree-ostree-bootconfig-parser.html#OstreeBootconfigParser" title="OstreeBootconfigParser"><span class="returnvalue">OstreeBootconfigParser</span></a> * |
| 114 |
</td> |
| 115 |
<td class="function_name"> |
| 116 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-get-bootconfig" title="ostree_deployment_get_bootconfig ()">ostree_deployment_get_bootconfig</a> <span class="c_punctuation">()</span> |
| 117 |
</td> |
| 118 |
</tr> |
| 119 |
<tr> |
| 120 |
<td class="function_type"> |
| 121 |
<span class="returnvalue">GKeyFile</span> * |
| 122 |
</td> |
| 123 |
<td class="function_name"> |
| 124 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-get-origin" title="ostree_deployment_get_origin ()">ostree_deployment_get_origin</a> <span class="c_punctuation">()</span> |
| 125 |
</td> |
| 126 |
</tr> |
| 127 |
<tr> |
| 128 |
<td class="function_type"> |
| 129 |
<span class="returnvalue">char</span> * |
| 130 |
</td> |
| 131 |
<td class="function_name"> |
| 132 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-get-origin-relpath" title="ostree_deployment_get_origin_relpath ()">ostree_deployment_get_origin_relpath</a> <span class="c_punctuation">()</span> |
| 133 |
</td> |
| 134 |
</tr> |
| 135 |
<tr> |
| 136 |
<td class="function_type"> |
| 137 |
<span class="returnvalue">OstreeDeploymentUnlockedState</span> |
| 138 |
</td> |
| 139 |
<td class="function_name"> |
| 140 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-get-unlocked" title="ostree_deployment_get_unlocked ()">ostree_deployment_get_unlocked</a> <span class="c_punctuation">()</span> |
| 141 |
</td> |
| 142 |
</tr> |
| 143 |
<tr> |
| 144 |
<td class="function_type"> |
| 145 |
<span class="returnvalue">gboolean</span> |
| 146 |
</td> |
| 147 |
<td class="function_name"> |
| 148 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-is-pinned" title="ostree_deployment_is_pinned ()">ostree_deployment_is_pinned</a> <span class="c_punctuation">()</span> |
| 149 |
</td> |
| 150 |
</tr> |
| 151 |
<tr> |
| 152 |
<td class="function_type"> |
| 153 |
<span class="returnvalue">gboolean</span> |
| 154 |
</td> |
| 155 |
<td class="function_name"> |
| 156 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-is-staged" title="ostree_deployment_is_staged ()">ostree_deployment_is_staged</a> <span class="c_punctuation">()</span> |
| 157 |
</td> |
| 158 |
</tr> |
| 159 |
<tr> |
| 160 |
<td class="function_type"> |
| 161 |
<span class="returnvalue">gboolean</span> |
| 162 |
</td> |
| 163 |
<td class="function_name"> |
| 164 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-is-finalization-locked" title="ostree_deployment_is_finalization_locked ()">ostree_deployment_is_finalization_locked</a> <span class="c_punctuation">()</span> |
| 165 |
</td> |
| 166 |
</tr> |
| 167 |
<tr> |
| 168 |
<td class="function_type"> |
| 169 |
<span class="returnvalue">gboolean</span> |
| 170 |
</td> |
| 171 |
<td class="function_name"> |
| 172 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-is-soft-reboot-target" title="ostree_deployment_is_soft_reboot_target ()">ostree_deployment_is_soft_reboot_target</a> <span class="c_punctuation">()</span> |
| 173 |
</td> |
| 174 |
</tr> |
| 175 |
<tr> |
| 176 |
<td class="function_type"> |
| 177 |
<span class="returnvalue">void</span> |
| 178 |
</td> |
| 179 |
<td class="function_name"> |
| 180 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-set-index" title="ostree_deployment_set_index ()">ostree_deployment_set_index</a> <span class="c_punctuation">()</span> |
| 181 |
</td> |
| 182 |
</tr> |
| 183 |
<tr> |
| 184 |
<td class="function_type"> |
| 185 |
<span class="returnvalue">void</span> |
| 186 |
</td> |
| 187 |
<td class="function_name"> |
| 188 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-set-bootserial" title="ostree_deployment_set_bootserial ()">ostree_deployment_set_bootserial</a> <span class="c_punctuation">()</span> |
| 189 |
</td> |
| 190 |
</tr> |
| 191 |
<tr> |
| 192 |
<td class="function_type"> |
| 193 |
<span class="returnvalue">void</span> |
| 194 |
</td> |
| 195 |
<td class="function_name"> |
| 196 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-set-bootconfig" title="ostree_deployment_set_bootconfig ()">ostree_deployment_set_bootconfig</a> <span class="c_punctuation">()</span> |
| 197 |
</td> |
| 198 |
</tr> |
| 199 |
<tr> |
| 200 |
<td class="function_type"> |
| 201 |
<span class="returnvalue">void</span> |
| 202 |
</td> |
| 203 |
<td class="function_name"> |
| 204 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-set-origin" title="ostree_deployment_set_origin ()">ostree_deployment_set_origin</a> <span class="c_punctuation">()</span> |
| 205 |
</td> |
| 206 |
</tr> |
| 207 |
<tr> |
| 208 |
<td class="function_type"> |
| 209 |
<span class="returnvalue">void</span> |
| 210 |
</td> |
| 211 |
<td class="function_name"> |
| 212 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-origin-remove-transient-state" title="ostree_deployment_origin_remove_transient_state ()">ostree_deployment_origin_remove_transient_state</a> <span class="c_punctuation">()</span> |
| 213 |
</td> |
| 214 |
</tr> |
| 215 |
<tr> |
| 216 |
<td class="function_type"> |
| 217 |
<a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 218 |
</td> |
| 219 |
<td class="function_name"> |
| 220 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-clone" title="ostree_deployment_clone ()">ostree_deployment_clone</a> <span class="c_punctuation">()</span> |
| 221 |
</td> |
| 222 |
</tr> |
| 223 |
<tr> |
| 224 |
<td class="function_type">const <span class="returnvalue">char</span> * |
| 225 |
</td> |
| 226 |
<td class="function_name"> |
| 227 |
<a class="link" href="ostree-ostree-deployment.html#ostree-deployment-unlocked-state-to-string" title="ostree_deployment_unlocked_state_to_string ()">ostree_deployment_unlocked_state_to_string</a> <span class="c_punctuation">()</span> |
| 228 |
</td> |
| 229 |
</tr> |
| 230 |
</tbody> |
| 231 |
</table></div> |
| 232 |
</div> |
| 233 |
<div class="refsect1"> |
| 234 |
<a name="ostree-ostree-deployment.other"></a><h2>Types and Values</h2> |
| 235 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 236 |
<colgroup> |
| 237 |
<col width="150px" class="other_proto_type"> |
| 238 |
<col class="other_proto_name"> |
| 239 |
</colgroup> |
| 240 |
<tbody><tr> |
| 241 |
<td class="datatype_keyword"> </td> |
| 242 |
<td class="function_name"><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment">OstreeDeployment</a></td> |
| 243 |
</tr></tbody> |
| 244 |
</table></div> |
| 245 |
</div> |
| 246 |
<div class="refsect1"> |
| 247 |
<a name="ostree-ostree-deployment.description"></a><h2>Description</h2> |
| 248 |
</div> |
| 249 |
<div class="refsect1"> |
| 250 |
<a name="ostree-ostree-deployment.functions_details"></a><h2>Functions</h2> |
| 251 |
<div class="refsect2"> |
| 252 |
<a name="ostree-deployment-hash"></a><h3>ostree_deployment_hash ()</h3> |
| 253 |
<pre class="programlisting"><span class="returnvalue">guint</span> |
| 254 |
ostree_deployment_hash (<em class="parameter"><code><span class="type">gconstpointer</span> v</code></em>);</pre> |
| 255 |
<div class="refsect3"> |
| 256 |
<a name="ostree-deployment-hash.parameters"></a><h4>Parameters</h4> |
| 257 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 258 |
<colgroup> |
| 259 |
<col width="150px" class="parameters_name"> |
| 260 |
<col class="parameters_description"> |
| 261 |
<col width="200px" class="parameters_annotations"> |
| 262 |
</colgroup> |
| 263 |
<tbody><tr> |
| 264 |
<td class="parameter_name"><p>v</p></td> |
| 265 |
<td class="parameter_description"><p>Deployment. </p></td> |
| 266 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> OstreeDeployment]</span></td> |
| 267 |
</tr></tbody> |
| 268 |
</table></div> |
| 269 |
</div> |
| 270 |
<div class="refsect3"> |
| 271 |
<a name="ostree-deployment-hash.returns"></a><h4>Returns</h4> |
| 272 |
<p> An integer suitable for use in a <code class="literal">GHashTable</code></p> |
| 273 |
</div> |
| 274 |
</div> |
| 275 |
<hr> |
| 276 |
<div class="refsect2"> |
| 277 |
<a name="ostree-deployment-equal"></a><h3>ostree_deployment_equal ()</h3> |
| 278 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 279 |
ostree_deployment_equal (<em class="parameter"><code><span class="type">gconstpointer</span> ap</code></em>, |
| 280 |
<em class="parameter"><code><span class="type">gconstpointer</span> bp</code></em>);</pre> |
| 281 |
<div class="refsect3"> |
| 282 |
<a name="ostree-deployment-equal.parameters"></a><h4>Parameters</h4> |
| 283 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 284 |
<colgroup> |
| 285 |
<col width="150px" class="parameters_name"> |
| 286 |
<col class="parameters_description"> |
| 287 |
<col width="200px" class="parameters_annotations"> |
| 288 |
</colgroup> |
| 289 |
<tbody> |
| 290 |
<tr> |
| 291 |
<td class="parameter_name"><p>ap</p></td> |
| 292 |
<td class="parameter_description"><p>A deployment. </p></td> |
| 293 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> OstreeDeployment]</span></td> |
| 294 |
</tr> |
| 295 |
<tr> |
| 296 |
<td class="parameter_name"><p>bp</p></td> |
| 297 |
<td class="parameter_description"><p>A deployment. </p></td> |
| 298 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> OstreeDeployment]</span></td> |
| 299 |
</tr> |
| 300 |
</tbody> |
| 301 |
</table></div> |
| 302 |
</div> |
| 303 |
<div class="refsect3"> |
| 304 |
<a name="ostree-deployment-equal.returns"></a><h4>Returns</h4> |
| 305 |
<p> <code class="literal">TRUE</code> if deployments have the same osname, csum, and deployserial</p> |
| 306 |
</div> |
| 307 |
</div> |
| 308 |
<hr> |
| 309 |
<div class="refsect2"> |
| 310 |
<a name="ostree-deployment-new"></a><h3>ostree_deployment_new ()</h3> |
| 311 |
<pre class="programlisting"><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 312 |
ostree_deployment_new (<em class="parameter"><code><span class="type">int</span> index</code></em>, |
| 313 |
<em class="parameter"><code>const <span class="type">char</span> *osname</code></em>, |
| 314 |
<em class="parameter"><code>const <span class="type">char</span> *csum</code></em>, |
| 315 |
<em class="parameter"><code><span class="type">int</span> deployserial</code></em>, |
| 316 |
<em class="parameter"><code>const <span class="type">char</span> *bootcsum</code></em>, |
| 317 |
<em class="parameter"><code><span class="type">int</span> bootserial</code></em>);</pre> |
| 318 |
<div class="refsect3"> |
| 319 |
<a name="ostree-deployment-new.parameters"></a><h4>Parameters</h4> |
| 320 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 321 |
<colgroup> |
| 322 |
<col width="150px" class="parameters_name"> |
| 323 |
<col class="parameters_description"> |
| 324 |
<col width="200px" class="parameters_annotations"> |
| 325 |
</colgroup> |
| 326 |
<tbody> |
| 327 |
<tr> |
| 328 |
<td class="parameter_name"><p>index</p></td> |
| 329 |
<td class="parameter_description"><p>Global index into the bootloader entries</p></td> |
| 330 |
<td class="parameter_annotations"> </td> |
| 331 |
</tr> |
| 332 |
<tr> |
| 333 |
<td class="parameter_name"><p>osname</p></td> |
| 334 |
<td class="parameter_description"><p>"stateroot" for this deployment</p></td> |
| 335 |
<td class="parameter_annotations"> </td> |
| 336 |
</tr> |
| 337 |
<tr> |
| 338 |
<td class="parameter_name"><p>csum</p></td> |
| 339 |
<td class="parameter_description"><p>OSTree commit that will be deployed</p></td> |
| 340 |
<td class="parameter_annotations"> </td> |
| 341 |
</tr> |
| 342 |
<tr> |
| 343 |
<td class="parameter_name"><p>deployserial</p></td> |
| 344 |
<td class="parameter_description"><p>Unique counter</p></td> |
| 345 |
<td class="parameter_annotations"> </td> |
| 346 |
</tr> |
| 347 |
<tr> |
| 348 |
<td class="parameter_name"><p>bootcsum</p></td> |
| 349 |
<td class="parameter_description"><p>Kernel/initrd checksum. </p></td> |
| 350 |
<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> |
| 351 |
</tr> |
| 352 |
<tr> |
| 353 |
<td class="parameter_name"><p>bootserial</p></td> |
| 354 |
<td class="parameter_description"><p>Unique index</p></td> |
| 355 |
<td class="parameter_annotations"> </td> |
| 356 |
</tr> |
| 357 |
</tbody> |
| 358 |
</table></div> |
| 359 |
</div> |
| 360 |
<div class="refsect3"> |
| 361 |
<a name="ostree-deployment-new.returns"></a><h4>Returns</h4> |
| 362 |
<p>New deployment. </p> |
| 363 |
<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="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>]</span></p> |
| 364 |
</div> |
| 365 |
</div> |
| 366 |
<hr> |
| 367 |
<div class="refsect2"> |
| 368 |
<a name="ostree-deployment-get-index"></a><h3>ostree_deployment_get_index ()</h3> |
| 369 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 370 |
ostree_deployment_get_index (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 371 |
<div class="refsect3"> |
| 372 |
<a name="ostree-deployment-get-index.parameters"></a><h4>Parameters</h4> |
| 373 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 374 |
<colgroup> |
| 375 |
<col width="150px" class="parameters_name"> |
| 376 |
<col class="parameters_description"> |
| 377 |
<col width="200px" class="parameters_annotations"> |
| 378 |
</colgroup> |
| 379 |
<tbody><tr> |
| 380 |
<td class="parameter_name"><p>self</p></td> |
| 381 |
<td class="parameter_description"><p>Deployment</p></td> |
| 382 |
<td class="parameter_annotations"> </td> |
| 383 |
</tr></tbody> |
| 384 |
</table></div> |
| 385 |
</div> |
| 386 |
<div class="refsect3"> |
| 387 |
<a name="ostree-deployment-get-index.returns"></a><h4>Returns</h4> |
| 388 |
<p> The global index into the bootloader ordering</p> |
| 389 |
</div> |
| 390 |
</div> |
| 391 |
<hr> |
| 392 |
<div class="refsect2"> |
| 393 |
<a name="ostree-deployment-get-osname"></a><h3>ostree_deployment_get_osname ()</h3> |
| 394 |
<pre class="programlisting">const <span class="returnvalue">char</span> * |
| 395 |
ostree_deployment_get_osname (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 396 |
</div> |
| 397 |
<hr> |
| 398 |
<div class="refsect2"> |
| 399 |
<a name="ostree-deployment-get-deployserial"></a><h3>ostree_deployment_get_deployserial ()</h3> |
| 400 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 401 |
ostree_deployment_get_deployserial (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 402 |
</div> |
| 403 |
<hr> |
| 404 |
<div class="refsect2"> |
| 405 |
<a name="ostree-deployment-get-csum"></a><h3>ostree_deployment_get_csum ()</h3> |
| 406 |
<pre class="programlisting">const <span class="returnvalue">char</span> * |
| 407 |
ostree_deployment_get_csum (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 408 |
</div> |
| 409 |
<hr> |
| 410 |
<div class="refsect2"> |
| 411 |
<a name="ostree-deployment-get-bootcsum"></a><h3>ostree_deployment_get_bootcsum ()</h3> |
| 412 |
<pre class="programlisting">const <span class="returnvalue">char</span> * |
| 413 |
ostree_deployment_get_bootcsum (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 414 |
</div> |
| 415 |
<hr> |
| 416 |
<div class="refsect2"> |
| 417 |
<a name="ostree-deployment-get-bootserial"></a><h3>ostree_deployment_get_bootserial ()</h3> |
| 418 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 419 |
ostree_deployment_get_bootserial (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 420 |
</div> |
| 421 |
<hr> |
| 422 |
<div class="refsect2"> |
| 423 |
<a name="ostree-deployment-get-bootconfig"></a><h3>ostree_deployment_get_bootconfig ()</h3> |
| 424 |
<pre class="programlisting"><a class="link" href="ostree-ostree-bootconfig-parser.html#OstreeBootconfigParser" title="OstreeBootconfigParser"><span class="returnvalue">OstreeBootconfigParser</span></a> * |
| 425 |
ostree_deployment_get_bootconfig (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 426 |
<div class="refsect3"> |
| 427 |
<a name="ostree-deployment-get-bootconfig.parameters"></a><h4>Parameters</h4> |
| 428 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 429 |
<colgroup> |
| 430 |
<col width="150px" class="parameters_name"> |
| 431 |
<col class="parameters_description"> |
| 432 |
<col width="200px" class="parameters_annotations"> |
| 433 |
</colgroup> |
| 434 |
<tbody><tr> |
| 435 |
<td class="parameter_name"><p>self</p></td> |
| 436 |
<td class="parameter_description"><p>Deployment</p></td> |
| 437 |
<td class="parameter_annotations"> </td> |
| 438 |
</tr></tbody> |
| 439 |
</table></div> |
| 440 |
</div> |
| 441 |
<div class="refsect3"> |
| 442 |
<a name="ostree-deployment-get-bootconfig.returns"></a><h4>Returns</h4> |
| 443 |
<p>Boot configuration. </p> |
| 444 |
<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>][<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></p> |
| 445 |
</div> |
| 446 |
</div> |
| 447 |
<hr> |
| 448 |
<div class="refsect2"> |
| 449 |
<a name="ostree-deployment-get-origin"></a><h3>ostree_deployment_get_origin ()</h3> |
| 450 |
<pre class="programlisting"><span class="returnvalue">GKeyFile</span> * |
| 451 |
ostree_deployment_get_origin (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 452 |
<div class="refsect3"> |
| 453 |
<a name="ostree-deployment-get-origin.parameters"></a><h4>Parameters</h4> |
| 454 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 455 |
<colgroup> |
| 456 |
<col width="150px" class="parameters_name"> |
| 457 |
<col class="parameters_description"> |
| 458 |
<col width="200px" class="parameters_annotations"> |
| 459 |
</colgroup> |
| 460 |
<tbody><tr> |
| 461 |
<td class="parameter_name"><p>self</p></td> |
| 462 |
<td class="parameter_description"><p>Deployment</p></td> |
| 463 |
<td class="parameter_annotations"> </td> |
| 464 |
</tr></tbody> |
| 465 |
</table></div> |
| 466 |
</div> |
| 467 |
<div class="refsect3"> |
| 468 |
<a name="ostree-deployment-get-origin.returns"></a><h4>Returns</h4> |
| 469 |
<p>Origin. </p> |
| 470 |
<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>][<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></p> |
| 471 |
</div> |
| 472 |
</div> |
| 473 |
<hr> |
| 474 |
<div class="refsect2"> |
| 475 |
<a name="ostree-deployment-get-origin-relpath"></a><h3>ostree_deployment_get_origin_relpath ()</h3> |
| 476 |
<pre class="programlisting"><span class="returnvalue">char</span> * |
| 477 |
ostree_deployment_get_origin_relpath (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 478 |
<p>Note this function only returns a *relative* path - if you want to |
| 479 |
access, it, you must either use fd-relative api such as <code class="function">openat()</code>, |
| 480 |
or concatenate it with the full <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-get-path" title="ostree_sysroot_get_path ()"><code class="function">ostree_sysroot_get_path()</code></a>.</p> |
| 481 |
<div class="refsect3"> |
| 482 |
<a name="ostree-deployment-get-origin-relpath.parameters"></a><h4>Parameters</h4> |
| 483 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 484 |
<colgroup> |
| 485 |
<col width="150px" class="parameters_name"> |
| 486 |
<col class="parameters_description"> |
| 487 |
<col width="200px" class="parameters_annotations"> |
| 488 |
</colgroup> |
| 489 |
<tbody><tr> |
| 490 |
<td class="parameter_name"><p>self</p></td> |
| 491 |
<td class="parameter_description"><p>A deployment</p></td> |
| 492 |
<td class="parameter_annotations"> </td> |
| 493 |
</tr></tbody> |
| 494 |
</table></div> |
| 495 |
</div> |
| 496 |
<div class="refsect3"> |
| 497 |
<a name="ostree-deployment-get-origin-relpath.returns"></a><h4>Returns</h4> |
| 498 |
<p>Path to deployment root directory, relative to sysroot. </p> |
| 499 |
<p><span class="annotation">[<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p> |
| 500 |
</div> |
| 501 |
</div> |
| 502 |
<hr> |
| 503 |
<div class="refsect2"> |
| 504 |
<a name="ostree-deployment-get-unlocked"></a><h3>ostree_deployment_get_unlocked ()</h3> |
| 505 |
<pre class="programlisting"><span class="returnvalue">OstreeDeploymentUnlockedState</span> |
| 506 |
ostree_deployment_get_unlocked (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 507 |
<p class="since">Since: 2016.4</p> |
| 508 |
</div> |
| 509 |
<hr> |
| 510 |
<div class="refsect2"> |
| 511 |
<a name="ostree-deployment-is-pinned"></a><h3>ostree_deployment_is_pinned ()</h3> |
| 512 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 513 |
ostree_deployment_is_pinned (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 514 |
<p>See <a class="link" href="ostree-Root-partition-mount-point.html#ostree-sysroot-deployment-set-pinned" title="ostree_sysroot_deployment_set_pinned ()"><code class="function">ostree_sysroot_deployment_set_pinned()</code></a>.</p> |
| 515 |
<div class="refsect3"> |
| 516 |
<a name="ostree-deployment-is-pinned.parameters"></a><h4>Parameters</h4> |
| 517 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 518 |
<colgroup> |
| 519 |
<col width="150px" class="parameters_name"> |
| 520 |
<col class="parameters_description"> |
| 521 |
<col width="200px" class="parameters_annotations"> |
| 522 |
</colgroup> |
| 523 |
<tbody><tr> |
| 524 |
<td class="parameter_name"><p>self</p></td> |
| 525 |
<td class="parameter_description"><p>Deployment</p></td> |
| 526 |
<td class="parameter_annotations"> </td> |
| 527 |
</tr></tbody> |
| 528 |
</table></div> |
| 529 |
</div> |
| 530 |
<div class="refsect3"> |
| 531 |
<a name="ostree-deployment-is-pinned.returns"></a><h4>Returns</h4> |
| 532 |
<p> <code class="literal">TRUE</code> if deployment will not be subject to GC</p> |
| 533 |
</div> |
| 534 |
<p class="since">Since: 2018.3</p> |
| 535 |
</div> |
| 536 |
<hr> |
| 537 |
<div class="refsect2"> |
| 538 |
<a name="ostree-deployment-is-staged"></a><h3>ostree_deployment_is_staged ()</h3> |
| 539 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 540 |
ostree_deployment_is_staged (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 541 |
<div class="refsect3"> |
| 542 |
<a name="ostree-deployment-is-staged.parameters"></a><h4>Parameters</h4> |
| 543 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 544 |
<colgroup> |
| 545 |
<col width="150px" class="parameters_name"> |
| 546 |
<col class="parameters_description"> |
| 547 |
<col width="200px" class="parameters_annotations"> |
| 548 |
</colgroup> |
| 549 |
<tbody><tr> |
| 550 |
<td class="parameter_name"><p>self</p></td> |
| 551 |
<td class="parameter_description"><p>Deployment</p></td> |
| 552 |
<td class="parameter_annotations"> </td> |
| 553 |
</tr></tbody> |
| 554 |
</table></div> |
| 555 |
</div> |
| 556 |
<div class="refsect3"> |
| 557 |
<a name="ostree-deployment-is-staged.returns"></a><h4>Returns</h4> |
| 558 |
<p> <code class="literal">TRUE</code> if deployment should be "finalized" at shutdown time</p> |
| 559 |
</div> |
| 560 |
<p class="since">Since: 2018.3</p> |
| 561 |
</div> |
| 562 |
<hr> |
| 563 |
<div class="refsect2"> |
| 564 |
<a name="ostree-deployment-is-finalization-locked"></a><h3>ostree_deployment_is_finalization_locked ()</h3> |
| 565 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 566 |
ostree_deployment_is_finalization_locked |
| 567 |
(<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 568 |
<div class="refsect3"> |
| 569 |
<a name="ostree-deployment-is-finalization-locked.parameters"></a><h4>Parameters</h4> |
| 570 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 571 |
<colgroup> |
| 572 |
<col width="150px" class="parameters_name"> |
| 573 |
<col class="parameters_description"> |
| 574 |
<col width="200px" class="parameters_annotations"> |
| 575 |
</colgroup> |
| 576 |
<tbody><tr> |
| 577 |
<td class="parameter_name"><p>self</p></td> |
| 578 |
<td class="parameter_description"><p>Deployment</p></td> |
| 579 |
<td class="parameter_annotations"> </td> |
| 580 |
</tr></tbody> |
| 581 |
</table></div> |
| 582 |
</div> |
| 583 |
<div class="refsect3"> |
| 584 |
<a name="ostree-deployment-is-finalization-locked.returns"></a><h4>Returns</h4> |
| 585 |
<p> <code class="literal">TRUE</code> if deployment is queued to be "finalized" at shutdown time, but requires |
| 586 |
additional action.</p> |
| 587 |
</div> |
| 588 |
<p class="since">Since: 2023.8</p> |
| 589 |
</div> |
| 590 |
<hr> |
| 591 |
<div class="refsect2"> |
| 592 |
<a name="ostree-deployment-is-soft-reboot-target"></a><h3>ostree_deployment_is_soft_reboot_target ()</h3> |
| 593 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 594 |
ostree_deployment_is_soft_reboot_target |
| 595 |
(<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 596 |
<div class="refsect3"> |
| 597 |
<a name="ostree-deployment-is-soft-reboot-target.parameters"></a><h4>Parameters</h4> |
| 598 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 599 |
<colgroup> |
| 600 |
<col width="150px" class="parameters_name"> |
| 601 |
<col class="parameters_description"> |
| 602 |
<col width="200px" class="parameters_annotations"> |
| 603 |
</colgroup> |
| 604 |
<tbody><tr> |
| 605 |
<td class="parameter_name"><p>self</p></td> |
| 606 |
<td class="parameter_description"><p>Deployment</p></td> |
| 607 |
<td class="parameter_annotations"> </td> |
| 608 |
</tr></tbody> |
| 609 |
</table></div> |
| 610 |
</div> |
| 611 |
<div class="refsect3"> |
| 612 |
<a name="ostree-deployment-is-soft-reboot-target.returns"></a><h4>Returns</h4> |
| 613 |
<p> <code class="literal">TRUE</code> if deployment is set for a soft reboot.</p> |
| 614 |
</div> |
| 615 |
<p class="since">Since: 2025.3</p> |
| 616 |
</div> |
| 617 |
<hr> |
| 618 |
<div class="refsect2"> |
| 619 |
<a name="ostree-deployment-set-index"></a><h3>ostree_deployment_set_index ()</h3> |
| 620 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 621 |
ostree_deployment_set_index (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>, |
| 622 |
<em class="parameter"><code><span class="type">int</span> index</code></em>);</pre> |
| 623 |
<p>Sets the global index into the bootloader ordering.</p> |
| 624 |
<div class="refsect3"> |
| 625 |
<a name="ostree-deployment-set-index.parameters"></a><h4>Parameters</h4> |
| 626 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 627 |
<colgroup> |
| 628 |
<col width="150px" class="parameters_name"> |
| 629 |
<col class="parameters_description"> |
| 630 |
<col width="200px" class="parameters_annotations"> |
| 631 |
</colgroup> |
| 632 |
<tbody> |
| 633 |
<tr> |
| 634 |
<td class="parameter_name"><p>self</p></td> |
| 635 |
<td class="parameter_description"><p>Deployment</p></td> |
| 636 |
<td class="parameter_annotations"> </td> |
| 637 |
</tr> |
| 638 |
<tr> |
| 639 |
<td class="parameter_name"><p>index</p></td> |
| 640 |
<td class="parameter_description"><p>Index into bootloader ordering</p></td> |
| 641 |
<td class="parameter_annotations"> </td> |
| 642 |
</tr> |
| 643 |
</tbody> |
| 644 |
</table></div> |
| 645 |
</div> |
| 646 |
</div> |
| 647 |
<hr> |
| 648 |
<div class="refsect2"> |
| 649 |
<a name="ostree-deployment-set-bootserial"></a><h3>ostree_deployment_set_bootserial ()</h3> |
| 650 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 651 |
ostree_deployment_set_bootserial (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>, |
| 652 |
<em class="parameter"><code><span class="type">int</span> index</code></em>);</pre> |
| 653 |
<p>Should never have been made public API; don't use this.</p> |
| 654 |
<div class="refsect3"> |
| 655 |
<a name="ostree-deployment-set-bootserial.parameters"></a><h4>Parameters</h4> |
| 656 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 657 |
<colgroup> |
| 658 |
<col width="150px" class="parameters_name"> |
| 659 |
<col class="parameters_description"> |
| 660 |
<col width="200px" class="parameters_annotations"> |
| 661 |
</colgroup> |
| 662 |
<tbody> |
| 663 |
<tr> |
| 664 |
<td class="parameter_name"><p>self</p></td> |
| 665 |
<td class="parameter_description"><p>Deployment</p></td> |
| 666 |
<td class="parameter_annotations"> </td> |
| 667 |
</tr> |
| 668 |
<tr> |
| 669 |
<td class="parameter_name"><p>index</p></td> |
| 670 |
<td class="parameter_description"><p>Don't use this</p></td> |
| 671 |
<td class="parameter_annotations"> </td> |
| 672 |
</tr> |
| 673 |
</tbody> |
| 674 |
</table></div> |
| 675 |
</div> |
| 676 |
</div> |
| 677 |
<hr> |
| 678 |
<div class="refsect2"> |
| 679 |
<a name="ostree-deployment-set-bootconfig"></a><h3>ostree_deployment_set_bootconfig ()</h3> |
| 680 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 681 |
ostree_deployment_set_bootconfig (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>, |
| 682 |
<em class="parameter"><code><a class="link" href="ostree-ostree-bootconfig-parser.html#OstreeBootconfigParser" title="OstreeBootconfigParser"><span class="type">OstreeBootconfigParser</span></a> *bootconfig</code></em>);</pre> |
| 683 |
<p>Set or clear the bootloader configuration.</p> |
| 684 |
<div class="refsect3"> |
| 685 |
<a name="ostree-deployment-set-bootconfig.parameters"></a><h4>Parameters</h4> |
| 686 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 687 |
<colgroup> |
| 688 |
<col width="150px" class="parameters_name"> |
| 689 |
<col class="parameters_description"> |
| 690 |
<col width="200px" class="parameters_annotations"> |
| 691 |
</colgroup> |
| 692 |
<tbody> |
| 693 |
<tr> |
| 694 |
<td class="parameter_name"><p>self</p></td> |
| 695 |
<td class="parameter_description"><p>Deployment</p></td> |
| 696 |
<td class="parameter_annotations"> </td> |
| 697 |
</tr> |
| 698 |
<tr> |
| 699 |
<td class="parameter_name"><p>bootconfig</p></td> |
| 700 |
<td class="parameter_description"><p>Bootloader configuration object. </p></td> |
| 701 |
<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> |
| 702 |
</tr> |
| 703 |
</tbody> |
| 704 |
</table></div> |
| 705 |
</div> |
| 706 |
</div> |
| 707 |
<hr> |
| 708 |
<div class="refsect2"> |
| 709 |
<a name="ostree-deployment-set-origin"></a><h3>ostree_deployment_set_origin ()</h3> |
| 710 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 711 |
ostree_deployment_set_origin (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>, |
| 712 |
<em class="parameter"><code><span class="type">GKeyFile</span> *origin</code></em>);</pre> |
| 713 |
<p>Replace the "origin", which is a description of the source |
| 714 |
of the deployment and how to update to the next version.</p> |
| 715 |
<div class="refsect3"> |
| 716 |
<a name="ostree-deployment-set-origin.parameters"></a><h4>Parameters</h4> |
| 717 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 718 |
<colgroup> |
| 719 |
<col width="150px" class="parameters_name"> |
| 720 |
<col class="parameters_description"> |
| 721 |
<col width="200px" class="parameters_annotations"> |
| 722 |
</colgroup> |
| 723 |
<tbody> |
| 724 |
<tr> |
| 725 |
<td class="parameter_name"><p>self</p></td> |
| 726 |
<td class="parameter_description"><p>Deployment</p></td> |
| 727 |
<td class="parameter_annotations"> </td> |
| 728 |
</tr> |
| 729 |
<tr> |
| 730 |
<td class="parameter_name"><p>origin</p></td> |
| 731 |
<td class="parameter_description"><p>Set the origin for this deployment. </p></td> |
| 732 |
<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> |
| 733 |
</tr> |
| 734 |
</tbody> |
| 735 |
</table></div> |
| 736 |
</div> |
| 737 |
</div> |
| 738 |
<hr> |
| 739 |
<div class="refsect2"> |
| 740 |
<a name="ostree-deployment-origin-remove-transient-state"></a><h3>ostree_deployment_origin_remove_transient_state ()</h3> |
| 741 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 742 |
ostree_deployment_origin_remove_transient_state |
| 743 |
(<em class="parameter"><code><span class="type">GKeyFile</span> *origin</code></em>);</pre> |
| 744 |
<p>The intention of an origin file is primarily describe the "inputs" that |
| 745 |
resulted in a deployment, and it's commonly used to derive the new state. For |
| 746 |
example, a key value (in pure libostree mode) is the "refspec". However, |
| 747 |
libostree (or other applications) may want to store "transient" state that |
| 748 |
should not be carried across upgrades.</p> |
| 749 |
<p>This function just removes all members of the <code class="literal">libostree-transient</code> group. |
| 750 |
The name of that group is available to all libostree users; best practice |
| 751 |
would be to prefix values underneath there with a short identifier for your |
| 752 |
software.</p> |
| 753 |
<p>Additionally, this function will remove the <code class="literal">origin/unlocked</code> and |
| 754 |
<code class="literal">origin/override-commit</code> members; these should be considered transient state |
| 755 |
that should have been under an explicit group.</p> |
| 756 |
<div class="refsect3"> |
| 757 |
<a name="ostree-deployment-origin-remove-transient-state.parameters"></a><h4>Parameters</h4> |
| 758 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 759 |
<colgroup> |
| 760 |
<col width="150px" class="parameters_name"> |
| 761 |
<col class="parameters_description"> |
| 762 |
<col width="200px" class="parameters_annotations"> |
| 763 |
</colgroup> |
| 764 |
<tbody><tr> |
| 765 |
<td class="parameter_name"><p>origin</p></td> |
| 766 |
<td class="parameter_description"><p>An origin</p></td> |
| 767 |
<td class="parameter_annotations"> </td> |
| 768 |
</tr></tbody> |
| 769 |
</table></div> |
| 770 |
</div> |
| 771 |
<p class="since">Since: 2018.3</p> |
| 772 |
</div> |
| 773 |
<hr> |
| 774 |
<div class="refsect2"> |
| 775 |
<a name="ostree-deployment-clone"></a><h3>ostree_deployment_clone ()</h3> |
| 776 |
<pre class="programlisting"><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="returnvalue">OstreeDeployment</span></a> * |
| 777 |
ostree_deployment_clone (<em class="parameter"><code><a class="link" href="ostree-ostree-deployment.html#OstreeDeployment" title="OstreeDeployment"><span class="type">OstreeDeployment</span></a> *self</code></em>);</pre> |
| 778 |
<div class="refsect3"> |
| 779 |
<a name="ostree-deployment-clone.parameters"></a><h4>Parameters</h4> |
| 780 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 781 |
<colgroup> |
| 782 |
<col width="150px" class="parameters_name"> |
| 783 |
<col class="parameters_description"> |
| 784 |
<col width="200px" class="parameters_annotations"> |
| 785 |
</colgroup> |
| 786 |
<tbody><tr> |
| 787 |
<td class="parameter_name"><p>self</p></td> |
| 788 |
<td class="parameter_description"><p>Deployment</p></td> |
| 789 |
<td class="parameter_annotations"> </td> |
| 790 |
</tr></tbody> |
| 791 |
</table></div> |
| 792 |
</div> |
| 793 |
<div class="refsect3"> |
| 794 |
<a name="ostree-deployment-clone.returns"></a><h4>Returns</h4> |
| 795 |
<p>New deep copy of <em class="parameter"><code>self</code></em> |
| 796 |
. </p> |
| 797 |
<p><span class="annotation">[<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p> |
| 798 |
</div> |
| 799 |
</div> |
| 800 |
<hr> |
| 801 |
<div class="refsect2"> |
| 802 |
<a name="ostree-deployment-unlocked-state-to-string"></a><h3>ostree_deployment_unlocked_state_to_string ()</h3> |
| 803 |
<pre class="programlisting">const <span class="returnvalue">char</span> * |
| 804 |
ostree_deployment_unlocked_state_to_string |
| 805 |
(<em class="parameter"><code><span class="type">OstreeDeploymentUnlockedState</span> state</code></em>);</pre> |
| 806 |
<div class="refsect3"> |
| 807 |
<a name="ostree-deployment-unlocked-state-to-string.returns"></a><h4>Returns</h4> |
| 808 |
<p>Description of state. </p> |
| 809 |
<p><span class="annotation">[<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>]</span></p> |
| 810 |
</div> |
| 811 |
<p class="since">Since: 2016.4</p> |
| 812 |
</div> |
| 813 |
</div> |
| 814 |
<div class="refsect1"> |
| 815 |
<a name="ostree-ostree-deployment.other_details"></a><h2>Types and Values</h2> |
| 816 |
<div class="refsect2"> |
| 817 |
<a name="OstreeDeployment"></a><h3>OstreeDeployment</h3> |
| 818 |
<pre class="programlisting">typedef struct { |
| 819 |
GObject parent_instance; |
| 820 |
|
| 821 |
int index; |
| 822 |
char *osname; |
| 823 |
char *csum; |
| 824 |
int deployserial; |
| 825 |
char *bootcsum; |
| 826 |
int bootserial; |
| 827 |
OstreeBootconfigParser *bootconfig; |
| 828 |
GKeyFile *origin; |
| 829 |
OstreeDeploymentUnlockedState unlocked; |
| 830 |
gboolean staged; |
| 831 |
gboolean finalization_locked; |
| 832 |
gboolean soft_reboot_target; |
| 833 |
char **overlay_initrds; |
| 834 |
char *overlay_initrds_id; |
| 835 |
|
| 836 |
// Private cache of expected backing device/inode |
| 837 |
gboolean devino_initialized; |
| 838 |
dev_t device; |
| 839 |
ino_t inode; |
| 840 |
} OstreeDeployment; |
| 841 |
</pre> |
| 842 |
<div class="refsect3"> |
| 843 |
<a name="OstreeDeployment.members"></a><h4>Members</h4> |
| 844 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 845 |
<colgroup> |
| 846 |
<col width="300px" class="struct_members_name"> |
| 847 |
<col class="struct_members_description"> |
| 848 |
<col width="200px" class="struct_members_annotations"> |
| 849 |
</colgroup> |
| 850 |
<tbody> |
| 851 |
<tr> |
| 852 |
<td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="OstreeDeployment.index"></a>index</code></em>;</p></td> |
| 853 |
<td class="struct_member_description"><p>Global offset</p></td> |
| 854 |
<td class="struct_member_annotations"> </td> |
| 855 |
</tr> |
| 856 |
<tr> |
| 857 |
<td class="struct_member_name"><p><span class="type">char</span> *<em class="structfield"><code><a name="OstreeDeployment.osname"></a>osname</code></em>;</p></td> |
| 858 |
<td class="struct_member_description"> </td> |
| 859 |
<td class="struct_member_annotations"> </td> |
| 860 |
</tr> |
| 861 |
<tr> |
| 862 |
<td class="struct_member_name"><p><span class="type">char</span> *<em class="structfield"><code><a name="OstreeDeployment.csum"></a>csum</code></em>;</p></td> |
| 863 |
<td class="struct_member_description"><p>OSTree checksum of tree</p></td> |
| 864 |
<td class="struct_member_annotations"> </td> |
| 865 |
</tr> |
| 866 |
<tr> |
| 867 |
<td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="OstreeDeployment.deployserial"></a>deployserial</code></em>;</p></td> |
| 868 |
<td class="struct_member_description"><p>How many times this particular csum appears in deployment list</p></td> |
| 869 |
<td class="struct_member_annotations"> </td> |
| 870 |
</tr> |
| 871 |
<tr> |
| 872 |
<td class="struct_member_name"><p><span class="type">char</span> *<em class="structfield"><code><a name="OstreeDeployment.bootcsum"></a>bootcsum</code></em>;</p></td> |
| 873 |
<td class="struct_member_description"><p>Checksum of kernel+initramfs</p></td> |
| 874 |
<td class="struct_member_annotations"> </td> |
| 875 |
</tr> |
| 876 |
<tr> |
| 877 |
<td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="OstreeDeployment.bootserial"></a>bootserial</code></em>;</p></td> |
| 878 |
<td class="struct_member_description"><p>An integer assigned to this tree per its ${bootcsum}</p></td> |
| 879 |
<td class="struct_member_annotations"> </td> |
| 880 |
</tr> |
| 881 |
<tr> |
| 882 |
<td class="struct_member_name"><p><a class="link" href="ostree-ostree-bootconfig-parser.html#OstreeBootconfigParser" title="OstreeBootconfigParser"><span class="type">OstreeBootconfigParser</span></a> *<em class="structfield"><code><a name="OstreeDeployment.bootconfig"></a>bootconfig</code></em>;</p></td> |
| 883 |
<td class="struct_member_description"><p>Bootloader configuration</p></td> |
| 884 |
<td class="struct_member_annotations"> </td> |
| 885 |
</tr> |
| 886 |
<tr> |
| 887 |
<td class="struct_member_name"><p><span class="type">GKeyFile</span> *<em class="structfield"><code><a name="OstreeDeployment.origin"></a>origin</code></em>;</p></td> |
| 888 |
<td class="struct_member_description"><p>How to construct an upgraded version of this tree</p></td> |
| 889 |
<td class="struct_member_annotations"> </td> |
| 890 |
</tr> |
| 891 |
<tr> |
| 892 |
<td class="struct_member_name"><p><span class="type">OstreeDeploymentUnlockedState</span> <em class="structfield"><code><a name="OstreeDeployment.unlocked"></a>unlocked</code></em>;</p></td> |
| 893 |
<td class="struct_member_description"><p>The unlocked state</p></td> |
| 894 |
<td class="struct_member_annotations"> </td> |
| 895 |
</tr> |
| 896 |
<tr> |
| 897 |
<td class="struct_member_name"><p><span class="type">gboolean</span> <em class="structfield"><code><a name="OstreeDeployment.staged"></a>staged</code></em>;</p></td> |
| 898 |
<td class="struct_member_description"><p>TRUE iff this deployment is staged</p></td> |
| 899 |
<td class="struct_member_annotations"> </td> |
| 900 |
</tr> |
| 901 |
<tr> |
| 902 |
<td class="struct_member_name"><p><span class="type">gboolean</span> <em class="structfield"><code><a name="OstreeDeployment.finalization-locked"></a>finalization_locked</code></em>;</p></td> |
| 903 |
<td> </td> |
| 904 |
<td> </td> |
| 905 |
</tr> |
| 906 |
<tr> |
| 907 |
<td class="struct_member_name"><p><span class="type">gboolean</span> <em class="structfield"><code><a name="OstreeDeployment.soft-reboot-target"></a>soft_reboot_target</code></em>;</p></td> |
| 908 |
<td> </td> |
| 909 |
<td> </td> |
| 910 |
</tr> |
| 911 |
<tr> |
| 912 |
<td class="struct_member_name"><p><span class="type">char</span> **<em class="structfield"><code><a name="OstreeDeployment.overlay-initrds"></a>overlay_initrds</code></em>;</p></td> |
| 913 |
<td class="struct_member_description"><p>Checksums of staged additional initrds for this deployment</p></td> |
| 914 |
<td class="struct_member_annotations"> </td> |
| 915 |
</tr> |
| 916 |
<tr> |
| 917 |
<td class="struct_member_name"><p><span class="type">char</span> *<em class="structfield"><code><a name="OstreeDeployment.overlay-initrds-id"></a>overlay_initrds_id</code></em>;</p></td> |
| 918 |
<td class="struct_member_description"><p>Unique ID generated from initrd checksums; used to compare deployments</p></td> |
| 919 |
<td class="struct_member_annotations"> </td> |
| 920 |
</tr> |
| 921 |
<tr> |
| 922 |
<td class="struct_member_name"><p><span class="type">gboolean</span> <em class="structfield"><code><a name="OstreeDeployment.devino-initialized"></a>devino_initialized</code></em>;</p></td> |
| 923 |
<td> </td> |
| 924 |
<td> </td> |
| 925 |
</tr> |
| 926 |
<tr> |
| 927 |
<td class="struct_member_name"><p><span class="type">dev_t</span> <em class="structfield"><code><a name="OstreeDeployment.device"></a>device</code></em>;</p></td> |
| 928 |
<td> </td> |
| 929 |
<td> </td> |
| 930 |
</tr> |
| 931 |
<tr> |
| 932 |
<td class="struct_member_name"><p><span class="type">ino_t</span> <em class="structfield"><code><a name="OstreeDeployment.inode"></a>inode</code></em>;</p></td> |
| 933 |
<td> </td> |
| 934 |
<td> </td> |
| 935 |
</tr> |
| 936 |
</tbody> |
| 937 |
</table></div> |
| 938 |
</div> |
| 939 |
</div> |
| 940 |
</div> |
| 941 |
</div> |
| 942 |
<div class="footer"> |
| 943 |
<hr>Generated by GTK-Doc V1.34.0</div> |
| 944 |
</body> |
| 945 |
</html> |