summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-06-11 13:57:38 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-06-11 13:57:38 +0100
commite9775af6c93dc6137ecdf43f01d88cc628cfebce (patch)
tree078835cd7511aaca7fe464d338c8f4e335ae7782
parenta45bca677399db75a5541972ceaa74e292c63d22 (diff)
downloadjson-glib-e9775af6c93dc6137ecdf43f01d88cc628cfebce.tar.gz
doc: Add missing symbol
-rw-r--r--json-glib/json-version.h.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/json-glib/json-version.h.in b/json-glib/json-version.h.in
index 3bd3490..65c343e 100644
--- a/json-glib/json-version.h.in
+++ b/json-glib/json-version.h.in
@@ -64,6 +64,15 @@
*/
#define JSON_VERSION_S "@JSON_VERSION@"
+/**
+ * JSON_ENCODE_VERSION:
+ * @major: (type int): the major version to encode
+ * @minor: (type int): the minor version to encode
+ * @micro: (type int): the micro version to encode
+ *
+ * Encodes a JSON-GLib version in an hexadecimal number, useful for
+ * integer comparisons.
+ */
#define JSON_ENCODE_VERSION(major,minor,micro) \
((major) << 24 | (minor) << 16 | (micro) << 8)