hyprpm: Add hyprpm, a Hyprland Plugin Manager (#4072)

This commit is contained in:
Vaxry
2023-12-07 10:41:09 +00:00
committed by GitHub
parent 62a8d0be5c
commit d360550546
19 changed files with 1428 additions and 8 deletions

View File

@@ -0,0 +1,21 @@
#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();
};