swu_update_get_failure_info()

Get failure information for an update

Synopsis:

#include <swu/Update.h>
 
swu_result_t swu_update_get_failure_info(
                                swu_update_t update, 
                                swu_failure_info_t *info )

Arguments:

update
Handle of the Update.
info
Pointer to the swu_failure_info_t to store the latest failure information for the update. The library fills in the fields in this structure.

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 latest failure information for the software update referenced in update. This function stores this information in the structure referred to by info. The failure information fields aren't filled in until the Update is in the SWU_UPDATE_STATE_INSTALL_FAILED state.

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.