-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
# 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
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
# 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
+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
free(nm);
return UB_NOERROR;
}
+
+const char* ub_version(void)
+{
+ return PACKAGE_VERSION;
+}
*/
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