EZwgl provides a timer-like mechanism for reading and writing files in a event-driven fashion.
EZ_Input *EZ_AddInput(int fd, int mask,
EZ_InputCallBack callback, void *data)
This function registers a new source of events: the status change of
the specifed file descripter. From the time a fd is registered on,
the specified status of fd is watched by the main event
handler. Whenever the specified status changes, callback will
be invoked.
This function returns the allocated data structure on success and
NULL on failure.
EZ_Input *EZ_RemoveInput(EZ_Input inputId)
This function remove the specified EZ_Input from the list
of file event sources. Once removed, the status of the corresponding
fd will no longer be watched.