aqhome: started reworking message code to use gwen's new msgio code.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user