summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-24 19:08:02 -0400
committermidipix <writeonce@midipix.org>2016-04-24 19:29:29 -0400
commit9f24d2dbde9818a5533b51dc329bfe5d018a3ddc (patch)
tree8ca8262c0c856efa8f08553643e0bcb8b627ff0c /src
parentbd9cc9fe11ad37b0364b12ccf4051d2616af39b4 (diff)
downloadslibtool-9f24d2dbde9818a5533b51dc329bfe5d018a3ddc.tar.bz2
slibtool-9f24d2dbde9818a5533b51dc329bfe5d018a3ddc.tar.xz
driver: added struct slbt_source_version, slbt_source_version().
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 1c6343f..f65460a 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -11,9 +11,17 @@
#define ARGV_DRIVER
#include <slibtool/slibtool.h>
+#include "slibtool_version.h"
#include "slibtool_driver_impl.h"
#include "argv/argv.h"
+/* package info */
+static const struct slbt_source_version slbt_src_version = {
+ SLBT_TAG_VER_MAJOR,
+ SLBT_TAG_VER_MINOR,
+ SLBT_TAG_VER_PATCH,
+ SLIBTOOL_GIT_VERSION
+};
/* flavor settings */
#define SLBT_FLAVOR_SETTINGS(flavor,bfmt,arp,ars,dsop,dsos,exep,exes,impp,imps,ldenv) \
@@ -1021,3 +1029,8 @@ int slbt_set_alternate_host(
return 0;
}
+
+const struct slbt_source_version * slbt_source_version(void)
+{
+ return &slbt_src_version;
+}