summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-25 09:13:24 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:39 -0500
commit26498daf70041bc96f4dd1817f82d8bee3a30067 (patch)
tree1f3510dceafe46539902613d48e5f59c481ccf3a /src
parent5694f736993d6b328e45f5cae60736b26f00fdce (diff)
downloadmdso-26498daf70041bc96f4dd1817f82d8bee3a30067.tar.bz2
mdso-26498daf70041bc96f4dd1817f82d8bee3a30067.tar.xz
driver: added struct mdso_source_version, mdso_source_version().
Diffstat (limited to 'src')
-rw-r--r--src/driver/mdso_driver_ctx.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c
index d3b00cf..65d4ba2 100644
--- a/src/driver/mdso_driver_ctx.c
+++ b/src/driver/mdso_driver_ctx.c
@@ -16,9 +16,18 @@
#include <mdso/mdso.h>
#include <mdso/mdso_output.h>
#include <mdso/mdso_specs.h>
+#include "mdso_version.h"
#include "mdso_driver_impl.h"
#include "argv/argv.h"
+/* package info */
+static const struct mdso_source_version mdso_src_version = {
+ MDSO_TAG_VER_MAJOR,
+ MDSO_TAG_VER_MINOR,
+ MDSO_TAG_VER_PATCH,
+ MDSO_GIT_VERSION
+};
+
struct mdso_driver_ctx_alloc {
struct argv_meta * meta;
struct mdso_driver_ctx_impl ctx;
@@ -289,3 +298,8 @@ void mdso_free_driver_ctx(struct mdso_driver_ctx * ctx)
mdso_free_driver_ctx_impl(ictx);
}
}
+
+const struct mdso_source_version * mdso_source_version(void)
+{
+ return &mdso_src_version;
+}