libflashrom
Functions
Programmers

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...
 

Detailed Description

Function Documentation

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.

Parameters
[out]flashprogPoints 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_nameName of the programmer to initialize.
[in]prog_paramPointer to programmer specific parameters.
Returns
0 on success
int flashrom_programmer_shutdown ( struct flashrom_programmer *const  flashprog)

Shut down the initialized programmer.

Parameters
flashprogThe programmer to shut down.
Returns
0 on success