diff options
| author | Luke Barkess <57995669+Brumus14@users.noreply.github.com> | 2025-12-14 17:16:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-14 17:16:58 +0000 |
| commit | 05ccbb2f2dc3121a48e9c1925357039b27d22a92 (patch) | |
| tree | a5bb42acf7343c32b54ae93956b521c60739c9d3 /hyprpm/src/core/PluginManager.hpp | |
| parent | 09e195d1f293a876ce21a077af3d7c5047881b79 (diff) | |
hyprpm: added plugin author (#12594)
Diffstat (limited to 'hyprpm/src/core/PluginManager.hpp')
| -rw-r--r-- | hyprpm/src/core/PluginManager.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/hyprpm/src/core/PluginManager.hpp b/hyprpm/src/core/PluginManager.hpp index 2425f5ec..10a71469 100644 --- a/hyprpm/src/core/PluginManager.hpp +++ b/hyprpm/src/core/PluginManager.hpp @@ -2,8 +2,10 @@ #include <cstdint> #include <memory> +#include <optional> #include <string> #include <utility> +#include "Plugin.hpp" enum eHeadersErrors { HEADERS_OK = 0, @@ -46,7 +48,7 @@ class CPluginManager { CPluginManager(); bool addNewPluginRepo(const std::string& url, const std::string& rev); - bool removePluginRepo(const std::string& urlOrName); + bool removePluginRepo(const SPluginRepoIdentifier identifier); eHeadersErrors headersValid(); bool updateHeaders(bool force = false); @@ -54,8 +56,8 @@ class CPluginManager { void listAllPlugins(); - bool enablePlugin(const std::string& name); - bool disablePlugin(const std::string& name); + bool enablePlugin(const SPluginRepoIdentifier identifier); + bool disablePlugin(const SPluginRepoIdentifier identifier); ePluginLoadStateReturn ensurePluginsLoadState(bool forceReload = false); bool loadUnloadPlugin(const std::string& path, bool load); |
