3
* $Id: typedefs.h,v 1.188 2006/08/21 00:50:41 robertc Exp $
6
* SQUID Web Proxy Cache http://www.squid-cache.org/
7
* ----------------------------------------------------------
9
* Squid is the result of efforts by numerous individuals from
10
* the Internet community; see the CONTRIBUTORS file for full
11
* details. Many organizations have provided support for Squid's
12
* development; see the SPONSORS file for full details. Squid is
13
* Copyrighted (C) 2001 by the Regents of the University of
14
* California; see the COPYRIGHT file for full details. Squid
15
* incorporates software developed and/or copyrighted by other
16
* sources; see the CREDITS file for full details.
18
* This program is free software; you can redistribute it and/or modify
19
* it under the terms of the GNU General Public License as published by
20
* the Free Software Foundation; either version 2 of the License, or
21
* (at your option) any later version.
23
* This program is distributed in the hope that it will be useful,
24
* but WITHOUT ANY WARRANTY; without even the implied warranty of
25
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
* GNU General Public License for more details.
28
* You should have received a copy of the GNU General Public License
29
* along with this program; if not, write to the Free Software
30
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
36
#ifndef SQUID_TYPEDEFS_H
37
#define SQUID_TYPEDEFS_H
39
typedef unsigned int store_status_t;
40
typedef unsigned int ping_status_t;
41
typedef unsigned int swap_status_t;
42
typedef signed int sfileno;
43
typedef signed int sdirno;
53
typedef struct _acl_time_data acl_time_data;
55
typedef struct _acl_name_list acl_name_list;
57
typedef struct _acl_deny_info_list acl_deny_info_list;
59
typedef class AuthUser auth_user_t;
61
class AuthUserRequest;
62
typedef AuthUserRequest auth_user_request_t;
64
typedef struct AuthUserHashPointer auth_user_hash_pointer;
66
typedef struct AuthUserIP auth_user_ip_t;
68
/* temporary: once Config is fully hidden, this shouldn't be needed */
72
typedef Vector<AuthConfig *> authConfig;
74
typedef struct _acl_snmp_comm acl_snmp_comm;
76
typedef class ACLList acl_list;
78
typedef struct _acl_address acl_address;
80
typedef struct _acl_tos acl_tos;
82
typedef struct _acl_size_t acl_size_t;
86
typedef struct _ushortlist ushortlist;
88
typedef struct _relist relist;
90
typedef struct _sockaddr_in_list sockaddr_in_list;
92
typedef struct _http_port_list http_port_list;
94
typedef struct _https_port_list https_port_list;
96
typedef struct _SquidConfig SquidConfig;
98
typedef struct _SquidConfig2 SquidConfig2;
100
typedef struct _close_handler close_handler;
102
typedef struct _dread_ctrl dread_ctrl;
104
typedef struct _dnsserver_t dnsserver_t;
106
typedef struct _dwrite_q dwrite_q;
108
typedef struct _ETag ETag;
112
typedef struct _fileMap fileMap;
114
typedef struct _HttpHeaderFieldAttrs HttpHeaderFieldAttrs;
116
class HttpHeaderFieldInfo;
122
typedef struct _TimeOrTag TimeOrTag;
124
class HttpHeaderFieldStat;
126
typedef struct _HttpHeaderStat HttpHeaderStat;
128
typedef struct _HttpBody HttpBody;
132
typedef struct _ConnCloseHelperData ConnCloseHelperData;
134
typedef struct _ipcache_addrs ipcache_addrs;
136
typedef struct _domain_ping domain_ping;
138
typedef struct _domain_type domain_type;
140
typedef struct _DynPool DynPool;
142
typedef struct _DigestFetchState DigestFetchState;
146
typedef struct _peer peer;
148
typedef struct _net_db_name net_db_name;
150
typedef struct _net_db_peer net_db_peer;
152
typedef struct _netdbEntry netdbEntry;
154
typedef struct _pingerEchoData pingerEchoData;
156
typedef struct _pingerReplyData pingerReplyData;
158
typedef struct _icp_common_t icp_common_t;
160
typedef struct _Meta_data Meta_data;
162
typedef struct _iostats iostats;
172
typedef struct _http_state_flags http_state_flags;
174
typedef struct _header_mangler header_mangler;
176
typedef struct _body_size body_size;
180
typedef struct _cachemgr_passwd cachemgr_passwd;
182
typedef struct _refresh_t refresh_t;
184
typedef struct _CommWriteStateData CommWriteStateData;
186
typedef struct _StatCounters StatCounters;
188
typedef struct _storeSwapLogData storeSwapLogData;
190
typedef struct _StatHist StatHist;
192
typedef struct _ClientInfo ClientInfo;
194
typedef struct _cd_guess_stats cd_guess_stats;
196
typedef struct _CacheDigest CacheDigest;
198
typedef struct _Version Version;
200
typedef struct _link_list link_list;
202
typedef struct _Logfile Logfile;
204
typedef struct _logformat_token logformat_token;
206
typedef struct _logformat logformat;
208
typedef struct _customlog customlog;
211
typedef variable_list *(oid_ParseFn) (variable_list *, snint *);
213
typedef struct _snmp_request_t snmp_request_t;
216
typedef void FREE(void *);
217
typedef void CBDUNL(void *);
218
typedef void FOCB(void *, int fd, int errcode);
219
typedef void PF(int, void *);
221
/* disk.c / diskd.c callback typedefs */
222
typedef void DRCB(int, const char *buf, int size, int errflag, void *data);
224
typedef void DWCB(int, int, size_t, void *); /* disk write CB */
225
typedef void DOCB(int, int errflag, void *data); /* disk open CB */
226
typedef void DCCB(int, int errflag, void *data); /* disk close CB */
227
typedef void DUCB(int errflag, void *data); /* disk unlink CB */
228
typedef void DTCB(int errflag, void *data); /* disk trunc CB */
230
typedef void FQDNH(const char *, void *);
231
typedef void IDCB(const char *ident, void *data);
232
typedef void IPH(const ipcache_addrs *, void *);
233
typedef void IRCB(peer *, peer_t, protocol_t, void *, void *data);
236
typedef void PSC(FwdServer *, void *);
237
typedef void RH(void *data, char *);
241
typedef void UH(void *data, wordlist *);
242
typedef int READ_HANDLER(int, char *, int);
243
typedef int WRITE_HANDLER(int, const char *, int);
245
typedef int QS(const void *, const void *); /* qsort */
246
typedef void STABH(void *);
247
typedef void ERCB(int fd, void *, size_t);
248
typedef void OBJH(StoreEntry *);
249
typedef void SIGHDLR(int sig);
250
typedef void STVLDCB(void *, int, int);
251
typedef void HLPCB(void *, char *buf);
252
typedef int HLPSAVAIL(void *);
253
typedef void HLPSONEQ(void *);
254
typedef void HLPCMDOPTS(int *argc, char **argv);
255
typedef void IDNSCB(void *, rfc1035_rr *, int, const char *);
257
typedef double hbase_f(double);
258
typedef void StatHistBinDumper(StoreEntry *, int idx, double val, double size, int count);
261
typedef unsigned char cache_key;
263
/* context-based debugging, the actual type is subject to change */
266
/* in case we want to change it later */
267
typedef ssize_t mb_size_t;
269
typedef int STDIRSELECT(const StoreEntry *);
270
#endif /* SQUID_TYPEDEFS_H */