mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-29 18:27:12 +02:00
Fix comments
This commit is contained in:
parent
fa8abcb26e
commit
6b94392f2c
3 changed files with 8 additions and 7 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -75,7 +75,7 @@ jobs:
|
||||||
mkdir -p build/doxygen
|
mkdir -p build/doxygen
|
||||||
doxygen 2>&1 | tee build/doxygen.log
|
doxygen 2>&1 | tee build/doxygen.log
|
||||||
WARNINGS=$(cat build/doxygen.log | sort | uniq | grep -e ": warning: " | wc -l)
|
WARNINGS=$(cat build/doxygen.log | sort | uniq | grep -e ": warning: " | wc -l)
|
||||||
MAX_ALLOWED=593
|
MAX_ALLOWED=535
|
||||||
echo "Doxygen finished with $WARNINGS warnings, max allowed: $MAX_ALLOWED"
|
echo "Doxygen finished with $WARNINGS warnings, max allowed: $MAX_ALLOWED"
|
||||||
if [ "$WARNINGS" -gt "$MAX_ALLOWED" ]; then exit $WARNINGS; else exit 0; fi;
|
if [ "$WARNINGS" -gt "$MAX_ALLOWED" ]; then exit $WARNINGS; else exit 0; fi;
|
||||||
|
|
||||||
|
|
|
@ -134,9 +134,9 @@ struct Host : public JsonConfigItem
|
||||||
|
|
||||||
std::string name; ///< host name
|
std::string name; ///< host name
|
||||||
std::string mac; ///< mac address
|
std::string mac; ///< mac address
|
||||||
std::string os; /// OS
|
std::string os; ///< OS
|
||||||
std::string arch; /// CPU architecture
|
std::string arch; ///< CPU architecture
|
||||||
std::string ip; /// IP address
|
std::string ip; ///< IP address
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -241,6 +241,7 @@ struct Snapserver : public Snapcast
|
||||||
/// Client config
|
/// Client config
|
||||||
struct ClientInfo : public JsonConfigItem
|
struct ClientInfo : public JsonConfigItem
|
||||||
{
|
{
|
||||||
|
/// c'tor
|
||||||
explicit ClientInfo(std::string _clientId = "") : id(std::move(_clientId))
|
explicit ClientInfo(std::string _clientId = "") : id(std::move(_clientId))
|
||||||
{
|
{
|
||||||
lastSeen.tv_sec = 0;
|
lastSeen.tv_sec = 0;
|
||||||
|
@ -415,13 +416,13 @@ public:
|
||||||
GroupPtr addClientInfo(const ClientInfoPtr& client);
|
GroupPtr addClientInfo(const ClientInfoPtr& client);
|
||||||
/// Remove client @p client from group
|
/// Remove client @p client from group
|
||||||
void remove(const ClientInfoPtr& client);
|
void remove(const ClientInfoPtr& client);
|
||||||
/// Remove group @group, @p force removal of a non-empty group
|
/// Remove group @p group, @p force removal of a non-empty group
|
||||||
void remove(const GroupPtr& group, bool force = false);
|
void remove(const GroupPtr& group, bool force = false);
|
||||||
|
|
||||||
// GroupPtr removeFromGroup(const std::string& groupId, const std::string& clientId);
|
// GroupPtr removeFromGroup(const std::string& groupId, const std::string& clientId);
|
||||||
// GroupPtr setGroupForClient(const std::string& groupId, const std::string& clientId);
|
// GroupPtr setGroupForClient(const std::string& groupId, const std::string& clientId);
|
||||||
|
|
||||||
/// @return grouo from client with id @client_id
|
/// @return grouo from client with id @p client_id
|
||||||
GroupPtr getGroupFromClient(const std::string& client_id);
|
GroupPtr getGroupFromClient(const std::string& client_id);
|
||||||
/// @return group from @p client
|
/// @return group from @p client
|
||||||
GroupPtr getGroupFromClient(const ClientInfoPtr& client);
|
GroupPtr getGroupFromClient(const ClientInfoPtr& client);
|
||||||
|
|
|
@ -187,7 +187,7 @@ struct ServerSettings
|
||||||
/// Logging settings
|
/// Logging settings
|
||||||
struct Logging
|
struct Logging
|
||||||
{
|
{
|
||||||
/// log sing
|
/// log sink
|
||||||
std::string sink;
|
std::string sink;
|
||||||
/// log filter
|
/// log filter
|
||||||
std::string filter{"*:info"};
|
std::string filter{"*:info"};
|
||||||
|
|
Loading…
Add table
Reference in a new issue