refactor(niri): declared constructor
Move constructor from hpp to cpp to align with other modules Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@ -17,7 +17,7 @@ class EventHandler {
|
|||||||
|
|
||||||
class IPC {
|
class IPC {
|
||||||
public:
|
public:
|
||||||
IPC() { startIPC(); }
|
IPC();
|
||||||
|
|
||||||
void registerForIPC(const std::string& ev, EventHandler* ev_handler);
|
void registerForIPC(const std::string& ev, EventHandler* ev_handler);
|
||||||
void unregisterForIPC(EventHandler* handler);
|
void unregisterForIPC(EventHandler* handler);
|
||||||
|
|||||||
@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
namespace waybar::modules::niri {
|
namespace waybar::modules::niri {
|
||||||
|
|
||||||
|
IPC::IPC() { startIPC(); }
|
||||||
|
|
||||||
int IPC::connectToSocket() {
|
int IPC::connectToSocket() {
|
||||||
const char* socket_path = getenv("NIRI_SOCKET");
|
const char* socket_path = getenv("NIRI_SOCKET");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user