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.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/plugins/PluginAPI.hpp') diff --git a/src/plugins/PluginAPI.hpp b/src/plugins/PluginAPI.hpp index 30c6b4c7..a3792fe9 100644 --- a/src/plugins/PluginAPI.hpp +++ b/src/plugins/PluginAPI.hpp @@ -280,7 +280,11 @@ namespace HyprlandAPI { This function will end up in both hyprland and any/all plugins, and can be found by a simple dlsym() + + _get_hash() is server, + _get_client_hash() is client. */ -APICALL inline EXPORT const char* __hyprland_api_get_hash() { +APICALL EXPORT const char* __hyprland_api_get_hash(); +APICALL inline EXPORT const char* __hyprland_api_get_client_hash() { return GIT_COMMIT_HASH; } -- cgit v1.2.3