diff options
author | midipix <writeonce@midipix.org> | 2016-04-24 19:08:02 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-24 19:29:29 -0400 |
commit | 9f24d2dbde9818a5533b51dc329bfe5d018a3ddc (patch) | |
tree | 8ca8262c0c856efa8f08553643e0bcb8b627ff0c /src | |
parent | bd9cc9fe11ad37b0364b12ccf4051d2616af39b4 (diff) | |
download | slibtool-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.c | 13 |
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; +} |