aqhome: Prepared reorganizing IPC and nodes code around built-in event2 api.
This commit is contained in:
@@ -138,62 +138,6 @@ void AQH_Message_IncUsedSize(AQH_MESSAGE *msg, uint32_t i)
|
||||
|
||||
|
||||
|
||||
int AQH_Message_GetMsgType(const AQH_MESSAGE *msg)
|
||||
{
|
||||
return (msg && msg->refCount)?msg->msgType:0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AQH_Message_SetMsgType(AQH_MESSAGE *msg, int i)
|
||||
{
|
||||
if (msg && msg->refCount)
|
||||
msg->msgType=i;
|
||||
}
|
||||
|
||||
|
||||
int AQH_Message_GetMsgProtoId(const AQH_MESSAGE *msg)
|
||||
{
|
||||
return (msg && msg->refCount)?msg->msgProtoId:0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AQH_Message_SetMsgProtoId(AQH_MESSAGE *msg, int i)
|
||||
{
|
||||
if (msg && msg->refCount)
|
||||
msg->msgProtoId=i;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int AQH_Message_GetMsgProtoVer(const AQH_MESSAGE *msg)
|
||||
{
|
||||
return (msg && msg->refCount)?msg->msgProtoVer:0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AQH_Message_SetMsgProtoVer(AQH_MESSAGE *msg, int i)
|
||||
{
|
||||
if (msg && msg->refCount)
|
||||
msg->msgProtoVer=i;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int AQH_Message_GetMsgCommand(const AQH_MESSAGE *msg)
|
||||
{
|
||||
return (msg && msg->refCount)?msg->msgCommand:0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AQH_Message_SetMsgCommand(AQH_MESSAGE *msg, int i)
|
||||
{
|
||||
if (msg && msg->refCount)
|
||||
msg->msgCommand=i;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user