SysEvent_ResumeEvent Function

Header: #include <applibs/sysevent.h>

Attempts to resume an event if it is deferred.

This function can only be called if SysEvent_DeferEvent was called successfully, otherwise the call will fail. SysEvent_ResumeEvent is not required after a SysEvent_DeferEvent call. It should only be used if the update deferral is no longer needed.

int SysEvent_ResumeEvent(SysEvent_Events event);

Parameters

  • event The type of event to resume. Only one event can be specified in each call.

Errors

Returns -1 if an error is encountered and sets errno to the error value.

  • EACCES: The application doesn't have the capability to resume the event.

Any other errno may also be specified, but the same behavior might not be retained through system updates.

Return value

Returns 0 for success, or -1 for failure, in which case errno is set to the error value.

Application manifest requirements

The application manifest must include the SystemEventNotifications and SoftwareUpdateDeferral capabilities.