Mercurial > MadButterfly
diff src/X_supp.c @ 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 | 7a727ba3f441 |
children | 1882700bb4b9 |
line wrap: on
line diff
--- a/src/X_supp.c Mon Nov 22 00:42:29 2010 +0800 +++ b/src/X_supp.c Mon Nov 22 00:42:29 2010 +0800 @@ -269,14 +269,14 @@ if(io_man->monitors[i].type == MB_IO_R || io_man->monitors[i].type == MB_IO_RW) { if(FD_ISSET(io_man->monitors[i].fd, &rfds)) - ioman->monitors[i].cb(io_man->monitors[i].fd, + ioman->monitors[i].cb(i, io_man->monitors[i].fd, MB_IO_R, rt->monitors[i].data); } if(io_man->monitors[i].type == MB_IO_W || io_man->monitors[i].type == MB_IO_RW) { if(FD_ISSET(io_man->monitors[i].fd, &wfds)) - io_man->monitors[i].cb(io_man->monitors[i].fd, + io_man->monitors[i].cb(i, io_man->monitors[i].fd, MB_IO_W, io_man->monitors[i].data); }