aqhome: started rewriting IPC module.
started with basic event interface using unix fd and timers.
This commit is contained in:
32
aqhome/events2/eventloop.h
Normal file
32
aqhome/events2/eventloop.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_EVENTLOOP_H
|
||||
#define AQH_EVENTLOOP_H
|
||||
|
||||
typedef struct AQH_EVENT_LOOP AQH_EVENT_LOOP;
|
||||
|
||||
|
||||
#include <aqhome/events2/object.h>
|
||||
|
||||
|
||||
|
||||
AQHOME_API AQH_EVENT_LOOP *AQH_EventLoop_new();
|
||||
AQHOME_API void AQH_EventLoop_free(AQH_EVENT_LOOP *eventLoop);
|
||||
|
||||
AQHOME_API void AQH_EventLoop_Run(AQH_EVENT_LOOP *eventLoop);
|
||||
|
||||
AQHOME_API void AQH_EventLoop_AddFdObject(AQH_EVENT_LOOP *eventLoop, AQH_OBJECT *o);
|
||||
AQHOME_API void AQH_EventLoop_DelFdObject(AQH_EVENT_LOOP *eventLoop, AQH_OBJECT *o);
|
||||
|
||||
AQHOME_API void AQH_EventLoop_AddTimerObject(AQH_EVENT_LOOP *eventLoop, AQH_OBJECT *o);
|
||||
AQHOME_API void AQH_EventLoop_DelTimerObject(AQH_EVENT_LOOP *eventLoop, AQH_OBJECT *o);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user