fix: use separate relay caches for status
This commit is contained in:
parent
0eef646fe0
commit
f98a01f3f0
13 changed files with 49 additions and 38 deletions
|
@ -27,13 +27,13 @@ cache_invalidate_schedule(int schedule_id);
|
|||
|
||||
|
||||
void
|
||||
cache_put_json_relay(int relay_id, char *relay_json);
|
||||
cache_put_json_relay(int relay_id, int status_relay, char *relay_json);
|
||||
|
||||
char*
|
||||
cache_get_json_relay(int relay_id);
|
||||
cache_get_json_relay(int relay_id, int status_relay);
|
||||
|
||||
void
|
||||
cache_invalidate_relay(int relay_id);
|
||||
cache_invalidate_relay(int relay_id, int status_relay);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -33,10 +33,10 @@ void
|
|||
relay_reload_schedules(relay_t *relay);
|
||||
|
||||
cJSON*
|
||||
relay_to_json(relay_t *relay);
|
||||
relay_to_json(relay_t *relay, int status_relay);
|
||||
|
||||
cJSON*
|
||||
relay_list_to_json(relay_t **relays);
|
||||
relay_list_to_json(relay_t **relays, int status_relays);
|
||||
|
||||
void
|
||||
relay_free(relay_t *relay);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue