swu_client_configuration_set_update_grace_period()

Set the default grace period for accepting software updates

Synopsis:

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

Arguments:

period
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:

Set the default grace period for accepting software updates. This new default setting will override any grace period defined in the manifest file as well as the library's own default value of seven days. The new setting will apply to any Update that doesn't have its own grace period defined when it's 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_NOT_INITIALIZED
The library hasn't been initialized yet.
SWU_RESULT_ERROR
Another error occurred.