summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
+}