/*
- * netlink/version.h Compile Time Versioning Information
+ * netlink/version.h Versioning Information
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#ifndef NETLINK_VERSION_H_
#define NETLINK_VERSION_H_
+/* Compile Time Versioning Information */
+
#define LIBNL_STRING "@PACKAGE_STRING@"
#define LIBNL_VERSION "@PACKAGE_VERSION@"
#define LIBNL_REVISION @LT_REVISION@
#define LIBNL_AGE @LT_AGE@
+/* Run-time version information */
+
+extern const int nl_ver_num;
+extern const int nl_ver_maj;
+extern const int nl_ver_min;
+extern const int nl_ver_mic;
+
#endif
libnl_3_la_SOURCES = \
addr.c attr.c cache.c cache_mngr.c cache_mngt.c data.c \
- error.c handlers.c msg.c nl.c object.c socket.c utils.c
+ error.c handlers.c msg.c nl.c object.c socket.c utils.c \
+ version.c
libnl_genl_3_la_LIBADD = libnl-3.la
libnl_genl_3_la_SOURCES = \
--- /dev/null
+/*
+ * lib/version.c Run-time version information
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation version 2.1
+ * of the License.
+ *
+ * Copyright (c) 2003-2012 Thomas Graf <tgraf@suug.ch>
+ */
+
+/**
+ * @ingroup core
+ * @defgroup utils Utilities
+ *
+ * Run-time version information
+ *
+ * @{
+ */
+
+
+/**
+ * @name Run-time version information
+ * @{
+ */
+
+#include <netlink/version.h>
+
+const int nl_ver_num = LIBNL_VER_NUM;
+const int nl_ver_maj = LIBNL_VER_MAJ;
+const int nl_ver_min = LIBNL_VER_MIN;
+const int nl_ver_mic = LIBNL_VER_MIC;
+
+/** @} */
+
+/** @} */