1NE_VERSION_MATCH(3)           neon API reference           NE_VERSION_MATCH(3)
2
3
4

NAME

6       ne_version_match, ne_version_string - library versioning
7

SYNOPSIS

9       #include <ne_utils.h>
10
11       int ne_version_match(int major, int minor);
12
13       const char *ne_version_string(void);
14

DESCRIPTION

16       The ne_version_match function returns non-zero if the library version
17       is not of major version major, or the minor version is less than minor.
18       For neon versions 0.x, every minor version is assumed to be
19       incompatible with every other minor version.
20
21       The ne_version_string function returns a string giving the library
22       version.
23

EXAMPLES

25       To require neon 1.x, version 1.2 or later:
26
27           if (ne_version_match(1, 2)) {
28               printf("Library version out of date: 1.2 required, found %s.",
29                      ne_version_string());
30               exit(1);
31           }
32

AUTHOR

34       Joe Orton <neon@lists.manyfish.co.uk>
35           Author.
36
38neon 0.30.0                      31 July 2013              NE_VERSION_MATCH(3)
Impressum