swu_target_verification_successful()

Report a successful update verification

Synopsis:

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

Arguments:

id
ID of the UpdateTarget that successfully verified the update. This ID was assigned by the library in the call to swu_target_register().
update
Handle of an Update object representing the update that was verified 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:

Report a successful update verification. An UpdateTarget (which is referenced in id) calls this function to inform the UpdateClient that the update specified in update was successfully verified. It's expected that the UpdateTarget call this function after returning from the verify_update 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.