summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
+}