aqhome-react: added unit for timer programs.
This commit is contained in:
@@ -68,6 +68,13 @@ void AQHREACT_PrgRule_free(AQHREACT_PRGRULE *prgRule)
|
||||
|
||||
|
||||
|
||||
double AQHREACT_PrgRule_GetValue(const AQHREACT_PRGRULE *prgRule)
|
||||
{
|
||||
return prgRule?prgRule->value:0.0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int AQHREACT_PrgRule_Matches(const AQHREACT_PRGRULE *prgRule, int min, int hour, int dayOfMonth, int month, int dayOfWeek)
|
||||
{
|
||||
if ((prgRule->bitfieldMonth & (1L<<month)) &&
|
||||
|
||||
@@ -22,6 +22,8 @@ GWEN_LIST_FUNCTION_DEFS(AQHREACT_PRGRULE, AQHREACT_PrgRule)
|
||||
AQHREACT_PRGRULE *AQHREACT_PrgRule_new(void);
|
||||
void AQHREACT_PrgRule_free(AQHREACT_PRGRULE *prgRule);
|
||||
|
||||
double AQHREACT_PrgRule_GetValue(const AQHREACT_PRGRULE *prgRule);
|
||||
|
||||
int AQHREACT_PrgRule_Matches(const AQHREACT_PRGRULE *prgRule, int min, int hour, int dayOfMonth, int month, int dayOfWeek);
|
||||
|
||||
AQHREACT_PRGRULE *AQHREACT_PrgRule_List_FindMatchingRule(AQHREACT_PRGRULE_LIST *prgRuleList,
|
||||
|
||||
Reference in New Issue
Block a user