aqhome: started rewriting message code, start using new event2 lib.
This commit is contained in:
37
aqhome/ipc2/message_p.h
Normal file
37
aqhome/ipc2/message_p.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/****************************************************************************
|
||||
* This file is part of the project AqHome.
|
||||
* AqHome (c) by 2025 Martin Preuss, all rights reserved.
|
||||
*
|
||||
* The license for this file can be found in the file COPYING which you
|
||||
* should have received along with this file.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef AQH_MESSAGE_P_H
|
||||
#define AQH_MESSAGE_P_H
|
||||
|
||||
#include "./message.h"
|
||||
|
||||
|
||||
|
||||
struct AQH_MESSAGE {
|
||||
GWEN_INHERIT_ELEMENT(AQH_MESSAGE)
|
||||
GWEN_LIST_ELEMENT(AQH_MESSAGE)
|
||||
|
||||
int refCount;
|
||||
|
||||
/* unparsed data */
|
||||
uint8_t *msgPointer;
|
||||
uint32_t msgSize;
|
||||
uint32_t usedSize;
|
||||
|
||||
/* parsed header data */
|
||||
int msgType;
|
||||
int msgProtoId;
|
||||
int msgProtoVer;
|
||||
int msgCommand;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user