libnm: add public macro NM_VERSION for the current build-time version of libnm

System Internals / NetworkManager - Thomas Haller [redhat.com] - 20 December 2016 10:51 EST



###

diff --git a/shared/nm-utils/nm-macros-internal.h b/shared/nm-utils/nm-macros-internal.h
index 2449917..5044c13 100644
--- a/shared/nm-utils/nm-macros-internal.h
+++ b/shared/nm-utils/nm-macros-internal.h
@@ -692,6 +692,7 @@ nm_decode_version (guint version, guint *major, guint *minor, guint *micro) {
*minor = (version & 0x0000FF00u) >> 8;
*micro = (version & 0x000000FFu);
}
+
/*****************************************************************************/

/* taken from systemd's DECIMAL_STR_MAX()
diff --git a/shared/nm-version-macros.h.in b/shared/nm-version-macros.h.in
index bc76812..169e495 100644
--- a/shared/nm-version-macros.h.in
+++ b/shared/nm-version-macros.h.in
@@ -74,4 +74,6 @@
#define NM_VERSION_CUR_STABLE NM_VERSION_1_4
#define NM_VERSION_NEXT_STABLE NM_VERSION_1_6

+#define NM_VERSION NM_ENCODE_VERSION (NM_MAJOR_VERSION, NM_MINOR_VERSION, NM_MICRO_VERSION)
+
#endif /* __NM_VERSION_MACROS_H__ */

d2b9f37 libnm: add public macro NM_VERSION for the current build-time version of libnm
shared/nm-utils/nm-macros-internal.h | 1 +
shared/nm-version-macros.h.in | 2 ++
2 files changed, 3 insertions(+)

Upstream: cgit.freedesktop.org


  • Share