X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Flogging.h;h=1d6b798b02438436e6c0db1851fd3b7320dd69d6;hb=b63c3a1f0002675b6bedbd0b235e0ad0a708d4e3;hp=2e2ccf6f91d2e0e494a19f2bea1976950075f6f0;hpb=cc603e2765f17555ecdc2b74c27ebf96e6691bf6;p=tinc diff --git a/src/logging.h b/src/logging.h index 2e2ccf6f..1d6b798b 100644 --- a/src/logging.h +++ b/src/logging.h @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: logging.h,v 1.1 2002/04/13 10:25:38 zarq Exp $ + $Id: logging.h,v 1.5 2002/04/13 10:50:48 zarq Exp $ */ #ifndef __TINC_LOGGING_H__ @@ -50,9 +50,22 @@ typedef void (log_function_t)(int,int,char*,va_list); extern int debug_lvl; extern avl_tree_t *log_hooks_tree; -extern void log_message(int, int, char *, ...); +extern void log(int, int, char *, ...); extern void log_add_hook(log_function_t *); extern void log_del_hook(log_function_t *); extern log_function_t log_default_hook; +extern void tinc_syslog(int, char *, ...); + +#ifndef LOG_ERR /* Something from syslog.h */ +# define syslog tinc_syslog +#define LOG_EMERG 0 /* system is unusable */ +#define LOG_ALERT 1 /* action must be taken immediately */ +#define LOG_CRIT 2 /* critical conditions */ +#define LOG_ERR 3 /* error conditions */ +#define LOG_WARNING 4 /* warning conditions */ +#define LOG_NOTICE 5 /* normal but significant condition */ +#define LOG_INFO 6 /* informational */ +#define LOG_DEBUG 7 /* debug-level messages */ +#endif #endif /* __TINC_LOGGING_H__ */