| 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-repo-file: 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-remote.html" title="ostree-remote"> |
| 10 | <link rel="next" href="ostree-ostree-repo-finder.html" title="ostree-repo-finder"> |
| 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-repo-file.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-remote.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 23 | <td><a accesskey="n" href="ostree-ostree-repo-finder.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-repo-file"></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-repo-file.top_of_page"></a>ostree-repo-file</span></h2> |
| 30 | <p>ostree-repo-file</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-repo-file.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">gboolean</span> |
| 45 | </td> |
| 46 | <td class="function_name"> |
| 47 | <a class="link" href="ostree-ostree-repo-file.html#ostree-repo-file-ensure-resolved" title="ostree_repo_file_ensure_resolved ()">ostree_repo_file_ensure_resolved</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-repo-file.html#ostree-repo-file-get-xattrs" title="ostree_repo_file_get_xattrs ()">ostree_repo_file_get_xattrs</a> <span class="c_punctuation">()</span> |
| 56 | </td> |
| 57 | </tr> |
| 58 | <tr> |
| 59 | <td class="function_type"> |
| 60 | <a class="link" href="ostree-OstreeRepo.html#OstreeRepo" title="OstreeRepo"><span class="returnvalue">OstreeRepo</span></a> * |
| 61 | </td> |
| 62 | <td class="function_name"> |
| 63 | <a class="link" href="ostree-ostree-repo-file.html#ostree-repo-file-get-repo" title="ostree_repo_file_get_repo ()">ostree_repo_file_get_repo</a> <span class="c_punctuation">()</span> |
| 64 | </td> |
| 65 | </tr> |
| 66 | <tr> |
| 67 | <td class="function_type"> |
| 68 | <a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="returnvalue">OstreeRepoFile</span></a> * |
| 69 | </td> |
| 70 | <td class="function_name"> |
| 71 | <a class="link" href="ostree-ostree-repo-file.html#ostree-repo-file-get-root" title="ostree_repo_file_get_root ()">ostree_repo_file_get_root</a> <span class="c_punctuation">()</span> |
| 72 | </td> |
| 73 | </tr> |
| 74 | <tr> |
| 75 | <td class="function_type"> |
| 76 | <span class="returnvalue">void</span> |
| 77 | </td> |
| 78 | <td class="function_name"> |
| 79 | <a class="link" href="ostree-ostree-repo-file.html#ostree-repo-file-tree-set-metadata" title="ostree_repo_file_tree_set_metadata ()">ostree_repo_file_tree_set_metadata</a> <span class="c_punctuation">()</span> |
| 80 | </td> |
| 81 | </tr> |
| 82 | <tr> |
| 83 | <td class="function_type">const <span class="returnvalue">char</span> * |
| 84 | </td> |
| 85 | <td class="function_name"> |
| 86 | <a class="link" href="ostree-ostree-repo-file.html#ostree-repo-file-tree-get-contents-checksum" title="ostree_repo_file_tree_get_contents_checksum ()">ostree_repo_file_tree_get_contents_checksum</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-repo-file.html#ostree-repo-file-tree-get-metadata-checksum" title="ostree_repo_file_tree_get_metadata_checksum ()">ostree_repo_file_tree_get_metadata_checksum</a> <span class="c_punctuation">()</span> |
| 94 | </td> |
| 95 | </tr> |
| 96 | <tr> |
| 97 | <td class="function_type"> |
| 98 | <span class="returnvalue">GVariant</span> * |
| 99 | </td> |
| 100 | <td class="function_name"> |
| 101 | <a class="link" href="ostree-ostree-repo-file.html#ostree-repo-file-tree-get-contents" title="ostree_repo_file_tree_get_contents ()">ostree_repo_file_tree_get_contents</a> <span class="c_punctuation">()</span> |
| 102 | </td> |
| 103 | </tr> |
| 104 | <tr> |
| 105 | <td class="function_type"> |
| 106 | <span class="returnvalue">GVariant</span> * |
| 107 | </td> |
| 108 | <td class="function_name"> |
| 109 | <a class="link" href="ostree-ostree-repo-file.html#ostree-repo-file-tree-get-metadata" title="ostree_repo_file_tree_get_metadata ()">ostree_repo_file_tree_get_metadata</a> <span class="c_punctuation">()</span> |
| 110 | </td> |
| 111 | </tr> |
| 112 | <tr> |
| 113 | <td class="function_type">const <span class="returnvalue">char</span> * |
| 114 | </td> |
| 115 | <td class="function_name"> |
| 116 | <a class="link" href="ostree-ostree-repo-file.html#ostree-repo-file-get-checksum" title="ostree_repo_file_get_checksum ()">ostree_repo_file_get_checksum</a> <span class="c_punctuation">()</span> |
| 117 | </td> |
| 118 | </tr> |
| 119 | <tr> |
| 120 | <td class="function_type"> |
| 121 | <span class="returnvalue">int</span> |
| 122 | </td> |
| 123 | <td class="function_name"> |
| 124 | <a class="link" href="ostree-ostree-repo-file.html#ostree-repo-file-tree-find-child" title="ostree_repo_file_tree_find_child ()">ostree_repo_file_tree_find_child</a> <span class="c_punctuation">()</span> |
| 125 | </td> |
| 126 | </tr> |
| 127 | <tr> |
| 128 | <td class="function_type"> |
| 129 | <span class="returnvalue">gboolean</span> |
| 130 | </td> |
| 131 | <td class="function_name"> |
| 132 | <a class="link" href="ostree-ostree-repo-file.html#ostree-repo-file-tree-query-child" title="ostree_repo_file_tree_query_child ()">ostree_repo_file_tree_query_child</a> <span class="c_punctuation">()</span> |
| 133 | </td> |
| 134 | </tr> |
| 135 | </tbody> |
| 136 | </table></div> |
| 137 | </div> |
| 138 | <div class="refsect1"> |
| 139 | <a name="ostree-ostree-repo-file.other"></a><h2>Types and Values</h2> |
| 140 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 141 | <colgroup> |
| 142 | <col width="150px" class="other_proto_type"> |
| 143 | <col class="other_proto_name"> |
| 144 | </colgroup> |
| 145 | <tbody><tr> |
| 146 | <td class="typedef_keyword">typedef</td> |
| 147 | <td class="function_name"><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile">OstreeRepoFile</a></td> |
| 148 | </tr></tbody> |
| 149 | </table></div> |
| 150 | </div> |
| 151 | <div class="refsect1"> |
| 152 | <a name="ostree-ostree-repo-file.description"></a><h2>Description</h2> |
| 153 | </div> |
| 154 | <div class="refsect1"> |
| 155 | <a name="ostree-ostree-repo-file.functions_details"></a><h2>Functions</h2> |
| 156 | <div class="refsect2"> |
| 157 | <a name="ostree-repo-file-ensure-resolved"></a><h3>ostree_repo_file_ensure_resolved ()</h3> |
| 158 | <pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 159 | ostree_repo_file_ensure_resolved (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>, |
| 160 | <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 161 | <p>Ensure that the backing metadata is loaded.</p> |
| 162 | <div class="refsect3"> |
| 163 | <a name="ostree-repo-file-ensure-resolved.parameters"></a><h4>Parameters</h4> |
| 164 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 165 | <colgroup> |
| 166 | <col width="150px" class="parameters_name"> |
| 167 | <col class="parameters_description"> |
| 168 | <col width="200px" class="parameters_annotations"> |
| 169 | </colgroup> |
| 170 | <tbody> |
| 171 | <tr> |
| 172 | <td class="parameter_name"><p>self</p></td> |
| 173 | <td class="parameter_description"><p>A repo file</p></td> |
| 174 | <td class="parameter_annotations"> </td> |
| 175 | </tr> |
| 176 | <tr> |
| 177 | <td class="parameter_name"><p>error</p></td> |
| 178 | <td class="parameter_description"><p>Error</p></td> |
| 179 | <td class="parameter_annotations"> </td> |
| 180 | </tr> |
| 181 | </tbody> |
| 182 | </table></div> |
| 183 | </div> |
| 184 | <div class="refsect3"> |
| 185 | <a name="ostree-repo-file-ensure-resolved.returns"></a><h4>Returns</h4> |
| 186 | <p> <code class="literal">FALSE</code> if the operation failed, <code class="literal">TRUE</code> otherwise</p> |
| 187 | </div> |
| 188 | </div> |
| 189 | <hr> |
| 190 | <div class="refsect2"> |
| 191 | <a name="ostree-repo-file-get-xattrs"></a><h3>ostree_repo_file_get_xattrs ()</h3> |
| 192 | <pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 193 | ostree_repo_file_get_xattrs (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>, |
| 194 | <em class="parameter"><code><span class="type">GVariant</span> **out_xattrs</code></em>, |
| 195 | <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 196 | <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 197 | <div class="refsect3"> |
| 198 | <a name="ostree-repo-file-get-xattrs.parameters"></a><h4>Parameters</h4> |
| 199 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 200 | <colgroup> |
| 201 | <col width="150px" class="parameters_name"> |
| 202 | <col class="parameters_description"> |
| 203 | <col width="200px" class="parameters_annotations"> |
| 204 | </colgroup> |
| 205 | <tbody> |
| 206 | <tr> |
| 207 | <td class="parameter_name"><p>self</p></td> |
| 208 | <td class="parameter_description"><p><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a></p></td> |
| 209 | <td class="parameter_annotations"> </td> |
| 210 | </tr> |
| 211 | <tr> |
| 212 | <td class="parameter_name"><p>out_xattrs</p></td> |
| 213 | <td class="parameter_description"><p>the extended attributes. </p></td> |
| 214 | <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>]</span></td> |
| 215 | </tr> |
| 216 | <tr> |
| 217 | <td class="parameter_name"><p>cancellable</p></td> |
| 218 | <td class="parameter_description"><p>Cancellable</p></td> |
| 219 | <td class="parameter_annotations"> </td> |
| 220 | </tr> |
| 221 | <tr> |
| 222 | <td class="parameter_name"><p>error</p></td> |
| 223 | <td class="parameter_description"><p>Error</p></td> |
| 224 | <td class="parameter_annotations"> </td> |
| 225 | </tr> |
| 226 | </tbody> |
| 227 | </table></div> |
| 228 | </div> |
| 229 | </div> |
| 230 | <hr> |
| 231 | <div class="refsect2"> |
| 232 | <a name="ostree-repo-file-get-repo"></a><h3>ostree_repo_file_get_repo ()</h3> |
| 233 | <pre class="programlisting"><a class="link" href="ostree-OstreeRepo.html#OstreeRepo" title="OstreeRepo"><span class="returnvalue">OstreeRepo</span></a> * |
| 234 | ostree_repo_file_get_repo (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>);</pre> |
| 235 | <div class="refsect3"> |
| 236 | <a name="ostree-repo-file-get-repo.returns"></a><h4>Returns</h4> |
| 237 | <p>Repository. </p> |
| 238 | <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p> |
| 239 | </div> |
| 240 | </div> |
| 241 | <hr> |
| 242 | <div class="refsect2"> |
| 243 | <a name="ostree-repo-file-get-root"></a><h3>ostree_repo_file_get_root ()</h3> |
| 244 | <pre class="programlisting"><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="returnvalue">OstreeRepoFile</span></a> * |
| 245 | ostree_repo_file_get_root (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>);</pre> |
| 246 | <div class="refsect3"> |
| 247 | <a name="ostree-repo-file-get-root.returns"></a><h4>Returns</h4> |
| 248 | <p>The root directory for the commit referenced by this file. </p> |
| 249 | <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p> |
| 250 | </div> |
| 251 | </div> |
| 252 | <hr> |
| 253 | <div class="refsect2"> |
| 254 | <a name="ostree-repo-file-tree-set-metadata"></a><h3>ostree_repo_file_tree_set_metadata ()</h3> |
| 255 | <pre class="programlisting"><span class="returnvalue">void</span> |
| 256 | ostree_repo_file_tree_set_metadata (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>, |
| 257 | <em class="parameter"><code>const <span class="type">char</span> *checksum</code></em>, |
| 258 | <em class="parameter"><code><span class="type">GVariant</span> *metadata</code></em>);</pre> |
| 259 | <p>Replace the metadata checksum and metadata object.</p> |
| 260 | <div class="refsect3"> |
| 261 | <a name="ostree-repo-file-tree-set-metadata.parameters"></a><h4>Parameters</h4> |
| 262 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 263 | <colgroup> |
| 264 | <col width="150px" class="parameters_name"> |
| 265 | <col class="parameters_description"> |
| 266 | <col width="200px" class="parameters_annotations"> |
| 267 | </colgroup> |
| 268 | <tbody><tr> |
| 269 | <td class="parameter_name"><p>self</p></td> |
| 270 | <td class="parameter_description"><p>A repo file</p></td> |
| 271 | <td class="parameter_annotations"> </td> |
| 272 | </tr></tbody> |
| 273 | </table></div> |
| 274 | </div> |
| 275 | </div> |
| 276 | <hr> |
| 277 | <div class="refsect2"> |
| 278 | <a name="ostree-repo-file-tree-get-contents-checksum"></a><h3>ostree_repo_file_tree_get_contents_checksum ()</h3> |
| 279 | <pre class="programlisting">const <span class="returnvalue">char</span> * |
| 280 | ostree_repo_file_tree_get_contents_checksum |
| 281 | (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>);</pre> |
| 282 | <div class="refsect3"> |
| 283 | <a name="ostree-repo-file-tree-get-contents-checksum.parameters"></a><h4>Parameters</h4> |
| 284 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 285 | <colgroup> |
| 286 | <col width="150px" class="parameters_name"> |
| 287 | <col class="parameters_description"> |
| 288 | <col width="200px" class="parameters_annotations"> |
| 289 | </colgroup> |
| 290 | <tbody><tr> |
| 291 | <td class="parameter_name"><p>self</p></td> |
| 292 | <td class="parameter_description"><p>A repo file</p></td> |
| 293 | <td class="parameter_annotations"> </td> |
| 294 | </tr></tbody> |
| 295 | </table></div> |
| 296 | </div> |
| 297 | <div class="refsect3"> |
| 298 | <a name="ostree-repo-file-tree-get-contents-checksum.returns"></a><h4>Returns</h4> |
| 299 | <p>The SHA256 digest of the content object, or <code class="literal">NULL</code> if this is not a |
| 300 | directory. </p> |
| 301 | <p><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></p> |
| 302 | </div> |
| 303 | </div> |
| 304 | <hr> |
| 305 | <div class="refsect2"> |
| 306 | <a name="ostree-repo-file-tree-get-metadata-checksum"></a><h3>ostree_repo_file_tree_get_metadata_checksum ()</h3> |
| 307 | <pre class="programlisting">const <span class="returnvalue">char</span> * |
| 308 | ostree_repo_file_tree_get_metadata_checksum |
| 309 | (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>);</pre> |
| 310 | <div class="refsect3"> |
| 311 | <a name="ostree-repo-file-tree-get-metadata-checksum.parameters"></a><h4>Parameters</h4> |
| 312 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 313 | <colgroup> |
| 314 | <col width="150px" class="parameters_name"> |
| 315 | <col class="parameters_description"> |
| 316 | <col width="200px" class="parameters_annotations"> |
| 317 | </colgroup> |
| 318 | <tbody><tr> |
| 319 | <td class="parameter_name"><p>self</p></td> |
| 320 | <td class="parameter_description"><p>A repo file</p></td> |
| 321 | <td class="parameter_annotations"> </td> |
| 322 | </tr></tbody> |
| 323 | </table></div> |
| 324 | </div> |
| 325 | <div class="refsect3"> |
| 326 | <a name="ostree-repo-file-tree-get-metadata-checksum.returns"></a><h4>Returns</h4> |
| 327 | <p>The SHA256 digest of the metadata object, or <code class="literal">NULL</code> if this is not a |
| 328 | directory. </p> |
| 329 | <p><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></p> |
| 330 | </div> |
| 331 | </div> |
| 332 | <hr> |
| 333 | <div class="refsect2"> |
| 334 | <a name="ostree-repo-file-tree-get-contents"></a><h3>ostree_repo_file_tree_get_contents ()</h3> |
| 335 | <pre class="programlisting"><span class="returnvalue">GVariant</span> * |
| 336 | ostree_repo_file_tree_get_contents (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>);</pre> |
| 337 | <p>This API will return <code class="literal">NULL</code> if the file is not "resolved" i.e. in a loaded |
| 338 | state. It will also return <code class="literal">NULL</code> if this path is not a directory tree.</p> |
| 339 | <div class="refsect3"> |
| 340 | <a name="ostree-repo-file-tree-get-contents.parameters"></a><h4>Parameters</h4> |
| 341 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 342 | <colgroup> |
| 343 | <col width="150px" class="parameters_name"> |
| 344 | <col class="parameters_description"> |
| 345 | <col width="200px" class="parameters_annotations"> |
| 346 | </colgroup> |
| 347 | <tbody><tr> |
| 348 | <td class="parameter_name"><p>self</p></td> |
| 349 | <td class="parameter_description"><p>A repo file</p></td> |
| 350 | <td class="parameter_annotations"> </td> |
| 351 | </tr></tbody> |
| 352 | </table></div> |
| 353 | </div> |
| 354 | <div class="refsect3"> |
| 355 | <a name="ostree-repo-file-tree-get-contents.returns"></a><h4>Returns</h4> |
| 356 | <p>The GVariant representing the children of this directory. </p> |
| 357 | <p><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></p> |
| 358 | </div> |
| 359 | </div> |
| 360 | <hr> |
| 361 | <div class="refsect2"> |
| 362 | <a name="ostree-repo-file-tree-get-metadata"></a><h3>ostree_repo_file_tree_get_metadata ()</h3> |
| 363 | <pre class="programlisting"><span class="returnvalue">GVariant</span> * |
| 364 | ostree_repo_file_tree_get_metadata (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>);</pre> |
| 365 | <p>This API will return <code class="literal">NULL</code> if the file is not "resolved" i.e. in a loaded |
| 366 | state. It will also return <code class="literal">NULL</code> if this path is not a directory tree.</p> |
| 367 | <div class="refsect3"> |
| 368 | <a name="ostree-repo-file-tree-get-metadata.parameters"></a><h4>Parameters</h4> |
| 369 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 370 | <colgroup> |
| 371 | <col width="150px" class="parameters_name"> |
| 372 | <col class="parameters_description"> |
| 373 | <col width="200px" class="parameters_annotations"> |
| 374 | </colgroup> |
| 375 | <tbody><tr> |
| 376 | <td class="parameter_name"><p>self</p></td> |
| 377 | <td class="parameter_description"><p>A repo file</p></td> |
| 378 | <td class="parameter_annotations"> </td> |
| 379 | </tr></tbody> |
| 380 | </table></div> |
| 381 | </div> |
| 382 | <div class="refsect3"> |
| 383 | <a name="ostree-repo-file-tree-get-metadata.returns"></a><h4>Returns</h4> |
| 384 | <p>The GVariant representing the metadata for this directory. </p> |
| 385 | <p><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></p> |
| 386 | </div> |
| 387 | </div> |
| 388 | <hr> |
| 389 | <div class="refsect2"> |
| 390 | <a name="ostree-repo-file-get-checksum"></a><h3>ostree_repo_file_get_checksum ()</h3> |
| 391 | <pre class="programlisting">const <span class="returnvalue">char</span> * |
| 392 | ostree_repo_file_get_checksum (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>);</pre> |
| 393 | </div> |
| 394 | <hr> |
| 395 | <div class="refsect2"> |
| 396 | <a name="ostree-repo-file-tree-find-child"></a><h3>ostree_repo_file_tree_find_child ()</h3> |
| 397 | <pre class="programlisting"><span class="returnvalue">int</span> |
| 398 | ostree_repo_file_tree_find_child (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>, |
| 399 | <em class="parameter"><code>const <span class="type">char</span> *name</code></em>, |
| 400 | <em class="parameter"><code><span class="type">gboolean</span> *is_dir</code></em>, |
| 401 | <em class="parameter"><code><span class="type">GVariant</span> **out_container</code></em>);</pre> |
| 402 | <div class="refsect3"> |
| 403 | <a name="ostree-repo-file-tree-find-child.parameters"></a><h4>Parameters</h4> |
| 404 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 405 | <colgroup> |
| 406 | <col width="150px" class="parameters_name"> |
| 407 | <col class="parameters_description"> |
| 408 | <col width="200px" class="parameters_annotations"> |
| 409 | </colgroup> |
| 410 | <tbody> |
| 411 | <tr> |
| 412 | <td class="parameter_name"><p>self</p></td> |
| 413 | <td class="parameter_description"><p><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a></p></td> |
| 414 | <td class="parameter_annotations"> </td> |
| 415 | </tr> |
| 416 | <tr> |
| 417 | <td class="parameter_name"><p>name</p></td> |
| 418 | <td class="parameter_description"><p>name of the child</p></td> |
| 419 | <td class="parameter_annotations"> </td> |
| 420 | </tr> |
| 421 | <tr> |
| 422 | <td class="parameter_name"><p>is_dir</p></td> |
| 423 | <td class="parameter_description"><p>. </p></td> |
| 424 | <td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>]</span></td> |
| 425 | </tr> |
| 426 | <tr> |
| 427 | <td class="parameter_name"><p>out_container</p></td> |
| 428 | <td class="parameter_description"><p>. </p></td> |
| 429 | <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> |
| 430 | </tr> |
| 431 | </tbody> |
| 432 | </table></div> |
| 433 | </div> |
| 434 | </div> |
| 435 | <hr> |
| 436 | <div class="refsect2"> |
| 437 | <a name="ostree-repo-file-tree-query-child"></a><h3>ostree_repo_file_tree_query_child ()</h3> |
| 438 | <pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 439 | ostree_repo_file_tree_query_child (<em class="parameter"><code><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a> *self</code></em>, |
| 440 | <em class="parameter"><code><span class="type">int</span> n</code></em>, |
| 441 | <em class="parameter"><code>const <span class="type">char</span> *attributes</code></em>, |
| 442 | <em class="parameter"><code><span class="type">GFileQueryInfoFlags</span> flags</code></em>, |
| 443 | <em class="parameter"><code><span class="type">GFileInfo</span> **out_info</code></em>, |
| 444 | <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 445 | <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 446 | <div class="refsect3"> |
| 447 | <a name="ostree-repo-file-tree-query-child.parameters"></a><h4>Parameters</h4> |
| 448 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 449 | <colgroup> |
| 450 | <col width="150px" class="parameters_name"> |
| 451 | <col class="parameters_description"> |
| 452 | <col width="200px" class="parameters_annotations"> |
| 453 | </colgroup> |
| 454 | <tbody> |
| 455 | <tr> |
| 456 | <td class="parameter_name"><p>self</p></td> |
| 457 | <td class="parameter_description"><p><a class="link" href="ostree-ostree-repo-file.html#OstreeRepoFile" title="OstreeRepoFile"><span class="type">OstreeRepoFile</span></a></p></td> |
| 458 | <td class="parameter_annotations"> </td> |
| 459 | </tr> |
| 460 | <tr> |
| 461 | <td class="parameter_name"><p>n</p></td> |
| 462 | <td class="parameter_description"><p>the child number</p></td> |
| 463 | <td class="parameter_annotations"> </td> |
| 464 | </tr> |
| 465 | <tr> |
| 466 | <td class="parameter_name"><p>attributes</p></td> |
| 467 | <td class="parameter_description"><p>an attribute string to match, see <code class="function">g_file_attribute_matcher_new()</code></p></td> |
| 468 | <td class="parameter_annotations"> </td> |
| 469 | </tr> |
| 470 | <tr> |
| 471 | <td class="parameter_name"><p>flags</p></td> |
| 472 | <td class="parameter_description"><p>a <span class="type">GFileQueryInfoFlags</span></p></td> |
| 473 | <td class="parameter_annotations"> </td> |
| 474 | </tr> |
| 475 | <tr> |
| 476 | <td class="parameter_name"><p>out_info</p></td> |
| 477 | <td class="parameter_description"><p>the <span class="type">GFileInfo</span> of the child. </p></td> |
| 478 | <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>]</span></td> |
| 479 | </tr> |
| 480 | <tr> |
| 481 | <td class="parameter_name"><p>cancellable</p></td> |
| 482 | <td class="parameter_description"><p>a <span class="type">GCancellable</span> or <code class="literal">NULL</code></p></td> |
| 483 | <td class="parameter_annotations"> </td> |
| 484 | </tr> |
| 485 | <tr> |
| 486 | <td class="parameter_name"><p>error</p></td> |
| 487 | <td class="parameter_description"><p>a <span class="type">GError</span> or <code class="literal">NULL</code></p></td> |
| 488 | <td class="parameter_annotations"> </td> |
| 489 | </tr> |
| 490 | </tbody> |
| 491 | </table></div> |
| 492 | </div> |
| 493 | <div class="refsect3"> |
| 494 | <a name="ostree-repo-file-tree-query-child.returns"></a><h4>Returns</h4> |
| 495 | <p> <code class="literal">TRUE</code> on success and the <em class="parameter"><code>out_info</code></em> |
| 496 | is set, <code class="literal">FALSE</code> otherwise.</p> |
| 497 | </div> |
| 498 | </div> |
| 499 | </div> |
| 500 | <div class="refsect1"> |
| 501 | <a name="ostree-ostree-repo-file.other_details"></a><h2>Types and Values</h2> |
| 502 | <div class="refsect2"> |
| 503 | <a name="OstreeRepoFile"></a><h3>OstreeRepoFile</h3> |
| 504 | <pre class="programlisting">typedef struct OstreeRepoFile OstreeRepoFile; |
| 505 | </pre> |
| 506 | </div> |
| 507 | </div> |
| 508 | </div> |
| 509 | <div class="footer"> |
| 510 | <hr>Generated by GTK-Doc V1.34.0</div> |
| 511 | </body> |
| 512 | </html> |