Hyprland/src/helpers/MiscFunctions.cpp

11 lines
374 B
C++
Raw Normal View History

2022-03-28 16:10:30 +02:00
#include "MiscFunctions.hpp"
#include "../defines.hpp"
void addWLSignal(wl_signal* pSignal, wl_listener* pListener, void* pOwner, std::string ownerString) {
ASSERT(pSignal);
ASSERT(pListener);
wl_signal_add(pSignal, pListener);
Debug::log(LOG, "Registered signal for owner %x: %x -> %x (owner: %s)", pOwner, pSignal, pListener, ownerString.c_str());
}