Mercurial > pidgin
comparison src/eventloop.c @ 8280:084ed9f7ac19
[gaim-migrate @ 9004]
Soem tweaks from Scott Lamb for the event loop code.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Tue, 17 Feb 2004 08:43:44 +0000 |
| parents | f24172f53650 |
| children | ef881489396e |
comparison
equal
deleted
inserted
replaced
| 8279:319448d52b33 | 8280:084ed9f7ac19 |
|---|---|
| 32 GaimEventLoopUiOps *ops = gaim_eventloop_get_ui_ops(); | 32 GaimEventLoopUiOps *ops = gaim_eventloop_get_ui_ops(); |
| 33 | 33 |
| 34 return ops->timeout_add(interval, function, data); | 34 return ops->timeout_add(interval, function, data); |
| 35 } | 35 } |
| 36 | 36 |
| 37 gint | 37 guint |
| 38 gaim_input_add(int source, GaimInputCondition condition, GaimInputFunction func, gpointer user_data) | 38 gaim_input_add(int source, GaimInputCondition condition, GaimInputFunction func, gpointer user_data) |
| 39 { | 39 { |
| 40 GaimEventLoopUiOps *ops = gaim_eventloop_get_ui_ops(); | 40 GaimEventLoopUiOps *ops = gaim_eventloop_get_ui_ops(); |
| 41 | 41 |
| 42 return ops->input_add(source, condition, func, user_data); | 42 return ops->input_add(source, condition, func, user_data); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void | 45 void |
| 46 gaim_input_remove(gint tag) | 46 gaim_input_remove(guint tag) |
| 47 { | 47 { |
| 48 GaimEventLoopUiOps *ops = gaim_eventloop_get_ui_ops(); | 48 GaimEventLoopUiOps *ops = gaim_eventloop_get_ui_ops(); |
| 49 | 49 |
| 50 return ops->input_remove(tag); | 50 return ops->input_remove(tag); |
| 51 } | 51 } |
