EventLoop_UnregisterIo Function
Header: #include <applibs/eventloop.h>
Unregisters an I/O event from an EventLoop object.
int EventLoop_UnregisterIo(EventLoop *el, EventRegistration *reg);
Parameters
el
TheEventLoop
to which the I/O event is registered.reg
The EventRegistration object returned by EventLoop_RegisterIo. If this value is NULL, no action occurs and the function returns success.
Return value
Returns 0 for success, or -1 for failure, in which case errno
is set to the error value.
Remarks
The EventRegistration object must be returned by the EventLoop_RegisterIo call for the same EventLoop
object. Trying to unregister an EventRegistration
object from a different EventLoop
or another object will lead to undefined behavior.
An active EventRegistration
object can be unregistered once. Trying to unregister it multiple times will lead to undefined behavior.