]> git.decadent.org.uk Git - ion3.git/blob - mod_statusbar/ion-statusd/extlrx.c
[svn-inject] Installing original source of ion3
[ion3.git] / mod_statusbar / ion-statusd / extlrx.c
1 /*
2  * ion/mod_statusbar/ion-statusd/extlrx.c
3  *
4  * Copyright (c) Tuomo Valkonen 2004-2006.
5  *
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.
10  */
11
12 #include <libextl/extl.h>
13 #include <libtu/output.h>
14 #include <libtu/locale.h>
15
16
17 /*{{{ libtu */
18
19
20 /*EXTL_DOC
21  * Issue a warning. How the message is displayed depends on the current
22  * warning handler.
23  */
24 EXTL_EXPORT
25 void statusd_warn(const char *str)
26 {
27     warn("%s", str);
28 }
29
30
31 EXTL_EXPORT
32 const char *statusd_gettext(const char *s)
33 {
34     if(s==NULL)
35         return NULL;
36     else
37         return TR(s);
38 }
39
40
41 /*}}}*/
42