aqhome-react: periodically check for network file changes and reload if necessary.
This commit is contained in:
@@ -90,6 +90,21 @@ int AqHomeReact_GetTimeout(const AQHOME_REACT *aqh)
|
||||
|
||||
|
||||
|
||||
time_t AqHomeReact_GetLatestNetworkFileTime(const AQHOME_REACT *aqh)
|
||||
{
|
||||
return aqh?aqh->latestNetworkFileTime:0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AqHomeReact_SetLatestNetworkFileTime(AQHOME_REACT *aqh, time_t t)
|
||||
{
|
||||
if (aqh)
|
||||
aqh->latestNetworkFileTime=t;
|
||||
}
|
||||
|
||||
|
||||
|
||||
AQHREACT_UNIT *AqHomeReact_GetTimerUnit(const AQHOME_REACT *aqh)
|
||||
{
|
||||
return aqh?aqh->timerUnit:NULL;
|
||||
|
||||
Reference in New Issue
Block a user