Revision: 14623
Author: adrian.chadd
Date: Mon Apr 19 02:27:56 2010
Log: Break out the client database specific declarations into a separate
header file.
http://code.google.com/p/lusca-cache/source/detail?r=14623
Added:
/branches/LUSCA_HEAD/src/client_db.h
Modified:
/branches/LUSCA_HEAD/src/acl.c
/branches/LUSCA_HEAD/src/client_db.c
/branches/LUSCA_HEAD/src/client_side.c
/branches/LUSCA_HEAD/src/icp_v2.c
/branches/LUSCA_HEAD/src/icp_v3.c
/branches/LUSCA_HEAD/src/main.c
/branches/LUSCA_HEAD/src/mem.c
/branches/LUSCA_HEAD/src/protos.h
=======================================
--- /dev/null
+++ /branches/LUSCA_HEAD/src/client_db.h Mon Apr 19 02:27:56 2010
@@ -0,0 +1,12 @@
+#ifndef __LUSCA_CLIENT_DB_H__
+#define __LUSCA_CLIENT_DB_H__
+
+extern void clientdbInitMem(void);
+extern void clientdbInit(void);
+extern void clientdbUpdate(struct in_addr, log_type, protocol_t,
squid_off_t);
+extern int clientdbCutoffDenied(struct in_addr);
+extern void clientdbDump(StoreEntry *);
+extern void clientdbFreeMemory(void);
+extern int clientdbEstablished(struct in_addr, int);
+
+#endif
=======================================
--- /branches/LUSCA_HEAD/src/acl.c Sat Feb 20 00:10:33 2010
+++ /branches/LUSCA_HEAD/src/acl.c Mon Apr 19 02:27:56 2010
@@ -35,6 +35,7 @@
#include "squid.h"
#include "splay.h"
+#include "client_db.h"
static void aclParseDomainList(void *curlist);
static void aclParseUserList(void **current);
=======================================
--- /branches/LUSCA_HEAD/src/client_db.c Wed Mar 24 20:14:05 2010
+++ /branches/LUSCA_HEAD/src/client_db.c Mon Apr 19 02:27:56 2010
@@ -37,6 +37,8 @@
#include "../libcore/radix.h"
+#include "client_db.h"
+
#define CLIENT_DB_SCHEDULE_BACKGROUND_TIME 300
#define CLIENT_DB_SCHEDULE_IMMEDIATE_TIME 5
=======================================
--- /branches/LUSCA_HEAD/src/client_side.c Mon Apr 5 00:40:47 2010
+++ /branches/LUSCA_HEAD/src/client_side.c Mon Apr 19 02:27:56 2010
@@ -35,6 +35,8 @@
#include "squid.h"
+#include "client_db.h"
+
#include "client_side_conn.h"
#include "client_side_body.h"
#include "client_side_request.h"
@@ -50,6 +52,7 @@
#include "store_vary.h"
+
#if LINGERING_CLOSE
#define comm_close comm_lingering_close
#endif
=======================================
--- /branches/LUSCA_HEAD/src/icp_v2.c Sat Jan 17 12:15:04 2009
+++ /branches/LUSCA_HEAD/src/icp_v2.c Mon Apr 19 02:27:56 2010
@@ -35,6 +35,8 @@
#include "squid.h"
+#include "client_db.h"
+
static void icpLogIcp(struct in_addr, log_type, int, const char *, int);
static void icpHandleIcpV2(int, struct sockaddr_in, char *, int);
static void icpCount(void *, int, size_t, int);
=======================================
--- /branches/LUSCA_HEAD/src/icp_v3.c Sat Jan 17 12:15:04 2009
+++ /branches/LUSCA_HEAD/src/icp_v3.c Mon Apr 19 02:27:56 2010
@@ -35,6 +35,8 @@
#include "squid.h"
+#include "client_db.h"
+
/* Currently Harvest cached-2.x uses ICP_VERSION_3 */
void
icpHandleIcpV3(int fd, struct sockaddr_in from, char *buf, int len)
=======================================
--- /branches/LUSCA_HEAD/src/main.c Tue Mar 23 21:09:29 2010
+++ /branches/LUSCA_HEAD/src/main.c Mon Apr 19 02:27:56 2010
@@ -34,6 +34,7 @@
*/
#include "squid.h"
+#include "client_db.h"
#if defined(USE_WIN32_SERVICE) && defined(_SQUID_WIN32_)
#include <windows.h>
=======================================
--- /branches/LUSCA_HEAD/src/mem.c Tue Apr 21 01:37:50 2009
+++ /branches/LUSCA_HEAD/src/mem.c Mon Apr 19 02:27:56 2010
@@ -34,6 +34,7 @@
*/
#include "squid.h"
+#include "client_db.h"
/* module globals */
=======================================
--- /branches/LUSCA_HEAD/src/protos.h Sun Apr 18 07:02:18 2010
+++ /branches/LUSCA_HEAD/src/protos.h Mon Apr 19 02:27:56 2010
@@ -108,14 +108,6 @@
/* cbdata.c */
extern void cbdataLocalInit(void);
-extern void clientdbInitMem(void);
-extern void clientdbInit(void);
-extern void clientdbUpdate(struct in_addr, log_type, protocol_t,
squid_off_t);
-extern int clientdbCutoffDenied(struct in_addr);
-extern void clientdbDump(StoreEntry *);
-extern void clientdbFreeMemory(void);
-extern int clientdbEstablished(struct in_addr, int);
-
extern char *clientConstructTraceEcho(clientHttpRequest *);
extern int checkNegativeHit(StoreEntry *);
extern void clientOpenListenSockets(void);
--
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en.