mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-23 20:11:49 +00:00
fix outdated mongoose.h
This commit is contained in:
1 parent
8de9699390
commit
e7ea421c54
1 file changed
+19
+19
@@ -2690,6 +2690,25 @@ bool mg_ota_end(void); // Stop writing
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if MG_OTA != MG_OTA_NONE && MG_OTA != MG_OTA_CUSTOM
|
||||||
|
|
||||||
|
struct mg_flash {
|
||||||
|
void *start; // Address at which flash starts
|
||||||
|
size_t size; // Flash size
|
||||||
|
size_t secsz; // Sector size
|
||||||
|
size_t align; // Write alignment
|
||||||
|
bool (*write_fn)(void *, const void *, size_t); // Write function
|
||||||
|
bool (*swap_fn)(void); // Swap partitions
|
||||||
|
};
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user