From 26498daf70041bc96f4dd1817f82d8bee3a30067 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 25 Apr 2016 09:13:24 -0400 Subject: driver: added struct mdso_source_version, mdso_source_version(). --- src/driver/mdso_driver_ctx.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/driver') 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 #include #include +#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; +} -- cgit v1.2.3