1NE_VERSION_MATCH(3) neon API reference NE_VERSION_MATCH(3)
2
3
4
6 ne_version_match, ne_version_string - library versioning
7
9 #include <ne_utils.h>
10
11 int ne_version_match(int major, int minor);
12
13 const char *ne_version_string(void);
14
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
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
34 Joe Orton
35 Author.
36
38neon 0.32.5 21 January 2023 NE_VERSION_MATCH(3)