| 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-remote: 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-ref.html" title="ostree-ref"> |
| 10 |
<link rel="next" href="ostree-ostree-repo-file.html" title="ostree-repo-file"> |
| 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-remote.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-ref.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 23 |
<td><a accesskey="n" href="ostree-ostree-repo-file.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-remote"></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-remote.top_of_page"></a>ostree-remote</span></h2> |
| 30 |
<p>ostree-remote</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-remote.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 |
<a class="link" href="ostree-ostree-remote.html#OstreeRemote" title="struct OstreeRemote"><span class="returnvalue">OstreeRemote</span></a> * |
| 45 |
</td> |
| 46 |
<td class="function_name"> |
| 47 |
<a class="link" href="ostree-ostree-remote.html#ostree-remote-ref" title="ostree_remote_ref ()">ostree_remote_ref</a> <span class="c_punctuation">()</span> |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
<tr> |
| 51 |
<td class="function_type"> |
| 52 |
<span class="returnvalue">void</span> |
| 53 |
</td> |
| 54 |
<td class="function_name"> |
| 55 |
<a class="link" href="ostree-ostree-remote.html#ostree-remote-unref" title="ostree_remote_unref ()">ostree_remote_unref</a> <span class="c_punctuation">()</span> |
| 56 |
</td> |
| 57 |
</tr> |
| 58 |
<tr> |
| 59 |
<td class="function_type">const <span class="returnvalue">gchar</span> * |
| 60 |
</td> |
| 61 |
<td class="function_name"> |
| 62 |
<a class="link" href="ostree-ostree-remote.html#ostree-remote-get-name" title="ostree_remote_get_name ()">ostree_remote_get_name</a> <span class="c_punctuation">()</span> |
| 63 |
</td> |
| 64 |
</tr> |
| 65 |
<tr> |
| 66 |
<td class="function_type"> |
| 67 |
<span class="returnvalue">gchar</span> * |
| 68 |
</td> |
| 69 |
<td class="function_name"> |
| 70 |
<a class="link" href="ostree-ostree-remote.html#ostree-remote-get-url" title="ostree_remote_get_url ()">ostree_remote_get_url</a> <span class="c_punctuation">()</span> |
| 71 |
</td> |
| 72 |
</tr> |
| 73 |
</tbody> |
| 74 |
</table></div> |
| 75 |
</div> |
| 76 |
<div class="refsect1"> |
| 77 |
<a name="ostree-ostree-remote.other"></a><h2>Types and Values</h2> |
| 78 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 79 |
<colgroup> |
| 80 |
<col width="150px" class="other_proto_type"> |
| 81 |
<col class="other_proto_name"> |
| 82 |
</colgroup> |
| 83 |
<tbody><tr> |
| 84 |
<td class="datatype_keyword">struct</td> |
| 85 |
<td class="function_name"><a class="link" href="ostree-ostree-remote.html#OstreeRemote" title="struct OstreeRemote">OstreeRemote</a></td> |
| 86 |
</tr></tbody> |
| 87 |
</table></div> |
| 88 |
</div> |
| 89 |
<div class="refsect1"> |
| 90 |
<a name="ostree-ostree-remote.description"></a><h2>Description</h2> |
| 91 |
</div> |
| 92 |
<div class="refsect1"> |
| 93 |
<a name="ostree-ostree-remote.functions_details"></a><h2>Functions</h2> |
| 94 |
<div class="refsect2"> |
| 95 |
<a name="ostree-remote-ref"></a><h3>ostree_remote_ref ()</h3> |
| 96 |
<pre class="programlisting"><a class="link" href="ostree-ostree-remote.html#OstreeRemote" title="struct OstreeRemote"><span class="returnvalue">OstreeRemote</span></a> * |
| 97 |
ostree_remote_ref (<em class="parameter"><code><a class="link" href="ostree-ostree-remote.html#OstreeRemote" title="struct OstreeRemote"><span class="type">OstreeRemote</span></a> *remote</code></em>);</pre> |
| 98 |
<p>Increase the reference count on the given <em class="parameter"><code>remote</code></em> |
| 99 |
.</p> |
| 100 |
<div class="refsect3"> |
| 101 |
<a name="ostree-remote-ref.parameters"></a><h4>Parameters</h4> |
| 102 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 103 |
<colgroup> |
| 104 |
<col width="150px" class="parameters_name"> |
| 105 |
<col class="parameters_description"> |
| 106 |
<col width="200px" class="parameters_annotations"> |
| 107 |
</colgroup> |
| 108 |
<tbody><tr> |
| 109 |
<td class="parameter_name"><p>remote</p></td> |
| 110 |
<td class="parameter_description"><p>an <a class="link" href="ostree-ostree-remote.html#OstreeRemote" title="struct OstreeRemote"><span class="type">OstreeRemote</span></a></p></td> |
| 111 |
<td class="parameter_annotations"> </td> |
| 112 |
</tr></tbody> |
| 113 |
</table></div> |
| 114 |
</div> |
| 115 |
<div class="refsect3"> |
| 116 |
<a name="ostree-remote-ref.returns"></a><h4>Returns</h4> |
| 117 |
<p>a copy of <em class="parameter"><code>remote</code></em> |
| 118 |
, for convenience. </p> |
| 119 |
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p> |
| 120 |
</div> |
| 121 |
<p class="since">Since: 2018.6</p> |
| 122 |
</div> |
| 123 |
<hr> |
| 124 |
<div class="refsect2"> |
| 125 |
<a name="ostree-remote-unref"></a><h3>ostree_remote_unref ()</h3> |
| 126 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 127 |
ostree_remote_unref (<em class="parameter"><code><a class="link" href="ostree-ostree-remote.html#OstreeRemote" title="struct OstreeRemote"><span class="type">OstreeRemote</span></a> *remote</code></em>);</pre> |
| 128 |
<p>Decrease the reference count on the given <em class="parameter"><code>remote</code></em> |
| 129 |
and free it if the |
| 130 |
reference count reaches 0.</p> |
| 131 |
<div class="refsect3"> |
| 132 |
<a name="ostree-remote-unref.parameters"></a><h4>Parameters</h4> |
| 133 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 134 |
<colgroup> |
| 135 |
<col width="150px" class="parameters_name"> |
| 136 |
<col class="parameters_description"> |
| 137 |
<col width="200px" class="parameters_annotations"> |
| 138 |
</colgroup> |
| 139 |
<tbody><tr> |
| 140 |
<td class="parameter_name"><p>remote</p></td> |
| 141 |
<td class="parameter_description"><p>an <a class="link" href="ostree-ostree-remote.html#OstreeRemote" title="struct OstreeRemote"><span class="type">OstreeRemote</span></a>. </p></td> |
| 142 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></td> |
| 143 |
</tr></tbody> |
| 144 |
</table></div> |
| 145 |
</div> |
| 146 |
<p class="since">Since: 2018.6</p> |
| 147 |
</div> |
| 148 |
<hr> |
| 149 |
<div class="refsect2"> |
| 150 |
<a name="ostree-remote-get-name"></a><h3>ostree_remote_get_name ()</h3> |
| 151 |
<pre class="programlisting">const <span class="returnvalue">gchar</span> * |
| 152 |
ostree_remote_get_name (<em class="parameter"><code><a class="link" href="ostree-ostree-remote.html#OstreeRemote" title="struct OstreeRemote"><span class="type">OstreeRemote</span></a> *remote</code></em>);</pre> |
| 153 |
<p>Get the human-readable name of the remote. This is what the user configured, |
| 154 |
if the remote was explicitly configured; and will otherwise be a stable, |
| 155 |
arbitrary, string.</p> |
| 156 |
<div class="refsect3"> |
| 157 |
<a name="ostree-remote-get-name.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><tr> |
| 165 |
<td class="parameter_name"><p>remote</p></td> |
| 166 |
<td class="parameter_description"><p>an <a class="link" href="ostree-ostree-remote.html#OstreeRemote" title="struct OstreeRemote"><span class="type">OstreeRemote</span></a></p></td> |
| 167 |
<td class="parameter_annotations"> </td> |
| 168 |
</tr></tbody> |
| 169 |
</table></div> |
| 170 |
</div> |
| 171 |
<div class="refsect3"> |
| 172 |
<a name="ostree-remote-get-name.returns"></a><h4>Returns</h4> |
| 173 |
<p> remote’s name</p> |
| 174 |
</div> |
| 175 |
<p class="since">Since: 2018.6</p> |
| 176 |
</div> |
| 177 |
<hr> |
| 178 |
<div class="refsect2"> |
| 179 |
<a name="ostree-remote-get-url"></a><h3>ostree_remote_get_url ()</h3> |
| 180 |
<pre class="programlisting"><span class="returnvalue">gchar</span> * |
| 181 |
ostree_remote_get_url (<em class="parameter"><code><a class="link" href="ostree-ostree-remote.html#OstreeRemote" title="struct OstreeRemote"><span class="type">OstreeRemote</span></a> *remote</code></em>);</pre> |
| 182 |
<p>Get the URL from the remote.</p> |
| 183 |
<div class="refsect3"> |
| 184 |
<a name="ostree-remote-get-url.parameters"></a><h4>Parameters</h4> |
| 185 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 186 |
<colgroup> |
| 187 |
<col width="150px" class="parameters_name"> |
| 188 |
<col class="parameters_description"> |
| 189 |
<col width="200px" class="parameters_annotations"> |
| 190 |
</colgroup> |
| 191 |
<tbody><tr> |
| 192 |
<td class="parameter_name"><p>remote</p></td> |
| 193 |
<td class="parameter_description"><p>an <a class="link" href="ostree-ostree-remote.html#OstreeRemote" title="struct OstreeRemote"><span class="type">OstreeRemote</span></a></p></td> |
| 194 |
<td class="parameter_annotations"> </td> |
| 195 |
</tr></tbody> |
| 196 |
</table></div> |
| 197 |
</div> |
| 198 |
<div class="refsect3"> |
| 199 |
<a name="ostree-remote-get-url.returns"></a><h4>Returns</h4> |
| 200 |
<p>the remote's URL. </p> |
| 201 |
<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 may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p> |
| 202 |
</div> |
| 203 |
<p class="since">Since: 2018.6</p> |
| 204 |
</div> |
| 205 |
</div> |
| 206 |
<div class="refsect1"> |
| 207 |
<a name="ostree-ostree-remote.other_details"></a><h2>Types and Values</h2> |
| 208 |
<div class="refsect2"> |
| 209 |
<a name="OstreeRemote"></a><h3>struct OstreeRemote</h3> |
| 210 |
<pre class="programlisting">struct OstreeRemote { |
| 211 |
int ref_count; /* atomic */ |
| 212 |
char *name; /* (not nullable) */ |
| 213 |
char *refspec_name; /* (nullable) */ |
| 214 |
char *group; /* group name in options (not nullable) */ |
| 215 |
char *keyring; /* keyring name ($refspec_name.trustedkeys.gpg) (not nullable) */ |
| 216 |
GFile *file; /* NULL if remote defined in repo/config */ |
| 217 |
GKeyFile *options; |
| 218 |
}; |
| 219 |
</pre> |
| 220 |
<p>This represents the configuration for a single remote repository. Currently, |
| 221 |
remotes can only be passed around as (reference counted) opaque handles. In |
| 222 |
future, more API may be added to create and interrogate them.</p> |
| 223 |
<p class="since">Since: 2018.6</p> |
| 224 |
</div> |
| 225 |
</div> |
| 226 |
</div> |
| 227 |
<div class="footer"> |
| 228 |
<hr>Generated by GTK-Doc V1.34.0</div> |
| 229 |
</body> |
| 230 |
</html> |