2 * ion/ext_statusbar/ion-statusd/extlrx.c
4 * Copyright (c) Tuomo Valkonen 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 <libtu/output.h>
14 #include <libtu/locale.h>
15 #include <libmainloop/signal.h>
18 /*{{{ libmainloop (timers) */
20 EXTL_CLASS(WTimer
, Obj
)
26 EXTL_EXPORT_AS(statusd
, 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 statusd_warn(const char *str
)
69 const char *statusd_gettext(const char *s
)