ne_version_match(3)

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.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9–10
  7. 11
  8. 12
  9. 13
  10. Arch

History

The ne_version_library function is available in neon 0.37.0 and later.

From neon 0.37.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.