swu_client_configuration_get_update_grace_period()

Get the default grace period for accepting software updates

Synopsis:

#include <swu/ClientConfiguration.h>
 
swu_result_t swu_client_configuration_get_update_grace_period( 
                                    swu_timestamp_t *period )

Arguments:

period
On output, the grace period (in seconds).

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 default grace period for accepting software updates. This default setting applies to any Update that didn't have its own grace period defined when it was created. To learn the grace period for an individual Update, call swu_update_get_grace_period().

Note: In this release, the grace period has no impact on how the SWU library handles updates. The grace period is just kept as metadata describing an update (because this value can be set in the manifest file).

Returns:

One of the following swu_result_t values:

SWU_RESULT_SUCCESS
The operation succeeded.
SWU_RESULT_INVALID_ARGUMENT
An invalid argument (e.g., a bad pointer) was given.
SWU_RESULT_NOT_INITIALIZED
The library hasn't been initialized yet.
SWU_RESULT_ERROR
Another error occurred.