swu_target_ready_to_install()

Inform the UpdateClient that a target is ready to install an update

Synopsis:

#include <swu/UpdateTargetInterface.h>
 
swu_result_t swu_target_ready_to_install( 
                                swu_target_id_t id,
                                swu_update_t update )

Arguments:

id
ID of the UpdateTarget that's ready to install an update. This ID was assigned by the library in the call to swu_target_register().
update
Handle of an Update object containing an update to install on the target.

Library:

libswu-core

Use the -l swu-core option with qcc to link against the SWU library. This library is usually included automatically.

Description:

Inform the UpdateClient that a target is ready to install an update. The UpdateTarget indicated in id calls this function after determining that the target is ready to install the update specified in update. It's expected that the UpdateTarget call this function after returning from the prepare_to_install function referenced in its associated swu_target_interface_t structure.

Returns:

One of the following swu_result_t values:

SWU_RESULT_SUCCESS
The operation succeeded.
SWU_RESULT_INVALID_ARGUMENT
An invalid argument was given.
SWU_RESULT_ERROR
Another error occurred.