Only do one event at a time to a callback.

This commit is contained in:
Nils O. Selåsdal
2013-11-09 11:06:19 +01:00
parent a4c6b65d5f
commit 6b26812cf3
3 changed files with 38 additions and 27 deletions
+3 -2
View File
@@ -42,10 +42,11 @@ struct IOMux;
struct IOMuxFD;
/** Callback function used in struct IOMuxFD
*
* @param mux the mux that issued the callback.
* @param fd the file desciptor structure.
* @param event A bitmask of the MUX_EV_XX values. Both a read and a write event
* might be signalled in the same callback
* @param event A bitmask of the MUX_EV_XX values. Only one event(bit)
* will be signalled in the same callback
*/
typedef void (*iomux_cb)(struct IOMux *mux, struct IOMuxFD *fd, unsigned int event);