- Timestamp:
- Oct 27, 2009, 12:41:17 AM (15 years ago)
- Branches:
- master, release-1.10, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 6fc40a7
- Parents:
- ffc4df6
- git-author:
- Alejandro R. Sedeño <asedeno@mit.edu> (10/24/09 17:31:48)
- git-committer:
- Alejandro R. Sedeño <asedeno@mit.edu> (10/27/09 00:41:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
r12e291a r18fdd5f9 36 36 ZNotice_t req; 37 37 Code_t code; 38 owl_dispatch *dispatch;39 38 40 39 /* … … 80 79 } 81 80 82 dispatch = owl_malloc(sizeof(*dispatch)); 83 dispatch->fd = ZGetFD(); 84 dispatch->cfunc = owl_zephyr_finish_initialization; 85 dispatch->destroy = (void(*)(owl_dispatch*))owl_free; 86 87 owl_select_add_dispatch(dispatch); 88 } 89 90 void owl_zephyr_finish_initialization(owl_dispatch *d) { 81 owl_select_add_io_dispatch(ZGetFD(), OWL_IO_READ|OWL_IO_EXCEPT, &owl_zephyr_finish_initialization, NULL, NULL); 82 } 83 84 void owl_zephyr_finish_initialization(const owl_io_dispatch *d, void *data) { 91 85 Code_t code; 92 86 char *perl; 93 87 94 owl_select_remove_ dispatch(d->fd);88 owl_select_remove_io_dispatch(d); 95 89 96 90 ZClosePort(); … … 106 100 } 107 101 108 d = owl_malloc(sizeof(owl_dispatch)); 109 d->fd = ZGetFD(); 110 d->cfunc = &owl_zephyr_process_events; 111 d->destroy = NULL; 112 owl_select_add_dispatch(d); 102 owl_select_add_io_dispatch(ZGetFD(), OWL_IO_READ|OWL_IO_EXCEPT, &owl_zephyr_process_events, NULL, NULL); 103 113 104 owl_global_set_havezephyr(&g); 114 105 … … 1350 1341 } 1351 1342 1352 void owl_zephyr_process_events( owl_dispatch *d)1343 void owl_zephyr_process_events(const owl_io_dispatch *d, void *data) 1353 1344 { 1354 1345 _owl_zephyr_process_events();
Note: See TracChangeset
for help on using the changeset viewer.