You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

json_c_version.h 1.3 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (c) 2012,2017 Eric Haszlakiewicz
  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. * @file
  9. * @brief Methods for retrieving the json-c version.
  10. */
  11. #ifndef _json_c_version_h_
  12. #define _json_c_version_h_
  13. #define JSON_C_MAJOR_VERSION 0
  14. #define JSON_C_MINOR_VERSION 14
  15. #define JSON_C_MICRO_VERSION 99
  16. #define JSON_C_VERSION_NUM \
  17. ((JSON_C_MAJOR_VERSION << 16) | (JSON_C_MINOR_VERSION << 8) | JSON_C_MICRO_VERSION)
  18. #define JSON_C_VERSION "0.14.99"
  19. #ifndef JSON_EXPORT
  20. #if defined(_MSC_VER)
  21. #define JSON_EXPORT __declspec(dllexport)
  22. #else
  23. #define JSON_EXPORT extern
  24. #endif
  25. #endif
  26. /**
  27. * @see JSON_C_VERSION
  28. * @return the version of the json-c library as a string
  29. */
  30. JSON_EXPORT const char *json_c_version(void); /* Returns JSON_C_VERSION */
  31. /**
  32. * The json-c version encoded into an int, with the low order 8 bits
  33. * being the micro version, the next higher 8 bits being the minor version
  34. * and the next higher 8 bits being the major version.
  35. * For example, 7.12.99 would be 0x00070B63.
  36. *
  37. * @see JSON_C_VERSION_NUM
  38. * @return the version of the json-c library as an int
  39. */
  40. JSON_EXPORT int json_c_version_num(void); /* Returns JSON_C_VERSION_NUM */
  41. #endif