libflashrom
|
Functions | |
int | flashrom_programmer_init (struct flashrom_programmer **const flashprog, const char *const prog_name, const char *const prog_param) |
Initialize the specified programmer. More... | |
int | flashrom_programmer_shutdown (struct flashrom_programmer *const flashprog) |
Shut down the initialized programmer. More... | |
int flashrom_programmer_init | ( | struct flashrom_programmer **const | flashprog, |
const char *const | prog_name, | ||
const char *const | prog_param | ||
) |
Initialize the specified programmer.
Currently, only one programmer may be initialized at a time.
[out] | flashprog | Points to a pointer of type struct flashrom_programmer that will be set if programmer initialization succeeds. *flashprog has to be shutdown by the caller with flashrom_programmer_shutdown. |
[in] | prog_name | Name of the programmer to initialize. |
[in] | prog_param | Pointer to programmer specific parameters. |
int flashrom_programmer_shutdown | ( | struct flashrom_programmer *const | flashprog | ) |
Shut down the initialized programmer.
flashprog | The programmer to shut down. |