From f836238670793d801b09c5a5423dc2ffec3dd4a7 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 25 Apr 2016 08:59:10 -0400 Subject: driver: added struct amgc_source_version, amgc_source_version(). --- src/driver/amgc_driver_ctx.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/driver/amgc_driver_ctx.c b/src/driver/amgc_driver_ctx.c index d774307..ba753a1 100644 --- a/src/driver/amgc_driver_ctx.c +++ b/src/driver/amgc_driver_ctx.c @@ -22,9 +22,18 @@ #define ARGV_DRIVER #include +#include "apimagic_version.h" #include "apimagic_driver_impl.h" #include "argv/argv.h" +/* package info */ +static const struct amgc_source_version amgc_src_version = { + AMGC_TAG_VER_MAJOR, + AMGC_TAG_VER_MINOR, + AMGC_TAG_VER_PATCH, + APIMAGIC_GIT_VERSION +}; + struct amgc_driver_ctx_alloc { struct argv_meta * meta; struct amgc_action * actions; @@ -283,3 +292,8 @@ void amgc_free_driver_ctx(struct amgc_driver_ctx * ctx) amgc_free_driver_ctx_impl(ictx); } } + +const struct amgc_source_version * amgc_source_version(void) +{ + return &amgc_src_version; +} -- cgit v1.2.3