aqhome: started reworking message code to use gwen's new msgio code.

This commit is contained in:
Martin Preuss
2023-03-18 00:57:03 +01:00
parent 5612e20e11
commit 9dacf5e5c5
35 changed files with 2267 additions and 31 deletions

View File

@@ -388,24 +388,24 @@ int testEndpoints()
if (rv<0) {
}
emgr=AQH_MsgEndpointMgr_new(0xc0);
emgr=AQH_MsgEndpointManager_new(0xc0);
epTty=AQH_MsgEndpointTty_new("/dev/ttyUSB0");
if (epTty==NULL) {
DBG_ERROR(NULL, "Error creating endpoint TTY");
return 2;
}
AQH_MsgEndpointMgr_AddEndpoint(emgr, epTty);
AQH_MsgEndpointManager_AddEndpoint(emgr, epTty);
epLog=AQH_MsgEndpointLog_new("endpoints.log");
if (epLog==NULL) {
DBG_ERROR(AQH_LOGDOMAIN, "Error creating endpoint LOG");
return 2;
}
AQH_MsgEndpointMgr_AddEndpoint(emgr, epLog);
AQH_MsgEndpointManager_AddEndpoint(emgr, epLog);
for (;;) {
DBG_DEBUG(AQH_LOGDOMAIN, "Next loop");
AQH_MsgEndpointMgr_LoopOnce(emgr);
AQH_MsgEndpointManager_LoopOnce(emgr);
}
return 0;