aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprpm/src/core/DataState.hpp
blob: be8792bbff1faf832c29cb47c4ffa1014e41dd89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
#include <string>
#include <vector>
#include "Plugin.hpp"

struct SGlobalState {
    std::string headersHashCompiled;
};

namespace DataState {
    void                           addNewPluginRepo(const SPluginRepository& repo);
    void                           removePluginRepo(const std::string& urlOrName);
    bool                           pluginRepoExists(const std::string& urlOrName);
    void                           updateGlobalState(const SGlobalState& state);
    bool                           setPluginEnabled(const std::string& name, bool enabled);
    std::vector<SPluginRepository> getAllRepositories();
};