libflashrom
|
Data Structures | |
struct | flashrom_progress |
Typedefs | |
typedef int( | flashrom_log_callback) (enum flashrom_log_level, const char *format, va_list) |
typedef void( | flashrom_progress_callback) (struct flashrom_flashctx *flashctx) |
Functions | |
int | flashrom_init (int perform_selfcheck) |
Initialize libflashrom. More... | |
int | flashrom_shutdown (void) |
Shut down libflashrom. More... | |
void | flashrom_set_log_callback (flashrom_log_callback *log_callback) |
Set the log callback function. More... | |
void | flashrom_set_progress_callback (struct flashrom_flashctx *const flashctx, flashrom_progress_callback *progress_callback, struct flashrom_progress *progress_state) |
Set the progress callback function. More... | |
int flashrom_init | ( | int | perform_selfcheck | ) |
Initialize libflashrom.
perform_selfcheck | If not zero, perform a self check. |
void flashrom_set_log_callback | ( | flashrom_log_callback * | log_callback | ) |
Set the log callback function.
Set a callback function which will be invoked whenever libflashrom wants to output messages. This allows frontends to do whatever they see fit with such messages, e.g. write them to syslog, or to a file, or print them in a GUI window, etc.
log_callback | Pointer to the new log callback function. |
void flashrom_set_progress_callback | ( | struct flashrom_flashctx *const | flashctx, |
flashrom_progress_callback * | progress_callback, | ||
struct flashrom_progress * | progress_state | ||
) |
Set the progress callback function.
Set a callback function which will be invoked whenever libflashrom wants to indicate the progress has changed. This allows frontends to do whatever they see fit with such values, e.g. update a progress bar in a GUI tool.
progress_callback | Pointer to the new progress callback function. |
progress_state | Pointer to progress state to include with the progress callback. |
int flashrom_shutdown | ( | void | ) |
Shut down libflashrom.