mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-05 12:21:43 +02:00
Add "General.GetRPCCommands" RPC command
This commit is contained in:
parent
6b94392f2c
commit
f264080c77
7 changed files with 106 additions and 20 deletions
|
@ -71,8 +71,8 @@ public:
|
|||
/// d'tor
|
||||
virtual ~AuthInfo() = default;
|
||||
|
||||
/// @return if authentication info is available
|
||||
bool hasAuthInfo() const;
|
||||
/// @return if user is authenticated
|
||||
bool isAuthenticated() const;
|
||||
// ErrorCode isValid(const std::string& command) const;
|
||||
/// @return the username
|
||||
const std::string& username() const;
|
||||
|
@ -92,8 +92,8 @@ public:
|
|||
bool hasPermission(const std::string& resource) const;
|
||||
|
||||
private:
|
||||
/// has auth info
|
||||
bool has_auth_info_;
|
||||
/// is authenticated
|
||||
bool is_authenticated_;
|
||||
/// auth user name
|
||||
std::string username_;
|
||||
/// optional token expiration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue