Initial Import
[profile/ivi/json-glib.git] / doc / reference / html / json-glib-Versioning-information.html
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>Versioning information</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="JSON-GLib Reference Manual">
8 <link rel="up" href="json-tools.html" title="Part V. JSON-GLib Additional Reference">
9 <link rel="prev" href="json-tools.html" title="Part V. JSON-GLib Additional Reference">
10 <link rel="next" href="ch04.html" title="Object Hierarchy">
11 <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16 <tr valign="middle">
17 <td><a accesskey="p" href="json-tools.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="json-tools.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">JSON-GLib Reference Manual</th>
21 <td><a accesskey="n" href="ch04.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#json-glib-Versioning-information.synopsis" class="shortcut">Top</a>
25                    | 
26                   <a href="#json-glib-Versioning-information.description" class="shortcut">Description</a>
27 </td></tr>
28 </table>
29 <div class="refentry">
30 <a name="json-glib-Versioning-information"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
32 <td valign="top">
33 <h2><span class="refentrytitle"><a name="json-glib-Versioning-information.top_of_page"></a>Versioning information</span></h2>
34 <p>Versioning information — JSON-GLib version checking</p>
35 </td>
36 <td valign="top" align="right"></td>
37 </tr></table></div>
38 <div class="refsynopsisdiv">
39 <a name="json-glib-Versioning-information.synopsis"></a><h2>Synopsis</h2>
40 <pre class="synopsis">#define             <a class="link" href="json-glib-Versioning-information.html#JSON-MAJOR-VERSION:CAPS" title="JSON_MAJOR_VERSION">JSON_MAJOR_VERSION</a>
41 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-MINOR-VERSION:CAPS" title="JSON_MINOR_VERSION">JSON_MINOR_VERSION</a>
42 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-MICRO-VERSION:CAPS" title="JSON_MICRO_VERSION">JSON_MICRO_VERSION</a>
43
44 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-VERSION:CAPS" title="JSON_VERSION">JSON_VERSION</a>
45 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-VERSION-S:CAPS" title="JSON_VERSION_S">JSON_VERSION_S</a>
46 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-VERSION-HEX:CAPS" title="JSON_VERSION_HEX">JSON_VERSION_HEX</a>
47
48 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-CHECK-VERSION:CAPS" title="JSON_CHECK_VERSION()">JSON_CHECK_VERSION</a>                  (major,
49                                                          minor,
50                                                          micro)
51 </pre>
52 </div>
53 <div class="refsect1">
54 <a name="json-glib-Versioning-information.description"></a><h2>Description</h2>
55 <p>
56 JSON-GLib provides macros to check the version of the library
57 at compile-time
58 </p>
59 </div>
60 <div class="refsect1">
61 <a name="json-glib-Versioning-information.details"></a><h2>Details</h2>
62 <div class="refsect2">
63 <a name="JSON-MAJOR-VERSION:CAPS"></a><h3>JSON_MAJOR_VERSION</h3>
64 <pre class="programlisting">#define JSON_MAJOR_VERSION              (0)
65 </pre>
66 <p>
67 Json major version component (e.g. 1 if <a class="link" href="json-glib-Versioning-information.html#JSON-VERSION:CAPS" title="JSON_VERSION"><code class="literal">JSON_VERSION</code></a> is 1.2.3)
68 </p>
69 </div>
70 <hr>
71 <div class="refsect2">
72 <a name="JSON-MINOR-VERSION:CAPS"></a><h3>JSON_MINOR_VERSION</h3>
73 <pre class="programlisting">#define JSON_MINOR_VERSION              (14)
74 </pre>
75 <p>
76 Json minor version component (e.g. 2 if <a class="link" href="json-glib-Versioning-information.html#JSON-VERSION:CAPS" title="JSON_VERSION"><code class="literal">JSON_VERSION</code></a> is 1.2.3)
77 </p>
78 </div>
79 <hr>
80 <div class="refsect2">
81 <a name="JSON-MICRO-VERSION:CAPS"></a><h3>JSON_MICRO_VERSION</h3>
82 <pre class="programlisting">#define JSON_MICRO_VERSION              (2)
83 </pre>
84 <p>
85 Json micro version component (e.g. 3 if <a class="link" href="json-glib-Versioning-information.html#JSON-VERSION:CAPS" title="JSON_VERSION"><code class="literal">JSON_VERSION</code></a> is 1.2.3)
86 </p>
87 </div>
88 <hr>
89 <div class="refsect2">
90 <a name="JSON-VERSION:CAPS"></a><h3>JSON_VERSION</h3>
91 <pre class="programlisting">#define JSON_VERSION                    (0.14.2)
92 </pre>
93 <p>
94 Json version.
95 </p>
96 </div>
97 <hr>
98 <div class="refsect2">
99 <a name="JSON-VERSION-S:CAPS"></a><h3>JSON_VERSION_S</h3>
100 <pre class="programlisting">#define JSON_VERSION_S                  "0.14.2"
101 </pre>
102 <p>
103 Json version, encoded as a string, useful for printing and
104 concatenation.
105 </p>
106 </div>
107 <hr>
108 <div class="refsect2">
109 <a name="JSON-VERSION-HEX:CAPS"></a><h3>JSON_VERSION_HEX</h3>
110 <pre class="programlisting">#define             JSON_VERSION_HEX</pre>
111 <p>
112 Json version, encoded as an hexadecimal number, useful for
113 integer comparisons.
114 </p>
115 </div>
116 <hr>
117 <div class="refsect2">
118 <a name="JSON-CHECK-VERSION:CAPS"></a><h3>JSON_CHECK_VERSION()</h3>
119 <pre class="programlisting">#define             JSON_CHECK_VERSION(major,minor,micro)</pre>
120 <p>
121 Compile-time version checking. Evaluates to <code class="literal">TRUE</code> if the version
122 of Json is greater than the required one.
123 </p>
124 <div class="variablelist"><table border="0">
125 <col align="left" valign="top">
126 <tbody>
127 <tr>
128 <td><p><span class="term"><em class="parameter"><code>major</code></em> :</span></p></td>
129 <td>required major version</td>
130 </tr>
131 <tr>
132 <td><p><span class="term"><em class="parameter"><code>minor</code></em> :</span></p></td>
133 <td>required minor version</td>
134 </tr>
135 <tr>
136 <td><p><span class="term"><em class="parameter"><code>micro</code></em> :</span></p></td>
137 <td>required micro version</td>
138 </tr>
139 </tbody>
140 </table></div>
141 </div>
142 </div>
143 </div>
144 <div class="footer">
145 <hr>
146           Generated by GTK-Doc V1.18.1</div>
147 </body>
148 </html>