swu_target_verification_progress()

Report progress in an ongoing update verification

Synopsis:

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

Arguments:

id
ID of the UpdateTarget that's reporting verification progress. This ID was assigned by the library in the call to swu_target_register().
update
Handle of an Update object representing the update currently being verified.
progress
Verification progress, as a percentage of the verification that's completed.

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 progress in an ongoing update verification. An UpdateTarget (which is referenced in id) calls this function to inform the UpdateClient about verification progress for the update specified in update. Note that this progress reporting is optional. If it chooses to report progress, an UpdateTarget should call this function only after successfully 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.