json-c  0.13.1
Macros | Functions
json_c_version.h File Reference

Methods for retrieving the json-c version. More...

Macros

#define JSON_C_MAJOR_VERSION   0
 
#define JSON_C_MINOR_VERSION   13
 
#define JSON_C_MICRO_VERSION   01
 
#define JSON_C_VERSION_NUM
 
#define JSON_C_VERSION   "0.13.1"
 

Functions

const char * json_c_version (void)
 
int json_c_version_num (void)
 

Detailed Description

Methods for retrieving the json-c version.

Macro Definition Documentation

#define JSON_C_MAJOR_VERSION   0
#define JSON_C_MICRO_VERSION   01
#define JSON_C_MINOR_VERSION   13
#define JSON_C_VERSION   "0.13.1"
#define JSON_C_VERSION_NUM
Value:
#define JSON_C_MICRO_VERSION
Definition: json_c_version.h:17
#define JSON_C_MINOR_VERSION
Definition: json_c_version.h:16
#define JSON_C_MAJOR_VERSION
Definition: json_c_version.h:15

Function Documentation

const char* json_c_version ( void  )
See also
JSON_C_VERSION
Returns
the version of the json-c library as a string
int json_c_version_num ( void  )

The json-c version encoded into an int, with the low order 8 bits being the micro version, the next higher 8 bits being the minor version and the next higher 8 bits being the major version. For example, 7.12.99 would be 0x00070B63.

See also
JSON_C_VERSION_NUM
Returns
the version of the json-c library as an int