mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
Introduce struct mg_flash::{read_fn,init_fn}
This commit is contained in:
1 parent
9ac1106e74
commit
57e30ab2e9
18 files changed
+438
-293
No files matched your search
@@ -75,6 +75,13 @@ bool mg_ota_write(const void *buf, size_t len);
|
||||
// Ends the OTA process and commits the written firmware.
|
||||
bool mg_ota_end(void);
|
||||
|
||||
// Same as above, for a given flash. OTA backends use these to implement
|
||||
// mg_ota_begin(), mg_ota_write() and mg_ota_end()
|
||||
struct mg_flash;
|
||||
bool mg_ota_flash_begin(size_t new_firmware_size, struct mg_flash *flash);
|
||||
bool mg_ota_flash_write(const void *buf, size_t len, struct mg_flash *flash);
|
||||
bool mg_ota_flash_end(struct mg_flash *flash);
|
||||
|
||||
// Push-based OTA: mg_http_stream_body() callback that flashes the request
|
||||
//
|
||||
// ```c
|
||||
|
||||
Reference in new issue
Block a user