2 * Copyright (c) 2012,2017 Eric Haszlakiewicz
4 * This library is free software; you can redistribute it and/or modify
5 * it under the terms of the MIT license. See COPYING for details.
10 * @brief Methods for retrieving the json-c version.
12 #ifndef _json_c_version_h_
13 #define _json_c_version_h_
15 #define JSON_C_MAJOR_VERSION 0
16 #define JSON_C_MINOR_VERSION 13
17 #define JSON_C_MICRO_VERSION 01
18 #define JSON_C_VERSION_NUM ((JSON_C_MAJOR_VERSION << 16) | \
19 (JSON_C_MINOR_VERSION << 8) | \
21 #define JSON_C_VERSION "0.13.1"
25 * @return the version of the json-c library as a string
27 const char *json_c_version(void); /* Returns JSON_C_VERSION */
30 * The json-c version encoded into an int, with the low order 8 bits
31 * being the micro version, the next higher 8 bits being the minor version
32 * and the next higher 8 bits being the major version.
33 * For example, 7.12.99 would be 0x00070B63.
35 * @see JSON_C_VERSION_NUM
36 * @return the version of the json-c library as an int
38 int json_c_version_num(void); /* Returns JSON_C_VERSION_NUM */