diff options
author | Vaxry <[email protected]> | 2024-04-05 00:44:21 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-04-05 00:46:37 +0100 |
commit | 1ae592fcd94b86c4fee6b91786dfdc78724930fe (patch) | |
tree | 40b566cbcf0aa1c92f28c9ab4ff8e91b5639a8ba /src/plugins | |
parent | 51b3148f097f7cd371622aff5c144ca6ccbeda92 (diff) | |
download | Hyprland-1ae592fcd94b86c4fee6b91786dfdc78724930fe.tar.gz Hyprland-1ae592fcd94b86c4fee6b91786dfdc78724930fe.zip |
hyprpm: add support for minimum versions
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/PluginAPI.cpp | 2 | ||||
-rw-r--r-- | src/plugins/PluginAPI.hpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/PluginAPI.cpp b/src/plugins/PluginAPI.cpp index 494aa640..78870666 100644 --- a/src/plugins/PluginAPI.cpp +++ b/src/plugins/PluginAPI.cpp @@ -364,7 +364,7 @@ APICALL SVersionInfo HyprlandAPI::getHyprlandVersion(HANDLE handle) { if (!PLUGIN) return {}; - return {GIT_COMMIT_HASH, GIT_TAG, GIT_DIRTY != std::string(""), GIT_BRANCH, GIT_COMMIT_MESSAGE}; + return {GIT_COMMIT_HASH, GIT_TAG, GIT_DIRTY != std::string(""), GIT_BRANCH, GIT_COMMIT_MESSAGE, GIT_COMMITS}; } APICALL std::shared_ptr<SHyprCtlCommand> HyprlandAPI::registerHyprCtlCommand(HANDLE handle, SHyprCtlCommand cmd) { diff --git a/src/plugins/PluginAPI.hpp b/src/plugins/PluginAPI.hpp index a7a998b4..575fef40 100644 --- a/src/plugins/PluginAPI.hpp +++ b/src/plugins/PluginAPI.hpp @@ -49,6 +49,7 @@ struct SVersionInfo { bool dirty = false; std::string branch; std::string message; + std::string commits; }; #define APICALL extern "C" |