|
libflashrom
|
Data Structures | |
| struct | flashrom_progress |
Functions | |
| int | flashrom_init (int perform_selfcheck) |
| Initialize libflashrom. More... | |
| int | flashrom_shutdown (void) |
| Shut down libflashrom. More... | |
| void | flashrom_set_log_level (enum flashrom_log_level level) |
| Set the log level. More... | |
| void | flashrom_set_log_callback (flashrom_log_callback *log_callback) |
| Set the log callback function. More... | |
| void | flashrom_set_log_callback_v2 (flashrom_log_callback_v2 *log_callback, void *user_data) |
| 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) __attribute__((deprecated("Use flashrom_set_progress_callback_v2 instead"))) |
| void | flashrom_set_progress_callback_v2 (struct flashrom_flashctx *const flashctx, flashrom_progress_callback_v2 *progress_callback, void *user_data) |
| 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_log_callback_v2 | ( | flashrom_log_callback_v2 * | log_callback, |
| void * | user_data | ||
| ) |
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. The message is formatted using vsnprintf
| log_callback | Pointer to the new log callback function. |
| user_data | A pointer to data managed by the caller. |
| void flashrom_set_log_level | ( | enum flashrom_log_level | level | ) |
Set the log level.
Set a log level for messages from libflashrom. The print callback will be invoked only for messages with a log level less than or equal to the configured value. The default log level is FLASHROM_MSG_INFO.
| level | The log level to be set. |
| void flashrom_set_progress_callback | ( | struct flashrom_flashctx *const | flashctx, |
| flashrom_progress_callback * | progress_callback, | ||
| struct flashrom_progress * | progress_state | ||
| ) |
| void flashrom_set_progress_callback_v2 | ( | struct flashrom_flashctx *const | flashctx, |
| flashrom_progress_callback_v2 * | progress_callback, | ||
| void * | user_data | ||
| ) |
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.
| flashrom_progress_callback_v2 | Pointer to the new progress callback function. |
| user_data | A pointer to a piece of data which is managed by progress caller |
| int flashrom_shutdown | ( | void | ) |
Shut down libflashrom.
1.8.10