diff config.h @ 1489:637fbc3b5063 nuklear_ui

Added code to persist config back to a file
author Michael Pavone <pavone@retrodev.com>
date Wed, 29 Nov 2017 08:41:37 -0800
parents 369da70ee2c2
children 6ce36c3f250b
line wrap: on
line diff
--- a/config.h	Sun Nov 26 20:19:36 2017 -0800
+++ b/config.h	Wed Nov 29 08:41:37 2017 -0800
@@ -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_