mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-23 19:38:31 +02:00
add clang-format file
reformat code
This commit is contained in:
parent
b733f646ea
commit
b20add3815
105 changed files with 7773 additions and 7723 deletions
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2018 Johannes Pohl
|
||||
Copyright (C) 2014-2019 Johannes Pohl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -27,38 +27,35 @@ namespace msg
|
|||
class Time : public BaseMessage
|
||||
{
|
||||
public:
|
||||
Time() : BaseMessage(message_type::kTime)
|
||||
{
|
||||
}
|
||||
Time() : BaseMessage(message_type::kTime)
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~Time()
|
||||
{
|
||||
}
|
||||
virtual ~Time()
|
||||
{
|
||||
}
|
||||
|
||||
virtual void read(std::istream& stream)
|
||||
{
|
||||
readVal(stream, latency.sec);
|
||||
readVal(stream, latency.usec);
|
||||
}
|
||||
virtual void read(std::istream& stream)
|
||||
{
|
||||
readVal(stream, latency.sec);
|
||||
readVal(stream, latency.usec);
|
||||
}
|
||||
|
||||
virtual uint32_t getSize() const
|
||||
{
|
||||
return sizeof(tv);
|
||||
}
|
||||
virtual uint32_t getSize() const
|
||||
{
|
||||
return sizeof(tv);
|
||||
}
|
||||
|
||||
tv latency;
|
||||
tv latency;
|
||||
|
||||
protected:
|
||||
virtual void doserialize(std::ostream& stream) const
|
||||
{
|
||||
writeVal(stream, latency.sec);
|
||||
writeVal(stream, latency.usec);
|
||||
}
|
||||
virtual void doserialize(std::ostream& stream) const
|
||||
{
|
||||
writeVal(stream, latency.sec);
|
||||
writeVal(stream, latency.usec);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue