From f305f28c8dbac109c1038d430c7125222ee90703 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 2 Mar 2018 19:02:48 -0800 Subject: fixes #254 nngcat should have a --version option We only add a basic --version (also -V). I'm still trying to figure out how to convince cmake to emit its compilation flags into a file where we can use them for output. --- src/nng.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/nng.h') diff --git a/src/nng.h b/src/nng.h index e2cdb8fa..7615785d 100644 --- a/src/nng.h +++ b/src/nng.h @@ -47,9 +47,9 @@ extern "C" { // may not necessarily match the ABI versions. Right now at // version 0, you should not be making any forward compatibility // assumptions. -#define NNG_MAJOR_VERSION 0 -#define NNG_MINOR_VERSION 5 -#define NNG_PATCH_VERSION 0 +#define NNG_MAJOR_VERSION 0 +#define NNG_MINOR_VERSION 5 +#define NNG_PATCH_VERSION 0 // Types common to nng. typedef uint32_t nng_socket; @@ -698,6 +698,8 @@ NNG_DECL void nng_url_free(nng_url *); // nng_url_clone clones a URL structure. NNG_DECL int nng_url_clone(nng_url **, const nng_url *); +// nng_version returns the library version as a human readable string. +NNG_DECL const char *nng_version(void); #ifdef __cplusplus } #endif -- cgit v1.2.3-70-g09d2