libflashrom
|
Functions | |
int | flashrom_programmer_init (struct flashrom_programmer **flashprog, const char *prog_name, const char *prog_params) |
Initialize the specified programmer. More... | |
int | flashrom_programmer_shutdown (struct flashrom_programmer *flashprog) |
Shut down the initialized programmer. More... | |
int flashrom_programmer_init | ( | struct flashrom_programmer ** | flashprog, |
const char * | prog_name, | ||
const char * | prog_params | ||
) |
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_params | Pointer to programmer specific parameters. |
int flashrom_programmer_shutdown | ( | struct flashrom_programmer * | flashprog | ) |
Shut down the initialized programmer.
flashprog | The programmer to shut down. |