mcabber/src/utils.h
author Mikael Berthe <mikael@lilotux.net>
Sun, 24 Jul 2005 14:37:27 +0100
changeset 362 d8f147d6e872
parent 281 f562b9af2de7
child 364 33b8e801ffa6
permissions -rw-r--r--
Check directory and config file permissions * Check history directory and configuration file permissions, and correct them to 0700 and 0600 if necessary. * Warn when mcabber main directory ($HOME/.mcabber) has bad permissions * Reset UseFileLogging & FileLoadLogs when the log dir does not exist

#ifndef __UTILS_H__
#define __UTILS_H__ 1

void ut_InitDebug(unsigned int level, const char *file);
void ut_WriteLog(const char *fmt, ...);

int checkset_perm(const char *name, unsigned int setmode);

int    to_iso8601(char *dststr, time_t timestamp);
time_t from_iso8601(const char *timestamp, int utc);

#endif