X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fion-statusd%2Fextlrx.c;fp=utils%2Fion-statusd%2Fextlrx.c;h=4c13e33466a6a4ad9de47f8a7a250e6d41dc7349;hb=a6561c9679cd701b0d50c3cfd44e4664f7df2b2f;hp=0000000000000000000000000000000000000000;hpb=cd09055902de482a1be019bf4b4efdae64c98d35;p=ion3.git diff --git a/utils/ion-statusd/extlrx.c b/utils/ion-statusd/extlrx.c new file mode 100644 index 0000000..4c13e33 --- /dev/null +++ b/utils/ion-statusd/extlrx.c @@ -0,0 +1,42 @@ +/* + * ion/utils/ion-statusd/extlrx.c + * + * Copyright (c) Tuomo Valkonen 2004-2006. + * + * Ion is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + */ + +#include +#include +#include + + +/*{{{ libtu */ + + +/*EXTL_DOC + * Issue a warning. How the message is displayed depends on the current + * warning handler. + */ +EXTL_EXPORT +void statusd_warn(const char *str) +{ + warn("%s", str); +} + + +EXTL_EXPORT +const char *statusd_gettext(const char *s) +{ + if(s==NULL) + return NULL; + else + return TR(s); +} + + +/*}}}*/ +