From 0b409a1a9ccc9d7d566a0a867eec4f6eb5a1f5e1 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 29 Nov 2017 08:41:37 -0800 Subject: Added code to persist config back to a file --HG-- branch : nuklear_ui --- config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index 9224606..5122577 100644 --- a/config.h +++ b/config.h @@ -10,6 +10,9 @@ tern_node *parse_config_file(char *config_path); tern_node *parse_bundled_config(char *config_name); tern_node *load_config(); +char *serialize_config(tern_node *config, uint32_t *size_out); +uint8_t serialize_config_file(tern_node *config, char *path); +void persist_config(tern_node *config); char **get_extension_list(tern_node *config, uint32_t *num_exts_out); #endif //CONFIG_H_ -- cgit v1.2.3