mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-15 00:59:48 +01:00
21 lines
858 B
C++
21 lines
858 B
C++
|
#pragma once
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
#include "Plugin.hpp"
|
||
|
|
||
|
struct SGlobalState {
|
||
|
std::string headersHashCompiled = "";
|
||
|
bool dontWarnInstall = false;
|
||
|
};
|
||
|
|
||
|
namespace DataState {
|
||
|
std::string getDataStatePath();
|
||
|
void ensureStateStoreExists();
|
||
|
void addNewPluginRepo(const SPluginRepository& repo);
|
||
|
void removePluginRepo(const std::string& urlOrName);
|
||
|
bool pluginRepoExists(const std::string& urlOrName);
|
||
|
void updateGlobalState(const SGlobalState& state);
|
||
|
SGlobalState getGlobalState();
|
||
|
bool setPluginEnabled(const std::string& name, bool enabled);
|
||
|
std::vector<SPluginRepository> getAllRepositories();
|
||
|
};
|