diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-03-20 13:52:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-20 17:52:37 +0000 |
| commit | 8726a7363eb9213235e6e23657668e0daac39a5b (patch) | |
| tree | 42eeb40f6f81a9ccec1455f308e56173e9dcce4b /src/plugins/PluginAPI.cpp | |
| parent | b940b0d2c197841b0f648598ee782dbaf9e0a89b (diff) | |
config: cleanup the entire config infrastructure (#13785)
Massively refactors the config infrastructure, sorely
needed and will be req'd for the lua stuff
Diffstat (limited to 'src/plugins/PluginAPI.cpp')
| -rw-r--r-- | src/plugins/PluginAPI.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/PluginAPI.cpp b/src/plugins/PluginAPI.cpp index 5f89da53..c979ea96 100644 --- a/src/plugins/PluginAPI.cpp +++ b/src/plugins/PluginAPI.cpp @@ -3,7 +3,7 @@ #include "../debug/HyprCtl.hpp" #include "../plugins/PluginSystem.hpp" #include "../managers/eventLoop/EventLoopManager.hpp" -#include "../config/ConfigManager.hpp" +#include "../config/legacy/ConfigManager.hpp" #include "../debug/HyprNotificationOverlay.hpp" #include "../layout/target/Target.hpp" #include "../layout/supplementary/WorkspaceAlgoMatcher.hpp" @@ -103,7 +103,7 @@ APICALL bool HyprlandAPI::removeAlgo(HANDLE handle, const std::string& name) { } APICALL bool HyprlandAPI::reloadConfig() { - g_pEventLoopManager->doLater([] { g_pConfigManager->reload(); }); + g_pEventLoopManager->doLater([] { Config::mgr()->reload(); }); return true; } @@ -184,7 +184,7 @@ APICALL bool HyprlandAPI::addConfigValue(HANDLE handle, const std::string& name, if (!name.starts_with("plugin:")) return false; - g_pConfigManager->addPluginConfigVar(handle, name, value); + Config::Legacy::mgr()->addPluginConfigVar(handle, name, value); return true; } @@ -197,7 +197,7 @@ APICALL bool HyprlandAPI::addConfigKeyword(HANDLE handle, const std::string& nam if (!PLUGIN) return false; - g_pConfigManager->addPluginKeyword(handle, name, fn, opts); + Config::Legacy::mgr()->addPluginKeyword(handle, name, fn, opts); return true; } @@ -208,9 +208,9 @@ APICALL Hyprlang::CConfigValue* HyprlandAPI::getConfigValue(HANDLE handle, const return nullptr; if (name.starts_with("plugin:")) - return g_pConfigManager->getHyprlangConfigValuePtr(name.substr(7), "plugin"); + return Config::Legacy::mgr()->getHyprlangConfigValuePtr(name.substr(7), "plugin"); - return g_pConfigManager->getHyprlangConfigValuePtr(name); + return Config::Legacy::mgr()->getHyprlangConfigValuePtr(name); } APICALL void* HyprlandAPI::getFunctionAddressFromSignature(HANDLE handle, const std::string& sig) { |
