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/Plugin.hpp | |
| parent | 09e195d1f293a876ce21a077af3d7c5047881b79 (diff) | |
hyprpm: added plugin author (#12594)
Diffstat (limited to 'hyprpm/src/core/Plugin.hpp')
| -rw-r--r-- | hyprpm/src/core/Plugin.hpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/hyprpm/src/core/Plugin.hpp b/hyprpm/src/core/Plugin.hpp index e66031c9..a8c74084 100644 --- a/hyprpm/src/core/Plugin.hpp +++ b/hyprpm/src/core/Plugin.hpp @@ -14,6 +14,27 @@ struct SPluginRepository { std::string url; std::string rev; std::string name; + std::string author; std::vector<SPlugin> plugins; std::string hash; -};
\ No newline at end of file +}; + +enum ePluginRepoIdentifierType { + IDENTIFIER_URL, + IDENTIFIER_NAME, + IDENTIFIER_AUTHOR_NAME +}; + +struct SPluginRepoIdentifier { + ePluginRepoIdentifierType type; + std::string url = ""; + std::string name = ""; + std::string author = ""; + + static SPluginRepoIdentifier fromString(const std::string& string); + static SPluginRepoIdentifier fromUrl(const std::string& Url); + static SPluginRepoIdentifier fromName(const std::string& name); + static SPluginRepoIdentifier fromAuthorName(const std::string& author, const std::string& name); + std::string toString() const; + bool matches(const std::string& url, const std::string& name, const std::string& author) const; +}; |
