From cd6cb14c08a4a974af8d93e8d1f8ddf341238b5f Mon Sep 17 00:00:00 2001 From: Lorenzo Susini Date: Tue, 26 Sep 2023 10:20:28 +0000 Subject: [PATCH] update(userspace/engine): convert engine version to semver string Signed-off-by: Lorenzo Susini --- userspace/engine/falco_engine.cpp | 6 +++--- userspace/engine/falco_engine.h | 2 +- userspace/engine/falco_engine_version.h | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/userspace/engine/falco_engine.cpp b/userspace/engine/falco_engine.cpp index 1b0f3d73..16b8f28c 100644 --- a/userspace/engine/falco_engine.cpp +++ b/userspace/engine/falco_engine.cpp @@ -75,9 +75,9 @@ falco_engine::~falco_engine() m_sources.clear(); } -uint32_t falco_engine::engine_version() +std::string falco_engine::engine_version() { - return (uint32_t) FALCO_ENGINE_VERSION; + return FALCO_ENGINE_VERSION; } const falco_source* falco_engine::find_source(const std::string& name) const @@ -567,7 +567,7 @@ void falco_engine::describe_rule(std::string *rule, const std::vector