ne_version_match3
Library versioning
Usage
#include <ne_utils.h>
int ne_version_match(int major, int minor);
const char *ne_version_string(void);
const char *ne_version_library(void);
Overview
The ne_version_match function returns zero if the library version is backwards-compatible with the version given in the major and minor parameters.
The ne_version_string function returns a string giving the library version and build information.
The ne_version_library function returns a string giving the library version number alone, for example "0.37.0".
Examples
To require a version of neon which is backwards-compatible with version 1.2.0:
if (ne_version_match(1, 2)) {
printf("Library version out of date: 1.2 required, found %s.",
ne_version_string());
exit(1);
}
Releases
11 releases since Debian 4.0 (Etch); the text changed 9 times.