Blame json_c_version.h

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