mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 00:26:41 +02:00
refactoring
git-svn-id: svn://elaine/murooma/trunk@328 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
611b2a6c9f
commit
c40bfda64c
35 changed files with 192 additions and 178 deletions
|
@ -30,15 +30,15 @@ struct membuf : public std::basic_streambuf<char>
|
|||
|
||||
enum message_type
|
||||
{
|
||||
base = 0,
|
||||
header = 1,
|
||||
payload = 2,
|
||||
sampleformat = 3,
|
||||
serversettings = 4,
|
||||
timemsg = 5,
|
||||
requestmsg = 6,
|
||||
ackMsg = 7,
|
||||
commandmsg = 8
|
||||
kBase = 0,
|
||||
kHeader = 1,
|
||||
kPayload = 2,
|
||||
kSampleFormat = 3,
|
||||
kServerSettings = 4,
|
||||
kTime = 5,
|
||||
kRequest = 6,
|
||||
kAck = 7,
|
||||
kCommand = 8
|
||||
};
|
||||
|
||||
|
||||
|
@ -90,10 +90,12 @@ struct tv
|
|||
}
|
||||
};
|
||||
|
||||
namespace msg
|
||||
{
|
||||
|
||||
struct BaseMessage
|
||||
{
|
||||
BaseMessage() : type(base), id(0), refersTo(0)
|
||||
BaseMessage() : type(kBase), id(0), refersTo(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -181,6 +183,7 @@ struct SerializedMessage
|
|||
char* buffer;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue