38 lines
1.2 KiB
C
38 lines
1.2 KiB
C
/****************************************************************************
|
|
* 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_NODEENDPOINT_H
|
|
#define AQH_NODEENDPOINT_H
|
|
|
|
#include <aqhome/events2/object.h>
|
|
#include <aqhome/ipc2/message.h>
|
|
|
|
|
|
|
|
enum {
|
|
AQH_NODE_ENDPOINT_SLOT_MSG_RECVD=1,
|
|
AQH_NODE_ENDPOINT_SLOT_MSG_SENT
|
|
};
|
|
|
|
|
|
AQHOME_API AQH_OBJECT *AQH_NodeEndpoint_new(AQH_EVENT_LOOP *eventLoop, AQH_OBJECT *msgReader, AQH_OBJECT *msgWriter);
|
|
|
|
AQHOME_API AQH_MESSAGE_LIST *AQH_NodeEndpoint_GetMsgOutList(const AQH_OBJECT *o);
|
|
AQHOME_API AQH_MESSAGE *AQH_NodeEndpoint_GetNextMsgOut(AQH_OBJECT *o);
|
|
AQHOME_API void AQH_NodeEndpoint_AddMsgOut(AQH_OBJECT *o, AQH_MESSAGE *msg);
|
|
|
|
AQHOME_API AQH_MESSAGE_LIST *AQH_NodeEndpoint_GetMsgInList(const AQH_OBJECT *o);
|
|
AQHOME_API AQH_MESSAGE *AQH_NodeEndpoint_GetNextMsgIn(AQH_OBJECT *o);
|
|
AQHOME_API void AQH_NodeEndpoint_AddMsgIn(AQH_OBJECT *o, AQH_MESSAGE *msg);
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|