1 /* 2 * Copyright (c) 2012,2017,2019,2020 Eric Hawicz 3 * 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. 6 */ 7 8 /** 9 * @file 10 * @brief Methods for retrieving the json-c version. 11 */ 12 #ifndef _json_c_version_h_ 13 #define _json_c_version_h_ 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 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" 25 26 #ifndef JSON_EXPORT 27 #if defined(_MSC_VER) 28 #define JSON_EXPORT __declspec(dllexport) 29 #else 30 #define JSON_EXPORT extern 31 #endif 32 #endif 33 34 /** 35 * @see JSON_C_VERSION 36 * @return the version of the json-c library as a string 37 */ 38 JSON_EXPORT const char *json_c_version(void); /* Returns JSON_C_VERSION */ 39 40 /** 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. 45 * 46 * @see JSON_C_VERSION_NUM 47 * @return the version of the json-c library as an int 48 */ 49 JSON_EXPORT int json_c_version_num(void); /* Returns JSON_C_VERSION_NUM */ 50 51 #ifdef __cplusplus 52 } 53 #endif 54 55 #endif 56
This page was automatically generated by LXR 0.3.1. • OpenWrt