diff options
Diffstat (limited to 'fw/app/src/settings.h')
-rw-r--r-- | fw/app/src/settings.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/fw/app/src/settings.h b/fw/app/src/settings.h new file mode 100644 index 0000000..d86477e --- /dev/null +++ b/fw/app/src/settings.h @@ -0,0 +1,31 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public License, + * v. 2.0. If a copy of the MPL was not distributed with this file, You can + * obtain one at https://mozilla.org/MPL/2.0/. + */ + +#ifndef SRC_SETTINGS_H +#define SRC_SETTINGS_H + +#include <stddef.h> + +#include <zephyr/data/json.h> + +#define IPV6_STRLEN_MAX 39 // excluding '\0' + + +struct settings_syslog_target { + const char *ip; +}; + +struct settings_syslog { + struct settings_syslog_target target; +}; + +struct settings { + struct settings_syslog syslog; +}; + +int settings_to_json(void *buffer, size_t data); + +#endif // !SRC_SETTINGS_H |