Last change
on this file was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[c5c522c] | 1 | /* $Id: error.h,v 1.13 2011/06/28 00:13:48 sbajic Exp $ */ |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | DSPAM |
---|
| 5 | COPYRIGHT (C) 2002-2012 DSPAM PROJECT |
---|
| 6 | |
---|
| 7 | This program is free software: you can redistribute it and/or modify |
---|
| 8 | it under the terms of the GNU Affero General Public License as |
---|
| 9 | published by the Free Software Foundation, either version 3 of the |
---|
| 10 | License, or (at your option) any later version. |
---|
| 11 | |
---|
| 12 | This program is distributed in the hope that it will be useful, |
---|
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 15 | GNU Affero General Public License for more details. |
---|
| 16 | |
---|
| 17 | You should have received a copy of the GNU Affero General Public License |
---|
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
| 19 | |
---|
| 20 | */ |
---|
| 21 | |
---|
| 22 | #ifdef HAVE_CONFIG_H |
---|
| 23 | #include <auto-config.h> |
---|
| 24 | #endif |
---|
| 25 | |
---|
| 26 | #ifndef _DSPAM_ERROR_H |
---|
| 27 | # define _DSPAM_ERROR_H |
---|
| 28 | |
---|
| 29 | #ifdef _WIN32 |
---|
| 30 | # define LOG_CRIT 2 |
---|
| 31 | # define LOG_ERR 3 |
---|
| 32 | # define LOG_WARNING 4 |
---|
| 33 | # define LOG_INFO 6 |
---|
| 34 | #else |
---|
| 35 | #include <syslog.h> |
---|
| 36 | #endif |
---|
| 37 | #ifdef DAEMON |
---|
| 38 | #include <pthread.h> |
---|
| 39 | extern pthread_mutex_t __syslog_lock; |
---|
| 40 | #endif |
---|
| 41 | |
---|
| 42 | #ifdef DEBUG |
---|
| 43 | extern int DO_DEBUG; |
---|
| 44 | #endif |
---|
| 45 | |
---|
| 46 | #ifndef DEBUG |
---|
| 47 | #define LOGDEBUG( ... ); |
---|
| 48 | #else |
---|
| 49 | void LOGDEBUG (const char *err, ... ); |
---|
| 50 | #endif |
---|
| 51 | |
---|
| 52 | #ifdef _WIN32 |
---|
| 53 | #define LOG ( ... ); |
---|
| 54 | #else |
---|
| 55 | void LOG (int priority, const char *err, ... ); |
---|
| 56 | #endif |
---|
| 57 | |
---|
| 58 | char *format_date_r (char *buf); |
---|
| 59 | |
---|
| 60 | void debug_out (const char *); |
---|
| 61 | |
---|
| 62 | #endif /* _DSPAM_ERROR_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.