added function AqHomeReact_AddUnit().

This commit is contained in:
Martin Preuss
2024-03-19 23:48:05 +01:00
parent d6494d07d5
commit ed4fc1852a
2 changed files with 9 additions and 0 deletions

View File

@@ -162,6 +162,14 @@ AQHREACT_UNIT *AqHomeReact_FindUnitByNetNameAndUnitId(const AQHOME_REACT *aqh, c
void AqHomeReact_AddUnit(AQHOME_REACT *aqh, AQHREACT_UNIT *unit)
{
if (aqh && unit)
AQHREACT_Unit_List_Add(unit, aqh->unitList);
}
AQHREACT_UNIT *AqHomeReact_CreateUnitByName(AQHOME_REACT *aqh, const char *unitType)
{
/* this does not include u_timer and u_varchanges, because those are only created once globally in init.c */