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