swu_update_get_target()

Get the handle of the UpdateTarget that will install a software update

Synopsis:

#include <swu/Update.h>
 
swu_result_t swu_update_get_target(
                            swu_update_t update, 
                            swu_target_t *target )

Arguments:

update
Handle of the Update.
target
Pointer to the handle of the associated UpdateTarget.

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 handle of the UpdateTarget that will install the software update referenced in update. This function stores the handle in target. To find the associated UpdateTarget, the library looks through its list of registered UpdateTarget objects and finds the one whose hardware ID and vendor ID values match those contained in the Update. These ID values were specified when the Update was created.

Returns:

One of the following swu_result_t values:

SWU_RESULT_SUCCESS
The operation succeeded.
SWU_RESULT_NOT_FOUND
The associated UpdateTarget can't be found.
SWU_RESULT_INVALID_ARGUMENT
One of the arguments is invalid.
SWU_RESULT_ERROR
Another error occurred.