comparison src/core.c @ 8273:f24172f53650

[gaim-migrate @ 8997] This is Scott Lamb's eventloop abstraction patch. If it breaks things, Scott Lamb will be glad to take the punishment. If it doesn't, it should make integration into other event loops easier. Well, no, not easier, harder actually, but it'll be done more appropriately and less hackily.. er, hacky. Is hackily a word? committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 17 Feb 2004 02:17:48 +0000
parents 63c7a16a2c09
children 81b31af2752d
comparison
equal deleted inserted replaced
8272:9af78e73f0b2 8273:f24172f53650
157 gaim_core_get_version(void) 157 gaim_core_get_version(void)
158 { 158 {
159 return VERSION; 159 return VERSION;
160 } 160 }
161 161
162 gboolean
163 gaim_core_mainloop_events_pending(void)
164 {
165 return g_main_context_pending(g_main_context_default());
166 }
167
168 void
169 gaim_core_mainloop_iteration(void)
170 {
171 g_main_context_iteration(g_main_context_default(), FALSE);
172 }
173
174 void
175 gaim_core_mainloop_finish_events(void)
176 {
177 while (gaim_core_mainloop_events_pending())
178 gaim_core_mainloop_iteration();
179 }
180
181 const char * 162 const char *
182 gaim_core_get_ui(void) 163 gaim_core_get_ui(void)
183 { 164 {
184 GaimCore *core = gaim_get_core(); 165 GaimCore *core = gaim_get_core();
185 166