- Timestamp:
- Jun 22, 2011, 12:37:22 AM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- aa69c1e
- Parents:
- a6a9ddb
- git-author:
- David Benjamin <davidben@mit.edu> (05/24/11 02:09:29)
- git-committer:
- David Benjamin <davidben@mit.edu> (06/22/11 00:37:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
r72146c7 r2d04312 48 48 struct sockaddr_in sin; 49 49 ZNotice_t req; 50 GIOChannel *channel; 50 51 51 52 /* … … 91 92 } 92 93 93 owl_select_add_io_dispatch(ZGetFD(), OWL_IO_READ|OWL_IO_EXCEPT, &owl_zephyr_finish_initialization, NULL, NULL); 94 } 95 96 void owl_zephyr_finish_initialization(const owl_io_dispatch *d, void *data) { 94 channel = g_io_channel_unix_new(ZGetFD()); 95 g_io_add_watch(channel, G_IO_IN | G_IO_PRI | G_IO_ERR | G_IO_HUP, 96 &owl_zephyr_finish_initialization, NULL); 97 g_io_channel_unref(channel); 98 } 99 100 gboolean owl_zephyr_finish_initialization(GIOChannel *source, GIOCondition condition, void *data) { 97 101 Code_t code; 98 102 char *perl; 99 103 GSource *event_source; 100 104 101 owl_select_remove_io_dispatch(d);102 103 105 ZClosePort(); 104 106 105 107 if ((code = ZInitialize()) != ZERR_NONE) { 106 108 owl_function_error("Initializing Zephyr: %s", error_message(code)); 107 return ;109 return FALSE; 108 110 } 109 111 110 112 if ((code = ZOpenPort(NULL)) != ZERR_NONE) { 111 113 owl_function_error("Initializing Zephyr: %s", error_message(code)); 112 return ;114 return FALSE; 113 115 } 114 116 … … 143 145 perl = owl_perlconfig_execute("BarnOwl::Zephyr::_zephyr_startup()"); 144 146 g_free(perl); 147 return FALSE; 145 148 } 146 149
Note: See TracChangeset
for help on using the changeset viewer.