summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/pe_driver_ctx.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index c580ca7..59e5c35 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -12,9 +12,18 @@
#include <perk/perk.h>
#include <perk/perk_output.h>
+#include "perk_version.h"
#include "perk_driver_impl.h"
#include "argv/argv.h"
+/* package info */
+static const struct pe_source_version pe_src_version = {
+ PERK_TAG_VER_MAJOR,
+ PERK_TAG_VER_MINOR,
+ PERK_TAG_VER_PATCH,
+ PERK_GIT_VERSION
+};
+
struct pe_driver_ctx_alloc {
struct argv_meta * meta;
struct pe_driver_ctx_impl ctx;
@@ -228,3 +237,8 @@ void pe_free_driver_ctx(struct pe_driver_ctx * ctx)
pe_free_driver_ctx_impl(ictx);
}
}
+
+const struct pe_source_version * pe_source_version(void)
+{
+ return &pe_src_version;
+}