Mercurial > MadButterfly
diff include/mb_backend.h @ 990:8dd42310dd79 refine_backend_if
Change signature of callback for IO and timer manager
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 22 Nov 2010 00:42:29 +0800 |
parents | c39d14139ca5 |
children | 1882700bb4b9 |
line wrap: on
line diff
--- a/include/mb_backend.h Mon Nov 22 00:42:29 2010 +0800 +++ b/include/mb_backend.h Mon Nov 22 00:42:29 2010 +0800 @@ -72,7 +72,7 @@ /*! \brief Function signature of callback functions for IO requests. */ -typedef void (*mb_IO_cb_t)(int fd, MB_IO_TYPE type, void *data); +typedef void (*mb_IO_cb_t)(int hdl, int fd, MB_IO_TYPE type, void *data); /*! \brief IO Manager */ @@ -94,7 +94,7 @@ /*! \brief Function signature of callback functions for timers. */ -typedef void (*mb_timer_cb_t)(mbsec_t sec, mbusec_t usec, void *data); +typedef void (*mb_timer_cb_t)(int hdl, mbsec_t sec, mbusec_t usec, void *data); /*! \brief Timer manager */