33 lines
749 B
C
33 lines
749 B
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_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
|
|
|