From f57e2eabe0a10c9732c83532e01654a499fb8dcf Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 21 Jun 2021 17:47:13 -0400 Subject: many, many changes; settings is broken --- src/user/include/knob/file.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/user/include/knob/file.h') diff --git a/src/user/include/knob/file.h b/src/user/include/knob/file.h index 04fc201..f98a15c 100644 --- a/src/user/include/knob/file.h +++ b/src/user/include/knob/file.h @@ -10,13 +10,11 @@ extern "C" { struct file; -const char *remove_prefix(const char *path, uint8_t *dn_out); - struct file *open_file(const char *path); void close_file(struct file *f); uint32_t read_from_file(struct file *f, uint32_t max, void *buf); -uint32_t write_to_file(struct file *f, uint32_t max, void *buf); +uint32_t write_to_file(struct file *f, uint32_t max, const void *buf); //return value and max_length don't include null terminator uint32_t read_line_from_file(struct file *f, char *sz, uint32_t max_length); uint32_t seek_file_to(struct file *f, uint32_t to); -- cgit v1.2.3