PebbleOS v4.44.0-79-gafcb109f5
Loading...
Searching...
No Matches
backend_flash.h File Reference
#include <stdbool.h>
#include <stdint.h>

Typedefs

typedef bool(* pbl_log_flash_dump_line_cb_t) (uint8_t *message, uint32_t length)
 Called with each stored message of a dumped generation.
 
typedef void(* pbl_log_flash_dump_done_cb_t) (bool success)
 Called once a dump finishes.
 

Functions

void pbl_log_flash_init (void)
 Start a new log generation and enable the flash backend.
 
bool pbl_log_flash_dump (int generation, pbl_log_flash_dump_line_cb_t line_cb, pbl_log_flash_dump_done_cb_t done_cb)
 Dump a log generation, one message per system task callback.