Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/utils.h @ 469:a926523d2392
Use UTF8 to handle resources and room nicknames
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 01 Oct 2005 23:17:05 +0200 |
parents | dfd9c62b3a39 |
children | 05c0e55c4bb1 |
comparison
equal
deleted
inserted
replaced
468:644b8bf9ca4d | 469:a926523d2392 |
---|---|
1 #ifndef __UTILS_H__ | 1 #ifndef __UTILS_H__ |
2 #define __UTILS_H__ 1 | 2 #define __UTILS_H__ 1 |
3 | |
4 #define to_utf8(s) ((s) ? g_locale_to_utf8((s), -1, NULL,NULL,NULL) : NULL) | |
5 #define from_utf8(s) ((s) ? g_locale_from_utf8((s), -1, NULL,NULL,NULL) : NULL) | |
3 | 6 |
4 void ut_InitDebug(unsigned int level, const char *file); | 7 void ut_InitDebug(unsigned int level, const char *file); |
5 void ut_WriteLog(unsigned int flag, const char *data); | 8 void ut_WriteLog(unsigned int flag, const char *data); |
6 | 9 |
7 int checkset_perm(const char *name, unsigned int setmode); | 10 int checkset_perm(const char *name, unsigned int setmode); |