]> granicus.if.org Git - libnl/commitdiff
Provide libnl version in <netlink/version.h>
authorThomas Graf <tgr@lsx.localdomain>
Wed, 30 Apr 2008 13:43:42 +0000 (15:43 +0200)
committerThomas Graf <tgr@lsx.localdomain>
Wed, 30 Apr 2008 13:43:42 +0000 (15:43 +0200)
configure.in
include/netlink/netlink.h
include/netlink/version.h [new file with mode: 0644]

index 45981c1c51e5e56b2af472f8f4e0d113ad259cce..dfb549b2da40211bd256f0aaaff1bff23f183164 100644 (file)
@@ -34,4 +34,4 @@ AC_CHECK_LIB(m, pow,
 LIBNL_LIB="$LIBM"
 AC_SUBST(LIBNL_LIB)
 
-AC_OUTPUT([Makefile.opts libnl-1.pc doc/Doxyfile])
+AC_OUTPUT([Makefile.opts libnl-1.pc doc/Doxyfile include/netlink/version.h])
index 2cdf3459a15c9bf7ccd834a4d028a93283c189f6..bfae9094cc7d20bceef96dcbd5c56c6a902c0f6c 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/rtnetlink.h>
 #include <linux/genetlink.h>
 #include <linux/netfilter/nfnetlink.h>
+#include <netlink/version.h>
 #include <netlink/types.h>
 #include <netlink/handlers.h>
 #include <netlink/socket.h>
diff --git a/include/netlink/version.h b/include/netlink/version.h
new file mode 100644 (file)
index 0000000..6e0178c
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * netlink/version.h   Compile Time Versioning 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) 2008 Thomas Graf <tgraf@suug.ch>
+ */
+
+#ifndef NETLINK_VERSION_H_
+#define NETLINK_VERSION_H_
+
+#define LIBNL_STRING "libnl 1.2"
+#define LIBNL_VERSION "1.2"
+
+#endif