summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-25 08:59:10 -0400
committermidipix <writeonce@midipix.org>2016-04-25 08:59:10 -0400
commitf836238670793d801b09c5a5423dc2ffec3dd4a7 (patch)
tree1818f914cd988e8cb5ad44b96e5e4501339afe56 /src
parentd93e2d84fd3dd90592cc23cd5998ca803726cee9 (diff)
downloadapimagic-f836238670793d801b09c5a5423dc2ffec3dd4a7.tar.bz2
apimagic-f836238670793d801b09c5a5423dc2ffec3dd4a7.tar.xz
driver: added struct amgc_source_version, amgc_source_version().
Diffstat (limited to 'src')
-rw-r--r--src/driver/amgc_driver_ctx.c14
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;
+}