summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-25 09:20:57 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:42 -0500
commitb7025c26792a6f56fb96288dc3bedc74b356a001 (patch)
tree58807ce0e4c0e49f413655064a8f03e18c56fbd6 /src
parent781ac1bd0f2df4523b1a715befd1ae63d92afecc (diff)
downloadperk-b7025c26792a6f56fb96288dc3bedc74b356a001.tar.bz2
perk-b7025c26792a6f56fb96288dc3bedc74b356a001.tar.xz
driver: added struct pe_source_version, pe_source_version().
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;
+}