mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
keep embedded-friendly config API
This commit is contained in:
1 parent
5d0d01c2c1
commit
7876d464f2
2 files changed
+8
-5
No files matched your search
@@ -5,11 +5,9 @@
|
||||
|
||||
const char *s_listening_url = "http://0.0.0.0:80";
|
||||
|
||||
#if 0
|
||||
char *config_read(void) {
|
||||
return mg_file_read(&mg_fs_posix, FS_ROOT "/config.json", NULL);
|
||||
struct mg_str config_read(void) {
|
||||
return mg_file_read(&mg_fs_posix, FS_ROOT "/config.json");
|
||||
}
|
||||
#endif
|
||||
|
||||
void config_write(struct mg_str config) {
|
||||
mg_file_write(&mg_fs_posix, FS_ROOT "/config.json", config.ptr, config.len);
|
||||
|
||||
Reference in new issue
Block a user