aqhome-react: periodically check for network file changes and reload if necessary.
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
|
||||
#include "./aqhome_react.h"
|
||||
|
||||
#include <time.h>
|
||||
|
||||
|
||||
|
||||
#define AQHOME_REACT_DEFAULT_PIDFILE "/var/run/aqhome-react.pid"
|
||||
#define AQHOME_REACT_DEFAULT_DATADIR "/var/lib/aqhome-react"
|
||||
@@ -21,7 +24,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
struct AQHOME_REACT {
|
||||
GWEN_MSG_ENDPOINT *brokerEndpoint;
|
||||
|
||||
@@ -33,6 +35,8 @@ struct AQHOME_REACT {
|
||||
AQHREACT_UNIT *varChangeUnit;
|
||||
AQHREACT_UNIT_LIST *unitList;
|
||||
AQHREACT_UNIT_NET_LIST *unitNetList;
|
||||
|
||||
time_t latestNetworkFileTime;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user