SysEvent_Info_GetUpdateData Function

Header: #include <applibs/sysevent.h>

Retrieves application or OS update information.

The info parameter must be retrieved from a SysEvent_EventsCallback call when the event parameter is set to SysEvent_Events_Update.

int SysEvent_Info_GetUpdateData(const SysEvent_Info *info, SysEvent_Info_UpdateData *update_info);

Parameters

Errors

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

  • EFAULT: One or both of the parameters is NULL.
  • EINVAL: The info parameter is not from an update 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 capability.