From 935c90915a8a143d1759c2bb6f0593a8aee6812b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 29 Oct 2023 21:21:54 +0000 Subject: pluginapi: fixup get_hash functions --- src/plugins/PluginAPI.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/PluginAPI.cpp') 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 +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); -- cgit v1.2.3