From 03b7473d4faddcb87a5e82205a42028768e7c177 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Sat, 19 May 2018 12:02:08 +0300 Subject: add support for "live"-flashing new settings. --- src/server/util.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/server/util.h') diff --git a/src/server/util.h b/src/server/util.h index 9c0f907..ef5cde2 100644 --- a/src/server/util.h +++ b/src/server/util.h @@ -21,13 +21,17 @@ #ifndef UTIL_H_INCLUDED #define UTIL_H_INCLUDED +#include "datatypes.h" + #define arrsize(a) (sizeof(a)/sizeof(*a)) enum response { ERROR = -1, - A_OK = 0, - NONEWDATA = 1, - DEAD = 2 + A_OK = 0, /* would be "OK", but clashes with some lib definitions */ + NONEWDATA, + DEAD, + NO_ESPTOOL, + TMPFILE, }; struct tempmodule_state { @@ -51,5 +55,6 @@ struct tempmodule_state { }; int refresh_data(int nd, struct tempmodule_state *state); +int write_settings(char *imagename, const struct configuration * const conf); #endif /* UTIL_H_INCLUDED */ -- cgit v1.2.3