diff options
author | midipix <writeonce@midipix.org> | 2016-04-25 08:59:10 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-25 08:59:10 -0400 |
commit | f836238670793d801b09c5a5423dc2ffec3dd4a7 (patch) | |
tree | 1818f914cd988e8cb5ad44b96e5e4501339afe56 /src/driver | |
parent | d93e2d84fd3dd90592cc23cd5998ca803726cee9 (diff) | |
download | apimagic-f836238670793d801b09c5a5423dc2ffec3dd4a7.tar.bz2 apimagic-f836238670793d801b09c5a5423dc2ffec3dd4a7.tar.xz |
driver: added struct amgc_source_version, amgc_source_version().
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/amgc_driver_ctx.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 <apimagic/apimagic.h> +#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; +} |