SysEvent_UnregisterForEventNotifications Function
Header: #include <applibs/sysevent.h>
Unregisters from the system notifications that were registered by SysEvent_RegisterForEventNotifications.
The EventRegistration struct must already be registered, and each EventRegistration
may only be unregistered once.
int SysEvent_UnregisterForEventNotifications(EventRegistration *reg);
Parameters
reg
TheEventRegistration
struct to remove from the event loop.
Errors
Returns -1 if an error is encountered and sets errno
to the error value.
- EFAULT: The
reg
parameter is NULL.
Any other errno
may also be returned, 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.