Debian Codegraph @

apidoc/html/ostree-ostree-version.html

raw
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-version: 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-repo-remote-finder.html" title="ostree-repo-remote-finder">
10 <link rel="next" href="annotation-glossary.html" title="Annotation Glossary">
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-version.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-repo-remote-finder.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23 <td><a accesskey="n" href="annotation-glossary.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-version"></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-version.top_of_page"></a>ostree-version</span></h2>
30 <p>ostree-version — ostree version checking</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-version.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><tr>
42 <td class="define_keyword">#define</td>
43 <td class="function_name">
44 <a class="link" href="ostree-ostree-version.html#OSTREE-CHECK-VERSION:CAPS" title="OSTREE_CHECK_VERSION()">OSTREE_CHECK_VERSION</a><span class="c_punctuation">()</span>
45 </td>
46 </tr></tbody>
47 </table></div>
48 </div>
49 <div class="refsect1">
50 <a name="ostree-ostree-version.other"></a><h2>Types and Values</h2>
51 <div class="informaltable"><table class="informaltable" width="100%" border="0">
52 <colgroup>
53 <col width="150px" class="other_proto_type">
54 <col class="other_proto_name">
55 </colgroup>
56 <tbody>
57 <tr>
58 <td class="define_keyword">#define</td>
59 <td class="function_name"><a class="link" href="ostree-ostree-version.html#OSTREE-YEAR-VERSION:CAPS" title="OSTREE_YEAR_VERSION">OSTREE_YEAR_VERSION</a></td>
60 </tr>
61 <tr>
62 <td class="define_keyword">#define</td>
63 <td class="function_name"><a class="link" href="ostree-ostree-version.html#OSTREE-RELEASE-VERSION:CAPS" title="OSTREE_RELEASE_VERSION">OSTREE_RELEASE_VERSION</a></td>
64 </tr>
65 <tr>
66 <td class="define_keyword">#define</td>
67 <td class="function_name"><a class="link" href="ostree-ostree-version.html#OSTREE-VERSION:CAPS" title="OSTREE_VERSION">OSTREE_VERSION</a></td>
68 </tr>
69 <tr>
70 <td class="define_keyword">#define</td>
71 <td class="function_name"><a class="link" href="ostree-ostree-version.html#OSTREE-VERSION-S:CAPS" title="OSTREE_VERSION_S">OSTREE_VERSION_S</a></td>
72 </tr>
73 <tr>
74 <td class="define_keyword">#define</td>
75 <td class="function_name"><a class="link" href="ostree-ostree-version.html#OSTREE-VERSION-HEX:CAPS" title="OSTREE_VERSION_HEX">OSTREE_VERSION_HEX</a></td>
76 </tr>
77 </tbody>
78 </table></div>
79 </div>
80 <div class="refsect1">
81 <a name="ostree-ostree-version.description"></a><h2>Description</h2>
82 <p>ostree provides macros to check the version of the library
83 at compile-time</p>
84 </div>
85 <div class="refsect1">
86 <a name="ostree-ostree-version.functions_details"></a><h2>Functions</h2>
87 <div class="refsect2">
88 <a name="OSTREE-CHECK-VERSION:CAPS"></a><h3>OSTREE_CHECK_VERSION()</h3>
89 <pre class="programlisting">#define OSTREE_CHECK_VERSION(year,release)</pre>
90 <p>Compile-time version checking. Evaluates to <code class="literal">TRUE</code> if the version
91 of ostree is equal or greater than the required one.</p>
92 <div class="refsect3">
93 <a name="OSTREE-CHECK-VERSION.parameters"></a><h4>Parameters</h4>
94 <div class="informaltable"><table class="informaltable" width="100%" border="0">
95 <colgroup>
96 <col width="150px" class="parameters_name">
97 <col class="parameters_description">
98 <col width="200px" class="parameters_annotations">
99 </colgroup>
100 <tbody>
101 <tr>
102 <td class="parameter_name"><p>year</p></td>
103 <td class="parameter_description"><p>required year version</p></td>
104 <td class="parameter_annotations"> </td>
105 </tr>
106 <tr>
107 <td class="parameter_name"><p>release</p></td>
108 <td class="parameter_description"><p>required release version</p></td>
109 <td class="parameter_annotations"> </td>
110 </tr>
111 </tbody>
112 </table></div>
113 </div>
114 <p class="since">Since: 2017.4</p>
115 </div>
116 </div>
117 <div class="refsect1">
118 <a name="ostree-ostree-version.other_details"></a><h2>Types and Values</h2>
119 <div class="refsect2">
120 <a name="OSTREE-YEAR-VERSION:CAPS"></a><h3>OSTREE_YEAR_VERSION</h3>
121 <pre class="programlisting">#define OSTREE_YEAR_VERSION (2026)
122 </pre>
123 <p>ostree year version component (e.g. 2017 if <a class="link" href="ostree-ostree-version.html#OSTREE-VERSION:CAPS" title="OSTREE_VERSION"><code class="literal">OSTREE_VERSION</code></a> is 2017.2)</p>
124 <p class="since">Since: 2017.4</p>
125 </div>
126 <hr>
127 <div class="refsect2">
128 <a name="OSTREE-RELEASE-VERSION:CAPS"></a><h3>OSTREE_RELEASE_VERSION</h3>
129 <pre class="programlisting">#define OSTREE_RELEASE_VERSION (1)
130 </pre>
131 <p>ostree release version component (e.g. 2 if <a class="link" href="ostree-ostree-version.html#OSTREE-VERSION:CAPS" title="OSTREE_VERSION"><code class="literal">OSTREE_VERSION</code></a> is 2017.2)</p>
132 <p class="since">Since: 2017.4</p>
133 </div>
134 <hr>
135 <div class="refsect2">
136 <a name="OSTREE-VERSION:CAPS"></a><h3>OSTREE_VERSION</h3>
137 <pre class="programlisting">#define OSTREE_VERSION (2026.1)
138 </pre>
139 <p>ostree version.</p>
140 <p class="since">Since: 2017.4</p>
141 </div>
142 <hr>
143 <div class="refsect2">
144 <a name="OSTREE-VERSION-S:CAPS"></a><h3>OSTREE_VERSION_S</h3>
145 <pre class="programlisting">#define OSTREE_VERSION_S "2026.1"
146 </pre>
147 <p>ostree version, encoded as a string, useful for printing and
148 concatenation.</p>
149 <p class="since">Since: 2017.4</p>
150 </div>
151 <hr>
152 <div class="refsect2">
153 <a name="OSTREE-VERSION-HEX:CAPS"></a><h3>OSTREE_VERSION_HEX</h3>
154 <pre class="programlisting">#define OSTREE_VERSION_HEX</pre>
155 <p>ostree version, encoded as an hexadecimal number, useful for
156 integer comparisons.</p>
157 <p class="since">Since: 2017.4</p>
158 </div>
159 </div>
160 </div>
161 <div class="footer">
162 <hr>Generated by GTK-Doc V1.34.0</div>
163 </body>
164 </html>