Revision: 14260 Author: adrian.chadd Date: Tue Aug 4 08:00:11 2009 Log: Migrate out the client info struct into src/client_db.c ; it is currently only used there.
http://code.google.com/p/lusca-cache/source/detail?r=14260 Modified: /branches/LUSCA_HEAD/src/client_db.c /branches/LUSCA_HEAD/src/structs.h /branches/LUSCA_HEAD/src/typedefs.h ======================================= --- /branches/LUSCA_HEAD/src/client_db.c Tue May 19 00:49:28 2009 +++ /branches/LUSCA_HEAD/src/client_db.c Tue Aug 4 08:00:11 2009 @@ -35,6 +35,27 @@ #include "squid.h" +struct _ClientInfo { + hash_link hash; /* must be first */ + struct in_addr addr; + struct { + int result_hist[LOG_TYPE_MAX]; + int n_requests; + kb_t kbytes_in; + kb_t kbytes_out; + kb_t hit_kbytes_out; + } Http, Icp; + struct { + time_t time; + int n_req; + int n_denied; + } cutoff; + int n_established; /* number of current established connections */ + time_t last_seen; +}; + +typedef struct _ClientInfo ClientInfo; + static hash_table *client_table = NULL; static ClientInfo *clientdbAdd(struct in_addr addr); static FREE clientdbFreeItem; ======================================= --- /branches/LUSCA_HEAD/src/structs.h Sun Jul 26 21:46:32 2009 +++ /branches/LUSCA_HEAD/src/structs.h Tue Aug 4 08:00:11 2009 @@ -1904,25 +1904,6 @@ } swap; }; -struct _ClientInfo { - hash_link hash; /* must be first */ - struct in_addr addr; - struct { - int result_hist[LOG_TYPE_MAX]; - int n_requests; - kb_t kbytes_in; - kb_t kbytes_out; - kb_t hit_kbytes_out; - } Http, Icp; - struct { - time_t time; - int n_req; - int n_denied; - } cutoff; - int n_established; /* number of current established connections */ - time_t last_seen; -}; - struct _CacheDigest { /* public, read-only */ char *mask; /* bit mask */ ======================================= --- /branches/LUSCA_HEAD/src/typedefs.h Sat Apr 25 03:42:39 2009 +++ /branches/LUSCA_HEAD/src/typedefs.h Tue Aug 4 08:00:11 2009 @@ -118,7 +118,6 @@ typedef struct _StatCounters StatCounters; typedef struct _authConfig authConfig; typedef struct _cacheSwap cacheSwap; -typedef struct _ClientInfo ClientInfo; typedef struct _cd_guess_stats cd_guess_stats; typedef struct _CacheDigest CacheDigest; typedef struct _Version Version; --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
