many different fixes
This commit is contained in:
1 parent
b4073ddf1e
commit
5e1e3d66c4
8 files changed
+116
-59
No files matched your search
@@ -64,10 +64,11 @@ public:
|
||||
virtual Result<void> shutdown() = 0;
|
||||
|
||||
// Client operations
|
||||
[[nodiscard]] virtual Result<std::vector<ClientInfo>> getClients() const = 0;
|
||||
[[nodiscard]] virtual Result<std::optional<ClientInfo>> getClient(uint64_t clientId) const = 0;
|
||||
virtual Result<void> moveClient(uint64_t clientId, uint64_t channelId) = 0;
|
||||
virtual Result<void> kickClient(uint64_t clientId, const std::string& reason) = 0;
|
||||
[[nodiscard]] virtual Result<std::vector<ClientInfo>> getClients() = 0;
|
||||
[[nodiscard]] virtual Result<std::optional<ClientInfo>>
|
||||
getClient(uint64_t clientId) = 0;
|
||||
virtual Result<void> moveClient(uint64_t clientId, uint64_t channelId) = 0;
|
||||
virtual Result<void> kickClient(uint64_t clientId, const std::string& reason) = 0;
|
||||
|
||||
// Channel operations
|
||||
[[nodiscard]] virtual Result<std::vector<ChannelInfo>> getChannels() const = 0;
|
||||
@@ -79,8 +80,8 @@ public:
|
||||
virtual Result<void> sendServerMessage(const std::string& message) = 0;
|
||||
|
||||
// Audio
|
||||
virtual Result<void> sendAudioData(const std::span<const uint8_t>& data) = 0;
|
||||
virtual Result<void> setWhisperList(const std::vector<uint64_t>& clientIds) = 0;
|
||||
virtual Result<void> sendAudioData(const std::span<const short>& data) = 0;
|
||||
virtual Result<void> setWhisperList(const std::vector<uint64_t>& clientIds) = 0;
|
||||
|
||||
// Server connection
|
||||
virtual Result<void> connectToServer(const ServerConfig& config) = 0;
|
||||
|
||||
Reference in new issue
Block a user