aqhome-react: periodically check for network file changes and reload if necessary.

This commit is contained in:
Martin Preuss
2024-03-24 14:21:20 +01:00
parent e0476924c1
commit 6f9e20095a
6 changed files with 91 additions and 1 deletions

View File

@@ -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;
};