summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-24 19:44:03 -0400
committermidipix <writeonce@midipix.org>2016-04-24 19:51:42 -0400
commit1f115d726147285da256a499abc1fe98b3726453 (patch)
tree674eda491b08e1079fef4bba4472829c24e9a4cd /src
parentb2d0f49b5a6349b7ec93b3a37f81757f60532863 (diff)
downloadsofort-1f115d726147285da256a499abc1fe98b3726453.tar.bz2
sofort-1f115d726147285da256a499abc1fe98b3726453.tar.xz
driver: added struct sfrt_source_version, sfrt_source_version().
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;
+}