]> git.decadent.org.uk Git - ion3.git/blob - utils/ion-statusd/extlrx.c
Imported Upstream version 20090110
[ion3.git] / utils / ion-statusd / extlrx.c
1 /*
2  * ion/utils/ion-statusd/extlrx.c
3  *
4  * Copyright (c) Tuomo Valkonen 2004-2009.
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #include <libextl/extl.h>
10 #include <libtu/output.h>
11 #include <libtu/locale.h>
12
13
14 /*{{{ libtu */
15
16
17 /*EXTL_DOC
18  * Issue a warning. How the message is displayed depends on the current
19  * warning handler.
20  */
21 EXTL_EXPORT
22 void statusd_warn(const char *str)
23 {
24     warn("%s", str);
25 }
26
27
28 EXTL_EXPORT
29 const char *statusd_gettext(const char *s)
30 {
31     if(s==NULL)
32         return NULL;
33     else
34         return TR(s);
35 }
36
37
38 /*}}}*/
39