mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-10 01:49:49 +01:00
pluginapi: fixup get_hash functions
This commit is contained in:
parent
b95c0c318e
commit
935c90915a
2 changed files with 9 additions and 1 deletions
|
@ -9,6 +9,10 @@
|
||||||
|
|
||||||
#include <sstream>
|
#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) {
|
APICALL bool HyprlandAPI::registerCallbackStatic(HANDLE handle, const std::string& event, HOOK_CALLBACK_FN* fn) {
|
||||||
auto* const PLUGIN = g_pPluginSystem->getPluginByHandle(handle);
|
auto* const PLUGIN = g_pPluginSystem->getPluginByHandle(handle);
|
||||||
|
|
||||||
|
|
|
@ -280,7 +280,11 @@ namespace HyprlandAPI {
|
||||||
|
|
||||||
This function will end up in both hyprland and any/all plugins,
|
This function will end up in both hyprland and any/all plugins,
|
||||||
and can be found by a simple dlsym()
|
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;
|
return GIT_COMMIT_HASH;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue