swu_target_get_id()

Get the ID of an UpdateTarget

Synopsis:

#include <swu/UpdateTarget.h>
 
swu_result_t swu_target_get_id( swu_target_t target, 
                                swu_target_id_t *id )

Arguments:

target
Handle of an UpdateTarget whose ID is requested by the caller.
id
A valid target ID on success.

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 ID assigned to the UpdateTarget specified in target. The ID is assigned to the UpdateTarget when it calls swu_target_register(). Each UpdateTarget is given a different ID by the library, but this ID isn't unique across power cycles.

Returns:

One of the following swu_result_t values:

SWU_RESULT_SUCCESS
The operation succeeded.
SWU_RESULT_INVALID_ARGUMENT
The target ID was invalid.