Only do one event at a time to a callback.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user