Git init
[external/libjson-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.75.2">
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.13 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 <link rel="part" href="json-glib.html" title="Part I. JSON-GLib Overview">
14 <link rel="part" href="json-base.html" title="Part II. JSON-GLib Reference">
15 <link rel="chapter" href="ch01.html" title="Data Types">
16 <link rel="part" href="json-streams.html" title="Part III. Reading and writing">
17 <link rel="chapter" href="ch02.html" title="Parser">
18 <link rel="chapter" href="ch03.html" title="Generator">
19 <link rel="part" href="json-advanced.html" title="Part IV. JSON-GLib Advanced API">
20 <link rel="part" href="json-tools.html" title="Part V. JSON-GLib Additional Reference">
21 <link rel="chapter" href="ch04.html" title="Object Hierarchy">
22 <link rel="index" href="ix01.html" title="Index">
23 <link rel="index" href="ix02.html" title="Index of deprecated symbols">
24 <link rel="index" href="ix03.html" title="Index of new symbols in 0.4">
25 <link rel="index" href="ix04.html" title="Index of new symbols in 0.6">
26 <link rel="index" href="ix05.html" title="Index of new symbols in 0.8">
27 <link rel="index" href="ix06.html" title="Index of new symbols in 0.10">
28 <link rel="glossary" href="annotation-glossary.html" title="Annotation Glossary">
29 <link rel="appendix" href="license.html" title="Appendix A. License">
30 </head>
31 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
32 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
33 <tr valign="middle">
34 <td><a accesskey="p" href="json-tools.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
35 <td><a accesskey="u" href="json-tools.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
36 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
37 <th width="100%" align="center">JSON-GLib Reference Manual</th>
38 <td><a accesskey="n" href="ch04.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
39 </tr>
40 <tr><td colspan="5" class="shortcuts">
41 <a href="#json-glib-Versioning-information.synopsis" class="shortcut">Top</a>
42                    | 
43                   <a href="#json-glib-Versioning-information.description" class="shortcut">Description</a>
44 </td></tr>
45 </table>
46 <div class="refentry" title="Versioning information">
47 <a name="json-glib-Versioning-information"></a><div class="titlepage"></div>
48 <div class="refnamediv"><table width="100%"><tr>
49 <td valign="top">
50 <h2><span class="refentrytitle"><a name="json-glib-Versioning-information.top_of_page"></a>Versioning information</span></h2>
51 <p>Versioning information — JSON-GLib version checking</p>
52 </td>
53 <td valign="top" align="right"></td>
54 </tr></table></div>
55 <div class="refsynopsisdiv" title="Synopsis">
56 <a name="json-glib-Versioning-information.synopsis"></a><h2>Synopsis</h2>
57 <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>
58 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-MINOR-VERSION:CAPS" title="JSON_MINOR_VERSION">JSON_MINOR_VERSION</a>
59 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-MICRO-VERSION:CAPS" title="JSON_MICRO_VERSION">JSON_MICRO_VERSION</a>
60
61 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-VERSION:CAPS" title="JSON_VERSION">JSON_VERSION</a>
62 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-VERSION-S:CAPS" title="JSON_VERSION_S">JSON_VERSION_S</a>
63 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-VERSION-HEX:CAPS" title="JSON_VERSION_HEX">JSON_VERSION_HEX</a>
64
65 #define             <a class="link" href="json-glib-Versioning-information.html#JSON-CHECK-VERSION:CAPS" title="JSON_CHECK_VERSION()">JSON_CHECK_VERSION</a>                  (major,minor,micro)
66 </pre>
67 </div>
68 <div class="refsect1" title="Description">
69 <a name="json-glib-Versioning-information.description"></a><h2>Description</h2>
70 <p>
71 JSON-GLib provides macros to check the version of the library
72 at compile-time</p>
73 </div>
74 <div class="refsect1" title="Details">
75 <a name="json-glib-Versioning-information.details"></a><h2>Details</h2>
76 <div class="refsect2" title="JSON_MAJOR_VERSION">
77 <a name="JSON-MAJOR-VERSION:CAPS"></a><h3>JSON_MAJOR_VERSION</h3>
78 <pre class="programlisting">#define JSON_MAJOR_VERSION              (0)
79 </pre>
80 <p>
81 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)</p>
82 </div>
83 <hr>
84 <div class="refsect2" title="JSON_MINOR_VERSION">
85 <a name="JSON-MINOR-VERSION:CAPS"></a><h3>JSON_MINOR_VERSION</h3>
86 <pre class="programlisting">#define JSON_MINOR_VERSION              (10)
87 </pre>
88 <p>
89 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)</p>
90 </div>
91 <hr>
92 <div class="refsect2" title="JSON_MICRO_VERSION">
93 <a name="JSON-MICRO-VERSION:CAPS"></a><h3>JSON_MICRO_VERSION</h3>
94 <pre class="programlisting">#define JSON_MICRO_VERSION              (4)
95 </pre>
96 <p>
97 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)</p>
98 </div>
99 <hr>
100 <div class="refsect2" title="JSON_VERSION">
101 <a name="JSON-VERSION:CAPS"></a><h3>JSON_VERSION</h3>
102 <pre class="programlisting">#define JSON_VERSION                    (0.10.4)
103 </pre>
104 <p>
105 Json version.</p>
106 </div>
107 <hr>
108 <div class="refsect2" title="JSON_VERSION_S">
109 <a name="JSON-VERSION-S:CAPS"></a><h3>JSON_VERSION_S</h3>
110 <pre class="programlisting">#define JSON_VERSION_S                  "0.10.4"
111 </pre>
112 <p>
113 Json version, encoded as a string, useful for printing and
114 concatenation.</p>
115 </div>
116 <hr>
117 <div class="refsect2" title="JSON_VERSION_HEX">
118 <a name="JSON-VERSION-HEX:CAPS"></a><h3>JSON_VERSION_HEX</h3>
119 <pre class="programlisting">#define             JSON_VERSION_HEX</pre>
120 <p>
121 Json version, encoded as an hexadecimal number, useful for
122 integer comparisons.</p>
123 </div>
124 <hr>
125 <div class="refsect2" title="JSON_CHECK_VERSION()">
126 <a name="JSON-CHECK-VERSION:CAPS"></a><h3>JSON_CHECK_VERSION()</h3>
127 <pre class="programlisting">#define             JSON_CHECK_VERSION(major,minor,micro)</pre>
128 <p>
129 Compile-time version checking. Evaluates to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the version
130 of Json is greater than the required one.</p>
131 <div class="variablelist"><table border="0">
132 <col align="left" valign="top">
133 <tbody>
134 <tr>
135 <td><p><span class="term"><em class="parameter"><code>major</code></em> :</span></p></td>
136 <td> required major version
137 </td>
138 </tr>
139 <tr>
140 <td><p><span class="term"><em class="parameter"><code>minor</code></em> :</span></p></td>
141 <td> required minor version
142 </td>
143 </tr>
144 <tr>
145 <td><p><span class="term"><em class="parameter"><code>micro</code></em> :</span></p></td>
146 <td> required micro version
147 </td>
148 </tr>
149 </tbody>
150 </table></div>
151 </div>
152 </div>
153 </div>
154 <div class="footer">
155 <hr>
156           Generated by GTK-Doc V1.13</div>
157 </body>
158 </html>