ipc2: started working on event-based ipc handling.

This commit is contained in:
Martin Preuss
2025-01-09 01:42:19 +01:00
parent b2193afa46
commit acbe4505b9
11 changed files with 963 additions and 5 deletions

32
aqhome/ipc2/msgreader.h Normal file
View File

@@ -0,0 +1,32 @@
/****************************************************************************
* 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_MSGREADER_H
#define AQH_MSGREADER_H
#include <aqhome/events2/object.h>
enum {
/** param1=msgSize, param2=msgPointer */
AQH_MSG_READER_SIGNAL_MSGRECVD=AQH_OBJECT_SIGNAL_LAST,
/** param1: error code */
AQH_MSG_READER_SIGNAL_ERROR,
AQH_MSG_READER_SIGNAL_CLOSED
};
AQH_OBJECT *AQH_MsgReader_new(AQH_EVENT_LOOP *eventLoop, int fd);
#endif