]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Added ub_version(). API version increase, with (binary) backwards
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 12 Jan 2012 13:52:38 +0000 (13:52 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 12 Jan 2012 13:52:38 +0000 (13:52 +0000)
  compatibility for the previous version.

git-svn-id: file:///svn/unbound/trunk@2584 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
configure.ac
doc/Changelog
libunbound/libunbound.c
libunbound/unbound.h

index 9cf831fa55464ad46c4c6519bbe4a8949a8b2e98..bf20d9c6d774dddf539956727f369ea4499151e1 100755 (executable)
--- a/configure
+++ b/configure
@@ -2401,9 +2401,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
-LIBUNBOUND_CURRENT=2
-LIBUNBOUND_REVISION=15
-LIBUNBOUND_AGE=0
+LIBUNBOUND_CURRENT=3
+LIBUNBOUND_REVISION=0
+LIBUNBOUND_AGE=1
 # 1.0.0 had 0:12:0
 # 1.0.1 had 0:13:0
 # 1.0.2 had 0:14:0
@@ -2433,7 +2433,7 @@ LIBUNBOUND_AGE=0
 # 1.4.13 had 2:13:0
 # and 1.4.13p1 and 1.4.13.p2
 # 1.4.14 had 2:14:0
-# 1.4.15 had 2:15:0
+# 1.4.15 had 3:0:1 # adds ub_version()
 
 #   Current  -- the number of the binary API that we're implementing
 #   Revision -- which iteration of the implementation of the binary
index 35e113e510ada08b452af9585add625853cfebe5..26fa2848f6c063d5cd2372e084614355dfbd401c 100644 (file)
@@ -8,9 +8,9 @@ sinclude(ac_pkg_swig.m4)
 
 AC_INIT(unbound, 1.4.15, unbound-bugs@nlnetlabs.nl, unbound)
 
-LIBUNBOUND_CURRENT=2
-LIBUNBOUND_REVISION=15
-LIBUNBOUND_AGE=0
+LIBUNBOUND_CURRENT=3
+LIBUNBOUND_REVISION=0
+LIBUNBOUND_AGE=1
 # 1.0.0 had 0:12:0
 # 1.0.1 had 0:13:0
 # 1.0.2 had 0:14:0
@@ -40,7 +40,7 @@ LIBUNBOUND_AGE=0
 # 1.4.13 had 2:13:0
 # and 1.4.13p1 and 1.4.13.p2
 # 1.4.14 had 2:14:0
-# 1.4.15 had 2:15:0
+# 1.4.15 had 3:0:1 # adds ub_version()
 
 #   Current  -- the number of the binary API that we're implementing
 #   Revision -- which iteration of the implementation of the binary
index ff341e5e14913bdc78dd017ae0e964f3678713a9..688b14aa6904f284a5fcd43a9b467624c0ab1781 100644 (file)
@@ -1,3 +1,7 @@
+12 January 2012: Wouter
+       - Added ub_version().  API version increase, with (binary) backwards
+         compatibility for the previous version.
+
 10 January 2012: Wouter
        - Fix bug #425: unbound reports wrong TTL in reply, it reports a TTL
          that would be permissible by the RFCs but it is not the TTL in the
index e75eb1c7ec07d144967cd8ab2ef919bcc09339f5..10d00ddc521d32f0e9b454f6724a42c5c87a6a71 100644 (file)
@@ -1117,3 +1117,8 @@ int ub_ctx_data_remove(struct ub_ctx* ctx, char *data)
        free(nm);
        return UB_NOERROR;
 }
+
+const char* ub_version(void)
+{
+       return PACKAGE_VERSION;
+}
index a17742ca518799ad50cb657d29f39a93022420be..085f9f53415f1ae5d98e56a9ab6bb4ea15b22107 100644 (file)
@@ -543,6 +543,12 @@ int ub_ctx_data_add(struct ub_ctx* ctx, char *data);
  */
 int ub_ctx_data_remove(struct ub_ctx* ctx, char *data);
 
+/**
+ * Get a version string from the libunbound implementation.
+ * @return a static constant string with the version number.
+ */
+const char* ub_version(void);
+
 #ifdef __cplusplus
 }
 #endif