diff options
Diffstat (limited to 'src/server/util.h')
-rw-r--r-- | src/server/util.h | 11 |
1 files changed, 8 insertions, 3 deletions
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 */ |