swu_update_get_verification_percent_completed()

Get the percentage of the verification completed for an update

Synopsis:

#include <swu/Update.h>
 
swu_result_t swu_update_get_verification_percent_completed(
                        swu_update_t update, 
                        swu_progress_t *percent_completed )

Arguments:

update
Handle of the Update.
percent_completed
Pointer to the swu_progress_t to store the percentage of the update currently verified.

Library:

libswu-core

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

Description:

Get the percentage of the verification completed for the software update referenced in update. This function stores this percentage in percent_completed. Note that when the Update isn't in the SWU_UPDATE_STATE_VERIFYING state, the value retrieved by this function is undetermined.

Returns:

One of the following swu_result_t values:

SWU_RESULT_SUCCESS
The operation succeeded.
SWU_RESULT_INVALID_ARGUMENT
One of the arguments is invalid.
SWU_RESULT_ERROR
Another error occurred.