aqhome-react: enable network loading.
This application has now basic functionality.
This commit is contained in:
@@ -124,6 +124,14 @@ void AqHomeReact_ReloadUnitNets(AQHOME_REACT *aqh)
|
||||
if (unitNetList) {
|
||||
AQHREACT_UnitNet_List_free(aqh->unitNetList);
|
||||
aqh->unitNetList=unitNetList;
|
||||
{
|
||||
GWEN_BUFFER *dbuf;
|
||||
|
||||
dbuf=GWEN_Buffer_new(0, 256, 0, 1);
|
||||
AQHREACT_UnitNet_List_Dump(unitNetList, dbuf, 2, "Loaded networks:");
|
||||
fprintf(stderr, "%s\n", GWEN_Buffer_GetStart(dbuf));
|
||||
GWEN_Buffer_free(dbuf);
|
||||
}
|
||||
}
|
||||
else {
|
||||
DBG_INFO(NULL, "No unit nets read");
|
||||
|
||||
Reference in New Issue
Block a user