diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-10-29 21:21:54 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-10-29 21:21:54 +0000 |
| commit | 935c90915a8a143d1759c2bb6f0593a8aee6812b (patch) | |
| tree | 835456f1f2d2a16550200769442952b5ca929534 /src/plugins/PluginAPI.cpp | |
| parent | b95c0c318e02a17be3eb7271b02141ab5c22a04f (diff) | |
pluginapi: fixup get_hash functions
Diffstat (limited to 'src/plugins/PluginAPI.cpp')
| -rw-r--r-- | src/plugins/PluginAPI.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/PluginAPI.cpp b/src/plugins/PluginAPI.cpp index a873644e..1395728d 100644 --- a/src/plugins/PluginAPI.cpp +++ b/src/plugins/PluginAPI.cpp @@ -9,6 +9,10 @@ #include <sstream> +APICALL const char* __hyprland_api_get_hash() { + return GIT_COMMIT_HASH; +} + APICALL bool HyprlandAPI::registerCallbackStatic(HANDLE handle, const std::string& event, HOOK_CALLBACK_FN* fn) { auto* const PLUGIN = g_pPluginSystem->getPluginByHandle(handle); |
