Standardize on the vi editing directives being on the first line.
[platform/upstream/busybox.git] / networking / udhcp / common.h
1 /* vi: set sw=4 ts=4: */
2 /* common.h
3  *
4  * Russ Dill <Russ.Dill@asu.edu> September 2001
5  * Rewritten by Vladimir Oleynik <dzo@simtreas.ru> (C) 2003
6  *
7  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8  */
9
10 #ifndef _COMMON_H
11 #define _COMMON_H
12
13 #include "libbb_udhcp.h"
14
15
16 enum syslog_levels {
17         LOG_EMERG = 0,
18         LOG_ALERT,
19         LOG_CRIT,
20         LOG_WARNING,
21         LOG_ERR,
22         LOG_INFO,
23         LOG_DEBUG
24 };
25 #include <syslog.h>
26
27 long uptime(void);
28
29 #define LOG(level, str, args...) udhcp_logging(level, str, ## args)
30
31 #if ENABLE_FEATURE_UDHCP_DEBUG
32 # define DEBUG(level, str, args...) LOG(level, str, ## args)
33 #else
34 # define DEBUG(level, str, args...) do {;} while(0)
35 #endif
36
37 #endif