Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
989:7a727ba3f441 | 990:8dd42310dd79 |
---|---|
267 } else { | 267 } else { |
268 for(i = 0; i < io_man->n_monitor; i++) { | 268 for(i = 0; i < io_man->n_monitor; i++) { |
269 if(io_man->monitors[i].type == MB_IO_R || | 269 if(io_man->monitors[i].type == MB_IO_R || |
270 io_man->monitors[i].type == MB_IO_RW) { | 270 io_man->monitors[i].type == MB_IO_RW) { |
271 if(FD_ISSET(io_man->monitors[i].fd, &rfds)) | 271 if(FD_ISSET(io_man->monitors[i].fd, &rfds)) |
272 ioman->monitors[i].cb(io_man->monitors[i].fd, | 272 ioman->monitors[i].cb(i, io_man->monitors[i].fd, |
273 MB_IO_R, | 273 MB_IO_R, |
274 rt->monitors[i].data); | 274 rt->monitors[i].data); |
275 } | 275 } |
276 if(io_man->monitors[i].type == MB_IO_W || | 276 if(io_man->monitors[i].type == MB_IO_W || |
277 io_man->monitors[i].type == MB_IO_RW) { | 277 io_man->monitors[i].type == MB_IO_RW) { |
278 if(FD_ISSET(io_man->monitors[i].fd, &wfds)) | 278 if(FD_ISSET(io_man->monitors[i].fd, &wfds)) |
279 io_man->monitors[i].cb(io_man->monitors[i].fd, | 279 io_man->monitors[i].cb(i, io_man->monitors[i].fd, |
280 MB_IO_W, | 280 MB_IO_W, |
281 io_man->monitors[i].data); | 281 io_man->monitors[i].data); |
282 } | 282 } |
283 } | 283 } |
284 } | 284 } |