summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/sfrt_driver_ctx.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/driver/sfrt_driver_ctx.c b/src/driver/sfrt_driver_ctx.c
index f582a3e..2d3a29b 100644
--- a/src/driver/sfrt_driver_ctx.c
+++ b/src/driver/sfrt_driver_ctx.c
@@ -5,9 +5,18 @@
#define ARGV_DRIVER
#include <sofort/sofort.h>
+#include "sofort_version.h"
#include "sofort_driver_impl.h"
#include "argv/argv.h"
+/* package info */
+static const struct sfrt_source_version sfrt_src_version = {
+ SFRT_TAG_VER_MAJOR,
+ SFRT_TAG_VER_MINOR,
+ SFRT_TAG_VER_PATCH,
+ SOFORT_GIT_VERSION
+};
+
struct sfrt_driver_ctx_alloc {
struct argv_meta * meta;
struct sfrt_driver_ctx_impl ctx;
@@ -185,3 +194,8 @@ void sfrt_free_driver_ctx(struct sfrt_driver_ctx * ctx)
sfrt_free_driver_ctx_impl(ictx);
}
}
+
+const struct sfrt_source_version * sfrt_source_version(void)
+{
+ return &sfrt_src_version;
+}