1
/* FreeS/WAN log functions (log.h)
2
* Copyright (C) 2001-2002 Mathieu Lafon - Arkoon Network Security
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by the
6
* Free Software Foundation; either version 2 of the License, or (at your
7
* option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* RCSID $Id: starterlog.h,v 1.1 2004/01/20 20:47:42 mcr Exp $
17
#ifndef _STARTER_LOG_H_
18
#define _STARTER_LOG_H_
20
#define LOG_LEVEL_INFO 1
21
#define LOG_LEVEL_ERR 2
22
#define LOG_LEVEL_DEBUG 3
24
extern void starter_log (int level, const char *fmt, ...);
25
extern void starter_use_log (int debug, int console, int syslog);
26
extern void passert_fail(const char *pred_str, const char *file_str, unsigned long line_no);
30
extern void *xmalloc(size_t s);
31
extern char *xstrdup(char *s);
32
extern void *xrealloc(void *o, size_t s);
34
#endif /* _STARTER_LOG_H_ */