1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
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">
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">
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>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#json-glib-Versioning-information.synopsis" class="shortcut">Top</a>
26 <a href="#json-glib-Versioning-information.description" class="shortcut">Description</a>
29 <div class="refentry">
30 <a name="json-glib-Versioning-information"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
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>
36 <td valign="top" align="right"></td>
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>
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>
48 #define <a class="link" href="json-glib-Versioning-information.html#JSON-CHECK-VERSION:CAPS" title="JSON_CHECK_VERSION()">JSON_CHECK_VERSION</a> (major,
53 <div class="refsect1">
54 <a name="json-glib-Versioning-information.description"></a><h2>Description</h2>
56 JSON-GLib provides macros to check the version of the library
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)
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)
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)
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)
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)
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)
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)
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"
103 Json version, encoded as a string, useful for printing and
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>
112 Json version, encoded as an hexadecimal number, useful for
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>
121 Compile-time version checking. Evaluates to <code class="literal">TRUE</code> if the version
122 of Json is greater than the required one.
124 <div class="variablelist"><table border="0">
125 <col align="left" valign="top">
128 <td><p><span class="term"><em class="parameter"><code>major</code></em> :</span></p></td>
129 <td>required major version</td>
132 <td><p><span class="term"><em class="parameter"><code>minor</code></em> :</span></p></td>
133 <td>required minor version</td>
136 <td><p><span class="term"><em class="parameter"><code>micro</code></em> :</span></p></td>
137 <td>required micro version</td>
146 Generated by GTK-Doc V1.18.1</div>