From: Francesco Chemolli Date: Wed, 29 Aug 2012 15:48:14 +0000 (+0200) Subject: Moved prototype to newly-created repl_modules.h X-Git-Tag: sourceformat-review-1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e452f48d0d52efa189cca35ed57ac89b6afe8fbf;p=thirdparty%2Fsquid.git Moved prototype to newly-created repl_modules.h --- diff --git a/src/Makefile.am b/src/Makefile.am index 0c6829cae3..7793c90956 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -461,6 +461,7 @@ squid_SOURCES = \ StrList.cc \ stmem.cc \ stmem.h \ + repl_modules.h \ store.cc \ Store.h \ StoreFileSystem.cc \ @@ -1142,6 +1143,7 @@ tests_testHttpReply_SOURCES=\ StatCounters.cc \ StatHist.h \ tests/stub_StatHist.cc \ + repl_modules.h \ tests/stub_store.cc \ tests/stub_store_stats.cc \ tools.h \ @@ -1257,6 +1259,7 @@ tests_testACLMaxUserIP_SOURCES= \ tests/stub_mime.cc \ tests/stub_pconn.cc \ tests/stub_Port.cc \ + repl_modules.h \ tests/stub_store.cc \ tests/stub_store_rebuild.cc \ tests/stub_store_stats.cc \ @@ -1461,6 +1464,7 @@ tests_testCacheManager_SOURCES = \ StrList.cc \ tests/stub_StatHist.cc \ stmem.cc \ + repl_modules.h \ store.cc \ store_client.cc \ store_digest.cc \ @@ -1615,6 +1619,7 @@ tests_testDiskIO_SOURCES = \ store_key_md5.cc \ store_swapout.cc \ store_swapmeta.cc \ + repl_modules.h \ store.cc \ String.cc \ StrList.h \ @@ -1840,6 +1845,7 @@ tests_testEvent_SOURCES = \ StatHist.h \ StatHist.cc \ stmem.cc \ + repl_modules.h \ store.cc \ store_client.cc \ store_digest.cc \ @@ -2062,6 +2068,7 @@ tests_testEventLoop_SOURCES = \ StatHist.cc \ Mem.h \ stmem.cc \ + repl_modules.h \ store.cc \ store_client.cc \ store_digest.cc \ @@ -2281,6 +2288,7 @@ tests_test_http_range_SOURCES = \ StatHist.h \ StatHist.cc \ stmem.cc \ + repl_modules.h \ store.cc \ store_client.cc \ store_digest.cc \ @@ -2543,6 +2551,7 @@ tests_testHttpRequest_SOURCES = \ StatHist.h \ StatHist.cc \ stmem.cc \ + repl_modules.h \ store.cc \ store_client.cc \ store_digest.cc \ @@ -2676,6 +2685,7 @@ tests_testStore_SOURCES= \ StatHist.h \ StatHist.cc \ stmem.cc \ + repl_modules.h \ store.cc \ store_dir.cc \ store_io.cc \ @@ -2897,6 +2907,7 @@ tests_testUfs_SOURCES = \ HttpMsg.cc \ RemovalPolicy.cc \ store_dir.cc \ + repl_modules.h \ store.cc \ HttpRequestMethod.cc \ store_key_md5.h \ @@ -3046,6 +3057,7 @@ tests_testRock_SOURCES = \ StatHist.h \ tests/stub_StatHist.cc \ stmem.cc \ + repl_modules.h \ store.cc \ StoreFileSystem.cc \ StoreIOState.cc \ @@ -3197,6 +3209,7 @@ tests_testCoss_SOURCES = \ HttpMsg.cc \ RemovalPolicy.cc \ store_dir.cc \ + repl_modules.h \ store.cc \ HttpRequestMethod.cc \ store_key_md5.h \ @@ -3344,6 +3357,7 @@ tests_testNull_SOURCES = \ HttpMsg.cc \ RemovalPolicy.cc \ store_dir.cc \ + repl_modules.h \ store.cc \ HttpRequestMethod.cc \ store_key_md5.h \ @@ -3563,6 +3577,7 @@ tests_testURL_SOURCES = \ StatHist.h \ tests/stub_StatHist.cc \ stmem.cc \ + repl_modules.h \ store.cc \ store_client.cc \ store_digest.cc \ @@ -3713,6 +3728,7 @@ tests_testStatHist_SOURCES = \ tests/stub_mime.cc \ tests/stub_pconn.cc \ tests/stub_stmem.cc \ + repl_modules.h \ tests/stub_store.cc \ tests/stub_store_stats.cc \ tools.h \ diff --git a/src/protos.h b/src/protos.h index 0c15b9f6de..2d2e1abd3d 100644 --- a/src/protos.h +++ b/src/protos.h @@ -86,9 +86,6 @@ extern void shut_down(int); extern void rotate_logs(int); extern void reconfigure(int); -/* repl_modules.c */ -extern void storeReplSetup(void); - /* * store_log.c */ diff --git a/src/repl_modules.h b/src/repl_modules.h new file mode 100644 index 0000000000..ec0dd98d12 --- /dev/null +++ b/src/repl_modules.h @@ -0,0 +1,38 @@ +#ifndef SQUID_REPL_MODULES_H_ +#define SQUID_REPL_MODULES_H_ +/* + * 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. + * + */ + +/* + * Note: repl_modules.cc will be autogenerated. + */ + +extern void storeReplSetup(void); + +#endif /* SQUID_REPL_MODULES_H_ */ diff --git a/src/store.cc b/src/store.cc index 5bccf16093..a35a0f5a16 100644 --- a/src/store.cc +++ b/src/store.cc @@ -49,6 +49,7 @@ #include "mgr/StoreIoAction.h" #include "profiler/Profiler.h" #include "protos.h" +#include "repl_modules.h" #include "SquidTime.h" #include "Stack.h" #include "StatCounters.h"