2 * Copyright (c) 2012,2017,2019,2020 Eric Hawicz
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_
19 #define JSON_C_MAJOR_VERSION 0
20 #define JSON_C_MINOR_VERSION 15
21 #define JSON_C_MICRO_VERSION 0
22 #define JSON_C_VERSION_NUM \
23 ((JSON_C_MAJOR_VERSION << 16) | (JSON_C_MINOR_VERSION << 8) | JSON_C_MICRO_VERSION)
24 #define JSON_C_VERSION "0.15"
28 #define JSON_EXPORT __declspec(dllexport)
30 #define JSON_EXPORT extern
36 * @return the version of the json-c library as a string
38 JSON_EXPORT const char *json_c_version(void); /* Returns JSON_C_VERSION */
41 * The json-c version encoded into an int, with the low order 8 bits
42 * being the micro version, the next higher 8 bits being the minor version
43 * and the next higher 8 bits being the major version.
44 * For example, 7.12.99 would be 0x00070B63.
46 * @see JSON_C_VERSION_NUM
47 * @return the version of the json-c library as an int
49 JSON_EXPORT int json_c_version_num(void); /* Returns JSON_C_VERSION_NUM */