author | Mikael Berthe <mikael@lilotux.net> |
Mon, 26 Sep 2005 22:08:48 +0200 | |
changeset 452 | dfd9c62b3a39 |
parent 419 | 2f9852610cf4 |
child 469 | a926523d2392 |
permissions | -rw-r--r-- |
24 | 1 |
#ifndef __UTILS_H__ |
2 |
#define __UTILS_H__ 1 |
|
3 |
||
281
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
241
diff
changeset
|
4 |
void ut_InitDebug(unsigned int level, const char *file); |
374
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
364
diff
changeset
|
5 |
void ut_WriteLog(unsigned int flag, const char *data); |
24 | 6 |
|
362
d8f147d6e872
Check directory and config file permissions
Mikael Berthe <mikael@lilotux.net>
parents:
281
diff
changeset
|
7 |
int checkset_perm(const char *name, unsigned int setmode); |
d8f147d6e872
Check directory and config file permissions
Mikael Berthe <mikael@lilotux.net>
parents:
281
diff
changeset
|
8 |
|
241 | 9 |
int to_iso8601(char *dststr, time_t timestamp); |
10 |
time_t from_iso8601(const char *timestamp, int utc); |
|
11 |
||
419 | 12 |
inline void safe_usleep(unsigned int usec); /* Only for delays < 1s */ |
13 |
||
452 | 14 |
int check_jid_syntax(char *jid); |
15 |
||
16 |
void mc_strtolower(char *str); |
|
17 |
||
24 | 18 |
#endif |