ne_version_match, ne_version_string, ne_version_library
library versioning
- Provided by: libneon27-gnutls-dev (Version: 0.37.1-1build1)
- Source: neon27
- Report a bug
library versioning
#include <ne_utils.h>
int ne_version_match(int major, int minor);
const char *ne_version_string(void);
const char *ne_version_library(void);
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".
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);
}
The ne_version_library function is available in neon 0.37.0 and later.
Copyright © 2001-2026 Joe Orton