modules/hyprland/backend: move getSocketFolder to class

This commit is contained in:
Austin Horstman
2024-06-08 23:52:58 -05:00
parent 58e7abba2c
commit fa2e21dfd5
2 changed files with 17 additions and 11 deletions

View File

@ -26,6 +26,10 @@ class IPC {
static std::string getSocket1Reply(const std::string& rq);
Json::Value getSocket1JsonReply(const std::string& rq);
static std::filesystem::path getSocketFolder(const char* instanceSig);
protected:
static std::filesystem::path socketFolder_;
private:
void startIPC();
@ -38,5 +42,4 @@ class IPC {
inline std::unique_ptr<IPC> gIPC;
inline bool modulesReady = false;
std::filesystem::path getSocketFolder(const char* instanceSig);
}; // namespace waybar::modules::hyprland