7116eba8b0244943dcf8904bc9952ed3900a28e5
[citadel.git] / citadel / modules / network / serv_network.h
1 /*
2  * Copyright (c) 2000-2012 by the citadel.org team
3  *
4  *  This program is open source software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 3 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 extern int NetQDebugEnabled;
20
21 #define DBGLOG(LEVEL) if ((LEVEL != LOG_DEBUG) || (NetQDebugEnabled != 0))
22
23 #define QN_syslog(LEVEL, FORMAT, ...)                           \
24         DBGLOG(LEVEL) syslog(LEVEL,                             \
25                              "CC[%d]" FORMAT, \
26                              CCC->cs_pid, __VA_ARGS__)
27
28 #define QNM_syslog(LEVEL, FORMAT)                               \
29         DBGLOG(LEVEL) syslog(LEVEL,                             \
30                              "CC[%d]" FORMAT, \
31                              CCC->cs_pid)
32
33
34
35 void free_netfilter_list(void);
36 void load_network_filter_list(void);
37
38
39
40 void network_queue_room(struct ctdlroom *, void *);
41 ////void destroy_network_queue_room(void);
42 void network_bounce(struct CtdlMessage *msg, char *reason);
43