4 * Copyright (c) Tuomo Valkonen 1999-2004.
6 * Ion is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
13 #include <libmainloop/signal.h>
18 /*{{{ libmainloop (timers) */
20 EXTL_CLASS(WTimer
, Obj
);
26 EXTL_EXPORT_AS(ioncore
, create_timer
)
27 WTimer
*create_timer_extl_owned();
31 * Reset timer (clear handler and stop timing).
34 void timer_reset(WTimer
*timer
);
41 bool timer_is_set(WTimer
*timer
);
45 * Set timer handler and timeout in milliseconds, and start timing.
47 EXTL_EXPORT_AS(WTimer
, set
)
48 void timer_set_extl(WTimer
*timer
, uint msecs
, ExtlFn fn
);
58 * Issue a warning. How the message is displayed depends on the current
62 void ioncore_warn(const char *str
)
69 const char *ioncore_gettext(const char *s
)