aqhome-react: make more functions virtual.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#endif
|
||||
|
||||
#include "./aqhome_react_p.h"
|
||||
#include "aqhome-react/units/u_or.h"
|
||||
#include "aqhome-react/units/u_logical.h"
|
||||
#include "aqhome-react/units/u_valuefilter.h"
|
||||
#include "aqhome-react/units/u_valueset.h"
|
||||
#include "aqhome-react/units/u_stabilize.h"
|
||||
@@ -193,6 +193,10 @@ AQHREACT_UNIT *AqHomeReact_CreateUnitByName(AQHOME_REACT *aqh, const char *unitT
|
||||
if (aqh && unitType && *unitType) {
|
||||
if (strcasecmp(unitType, "or")==0)
|
||||
return AqHomeReact_UnitOr_new(aqh);
|
||||
else if (strcasecmp(unitType, "and")==0)
|
||||
return AqHomeReact_UnitAnd_new(aqh);
|
||||
else if (strcasecmp(unitType, "xor")==0)
|
||||
return AqHomeReact_UnitXor_new(aqh);
|
||||
else if (strcasecmp(unitType, "valueFilter")==0)
|
||||
return AqHomeReact_UnitValueFilter_new(aqh);
|
||||
else if (strcasecmp(unitType, "valueSet")==0)
|
||||
|
||||
Reference in New Issue
Block a user