swu_update_get_base_version()

Get the base version of a software update

Synopsis:

#include <swu/Update.h>
 
swu_result_t swu_update_get_base_version( 
                                swu_update_t update, 
                                swu_string_t *version )

Arguments:

update
Handle of the Update.
version
Pointer to the string to store the version.

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 base version of the software update referenced in update. This function retrieves the base version specified when the Update was created and stores it in version. Note that the version can't be changed after the Update has been created. An UpdateTarget should call this function to validate its update before attempting to install it.

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.