summaryrefslogtreecommitdiff
path: root/hyprpm/src/core/PluginManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'hyprpm/src/core/PluginManager.hpp')
-rw-r--r--hyprpm/src/core/PluginManager.hpp8
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);