From: Francesco Chemolli Date: Wed, 29 Aug 2012 14:08:06 +0000 (+0200) Subject: Moved multicast.cc-related prototypes to newly-created multicast.h X-Git-Tag: sourceformat-review-1~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=afabcc139587d1a387ca1490d32544c2d2a3933f;p=thirdparty%2Fsquid.git Moved multicast.cc-related prototypes to newly-created multicast.h --- diff --git a/src/Makefile.am b/src/Makefile.am index 827dba4405..48995659e1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -415,6 +415,7 @@ squid_SOURCES = \ mime.cc \ mime_header.h \ mime_header.cc \ + multicast.h \ multicast.cc \ neighbors.h \ neighbors.cc \ @@ -1418,6 +1419,7 @@ tests_testCacheManager_SOURCES = \ internal.h \ internal.cc \ list.cc \ + multicast.h \ multicast.cc \ mem_node.cc \ MemBuf.cc \ @@ -1801,6 +1803,7 @@ tests_testEvent_SOURCES = \ mime.cc \ mime_header.h \ mime_header.cc \ + multicast.h \ multicast.cc \ neighbors.h \ neighbors.cc \ @@ -2021,6 +2024,7 @@ tests_testEventLoop_SOURCES = \ mime.cc \ mime_header.h \ mime_header.cc \ + multicast.h \ multicast.cc \ neighbors.h \ neighbors.cc \ @@ -2238,6 +2242,7 @@ tests_test_http_range_SOURCES = \ mime.cc \ mime_header.h \ mime_header.cc \ + multicast.h \ multicast.cc \ neighbors.h \ neighbors.cc \ @@ -2490,6 +2495,7 @@ tests_testHttpRequest_SOURCES = \ internal.h \ internal.cc \ list.cc \ + multicast.h \ multicast.cc \ mem_node.cc \ MemBuf.cc \ @@ -3505,6 +3511,7 @@ tests_testURL_SOURCES = \ internal.h \ internal.cc \ list.cc \ + multicast.h \ multicast.cc \ Mem.h \ mem.cc \ diff --git a/src/icp_v2.cc b/src/icp_v2.cc index ce1e6d6353..e0aaf923dd 100644 --- a/src/icp_v2.cc +++ b/src/icp_v2.cc @@ -52,6 +52,7 @@ #include "ip/tools.h" #include "ipcache.h" #include "md5.h" +#include "multicast.h" #include "neighbors.h" #include "protos.h" #include "refresh.h" diff --git a/src/main.cc b/src/main.cc index 5091e692ff..9e1c474d4b 100644 --- a/src/main.cc +++ b/src/main.cc @@ -64,6 +64,7 @@ #include "icmp/net_db.h" #include "ICP.h" #include "ident/Ident.h" +#include "ipcache.h" #include "ipc/Coordinator.h" #include "ipc/Kids.h" #include "ipc/Strand.h" diff --git a/src/multicast.cc b/src/multicast.cc index 842823d013..8ea8fcebd2 100644 --- a/src/multicast.cc +++ b/src/multicast.cc @@ -39,6 +39,7 @@ // XXX: for icpIncomingConn - need to pass it as a generic parameter. #include "ICP.h" #include "ipcache.h" +#include "multicast.h" int mcastSetTtl(int fd, int mcast_ttl) diff --git a/src/multicast.h b/src/multicast.h new file mode 100644 index 0000000000..66e4d6f0e5 --- /dev/null +++ b/src/multicast.h @@ -0,0 +1,41 @@ +/* + * DEBUG: section + * AUTHOR: + * + * SQUID Web Proxy Cache http://www.squid-cache.org/ + * ---------------------------------------------------------- + * + * Squid is the result of efforts by numerous individuals from + * the Internet community; see the CONTRIBUTORS file for full + * details. Many organizations have provided support for Squid's + * development; see the SPONSORS file for full details. Squid is + * Copyrighted (C) 2001 by the Regents of the University of + * California; see the COPYRIGHT file for full details. Squid + * incorporates software developed and/or copyrighted by other + * sources; see the CREDITS file for full details. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. + * + */ + +#ifndef SQUID_MULTICAST_H_ +#define SQUID_MULTICAST_H_ + +#include "ipcache.h" + +extern int mcastSetTtl(int, int); +extern IPH mcastJoinGroups; + +#endif /* SQUID_MULTICAST_H_ */ diff --git a/src/neighbors.cc b/src/neighbors.cc index 373dc27ddf..568065ec10 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -47,6 +47,7 @@ #include "ipcache.h" #include "MemObject.h" #include "mgr/Registration.h" +#include "multicast.h" #include "neighbors.h" #include "PeerDigest.h" #include "PeerSelectState.h" diff --git a/src/protos.h b/src/protos.h index ac2dd14077..e5ba6bf146 100644 --- a/src/protos.h +++ b/src/protos.h @@ -80,11 +80,6 @@ extern variable_list *snmp_meshPtblFn(variable_list *, snint *); extern variable_list *snmp_meshCtblFn(variable_list *, snint *); #endif /* SQUID_SNMP */ - -#include "ipcache.h" -extern int mcastSetTtl(int, int); -extern IPH mcastJoinGroups; - #include "comm/forward.h" extern void getOutgoingAddress(HttpRequest * request, Comm::ConnectionPointer conn); extern Ip::Address getOutgoingAddr(HttpRequest * request, struct peer *dst_peer);