swu_client_create_updates()

Create Update objects by reading a manifest file

Synopsis:

#include <swu/UpdateClient.h>

swu_result_t swu_client_create_updates( 
                            const char *path, 
                            swu_manifest_id_t *id )

Arguments:

path
Path of the update package.
id
Unique ID to identify the manifest file. This ID can be used later to release the Update objects created with swu_client_release_updates().

Library:

libswu-core

Use the -l swu-core option with qcc to link against the SWU library. This library is usually included automatically.

Description:

Create Update objects based on the manifest file found at the location in path. The manifest file stores software update information in the .ini file format (for details, see the Manifest file section). The Update objects created are associated with the manifest file ID specified in id.

If the library fails to parse any updates listed in the manifest file, the overall operation is considered to have failed and the function returns an SWU_RESULT_ERROR code.

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_NOT_INITIALIZED
The library hasn't been initialized yet.
SWU_RESULT_ERROR
Another error occurred.