ipc2: started working on event-based ipc handling.
This commit is contained in:
32
aqhome/ipc2/msgreader.h
Normal file
32
aqhome/ipc2/msgreader.h
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user