diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-22 18:44:25 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-22 18:44:25 +0100 |
| commit | 012a2802e00a7b34e47c8c1098dc093031044ce9 (patch) | |
| tree | a72083d065f243a67dabbfaa704f026d501ee655 /src/protocols/WaylandProtocol.cpp | |
| parent | 741c75d907916d760163f910e65186d410e27874 (diff) | |
Protocols: implement protoLog
Diffstat (limited to 'src/protocols/WaylandProtocol.cpp')
| -rw-r--r-- | src/protocols/WaylandProtocol.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocols/WaylandProtocol.cpp b/src/protocols/WaylandProtocol.cpp index 988836db..30120235 100644 --- a/src/protocols/WaylandProtocol.cpp +++ b/src/protocols/WaylandProtocol.cpp @@ -13,18 +13,18 @@ void IWaylandProtocol::onDisplayDestroy() { wl_global_destroy(m_pGlobal); } -IWaylandProtocol::IWaylandProtocol(const wl_interface* iface, const int& ver, const std::string& name) { +IWaylandProtocol::IWaylandProtocol(const wl_interface* iface, const int& ver, const std::string& name) : m_szName(name) { m_pGlobal = wl_global_create(g_pCompositor->m_sWLDisplay, iface, ver, this, &bindManagerInternal); if (!m_pGlobal) { - Debug::log(ERR, "[proto {}] could not create a global", name); + protoLog(ERR, "could not create a global"); return; } m_liDisplayDestroy.notify = displayDestroyInternal; wl_display_add_destroy_listener(g_pCompositor->m_sWLDisplay, &m_liDisplayDestroy); - Debug::log(LOG, "[proto {}] started", name); + protoLog(LOG, "Registered global"); } IWaylandProtocol::~IWaylandProtocol() { |
