From: Amos Jeffries Date: Wed, 2 Jul 2008 02:46:08 +0000 (+1200) Subject: Cleanups: Shuffle ident API into its own header file X-Git-Tag: SQUID_3_1_0_1~49^2~174 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a7431b89fa409cba7280ea71164afdc6b3e1164;p=thirdparty%2Fsquid.git Cleanups: Shuffle ident API into its own header file This reduces a few more links to protos.h by moving the small ident.c requirements into ident.h in preparation for modulising that component. --- diff --git a/src/ACLIdent.cc b/src/ACLIdent.cc index da842b0824..a7298e2b4f 100644 --- a/src/ACLIdent.cc +++ b/src/ACLIdent.cc @@ -41,6 +41,7 @@ #include "ACLRegexData.h" #include "ACLUserData.h" #include "client_side.h" +#include "ident.h" ACLIdent::~ACLIdent() { diff --git a/src/client_side.cc b/src/client_side.cc index 71e06ce4ca..af5cb250f7 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -93,6 +93,7 @@ #include "HttpHdrContRange.h" #include "HttpReply.h" #include "HttpRequest.h" +#include "ident.h" #include "MemObject.h" #include "fde.h" #include "client_side_request.h" diff --git a/src/ident.cc b/src/ident.cc index d7acd6fab0..5e9b6836b9 100644 --- a/src/ident.cc +++ b/src/ident.cc @@ -1,4 +1,3 @@ - /* * $Id: ident.cc,v 1.78 2007/12/14 23:11:47 amosjeffries Exp $ * @@ -34,6 +33,7 @@ */ #include "squid.h" +#include "ident.h" #include "comm.h" #include "MemBuf.h" diff --git a/src/ident.h b/src/ident.h new file mode 100644 index 0000000000..a00043e97a --- /dev/null +++ b/src/ident.h @@ -0,0 +1,28 @@ +/* + * $Id$ + */ +#ifndef SQUID_IDENT_H +#define SQUID_IDENT_H + +/* + \defgroup IdentAPI Ident Lookup API + \ingroup SquidComponents + * + */ + +#include "config.h" + +#if USE_IDENT + +#include "cbdata.h" + +class IPAddress; + +/// \ingroup IdentAPI +SQUIDCEXTERN void identStart(IPAddress &me, IPAddress &my_peer, IDCB * callback, void *cbdata); + +/// \ingroup IdentAPI +SQUIDCEXTERN void identInit(void); + +#endif /* USE_IDENT */ +#endif /* SQUID_IDENT_H */ diff --git a/src/main.cc b/src/main.cc index 006a9e6e98..6310e4bf17 100644 --- a/src/main.cc +++ b/src/main.cc @@ -43,6 +43,7 @@ #include "ExternalACL.h" #include "Store.h" #include "ICP.h" +#include "ident.h" #include "HttpReply.h" #include "pconn.h" #include "Mem.h" diff --git a/src/protos.h b/src/protos.h index 5b338ebd68..f91473f46d 100644 --- a/src/protos.h +++ b/src/protos.h @@ -476,14 +476,6 @@ extern void reconfigure(int); extern void start_announce(void *unused); extern void waisStart(FwdState *); -/* ident.c */ -#if USE_IDENT - -SQUIDCEXTERN void identStart(IPAddress &me, IPAddress &my_peer, - IDCB * callback, void *cbdata); -SQUIDCEXTERN void identInit(void); -#endif - SQUIDCEXTERN void statInit(void); extern void statRegisterWithCacheManager(CacheManager & manager); SQUIDCEXTERN void statFreeMemory(void);