swu_update_get_id()

Get the unique identifier of a software update

Synopsis:

#include <swu/Update.h>
 
swu_result_t swu_update_get_id( 
                            swu_update_t update, 
                            swu_update_id_t *id )

Arguments:

update
Handle of the Update.
id
Pointer to the swu_update_id_t to store the ID.

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 unique identifier of the software update referenced in update. This function retrieves the unique ID assigned when the Update was created and stores it in id. The ID never changes during the same power cycle but can change across power cycles.

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.