~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to src/typedefs.h

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2006-11-11 10:32:06 UTC
  • Revision ID: james.westby@ubuntu.com-20061111103206-f3p0r9g0vq44rp3r
Tags: upstream-3.0.PRE5
ImportĀ upstreamĀ versionĀ 3.0.PRE5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
 * $Id: typedefs.h,v 1.188 2006/08/21 00:50:41 robertc Exp $
 
4
 *
 
5
 *
 
6
 * SQUID Web Proxy Cache          http://www.squid-cache.org/
 
7
 * ----------------------------------------------------------
 
8
 *
 
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.
 
17
 *
 
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.
 
22
 *  
 
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.
 
27
 *  
 
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.
 
31
 *
 
32
 */
 
33
 
 
34
#include "squid.h"
 
35
 
 
36
#ifndef SQUID_TYPEDEFS_H
 
37
#define SQUID_TYPEDEFS_H
 
38
 
 
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;
 
44
 
 
45
typedef struct
 
46
{
 
47
    size_t bytes;
 
48
    size_t kb;
 
49
}
 
50
 
 
51
kb_t;
 
52
 
 
53
typedef struct _acl_time_data acl_time_data;
 
54
 
 
55
typedef struct _acl_name_list acl_name_list;
 
56
 
 
57
typedef struct _acl_deny_info_list acl_deny_info_list;
 
58
 
 
59
typedef class AuthUser auth_user_t;
 
60
 
 
61
class AuthUserRequest;
 
62
typedef AuthUserRequest auth_user_request_t;
 
63
 
 
64
typedef struct AuthUserHashPointer auth_user_hash_pointer;
 
65
 
 
66
typedef struct AuthUserIP auth_user_ip_t;
 
67
 
 
68
/* temporary: once Config is fully hidden, this shouldn't be needed */
 
69
#include "Array.h"
 
70
 
 
71
class AuthConfig;
 
72
typedef Vector<AuthConfig *> authConfig;
 
73
 
 
74
typedef struct _acl_snmp_comm acl_snmp_comm;
 
75
 
 
76
typedef class ACLList acl_list;
 
77
 
 
78
typedef struct _acl_address acl_address;
 
79
 
 
80
typedef struct _acl_tos acl_tos;
 
81
 
 
82
typedef struct _acl_size_t acl_size_t;
 
83
 
 
84
class ACLChecklist;
 
85
 
 
86
typedef struct _ushortlist ushortlist;
 
87
 
 
88
typedef struct _relist relist;
 
89
 
 
90
typedef struct _sockaddr_in_list sockaddr_in_list;
 
91
 
 
92
typedef struct _http_port_list http_port_list;
 
93
 
 
94
typedef struct _https_port_list https_port_list;
 
95
 
 
96
typedef struct _SquidConfig SquidConfig;
 
97
 
 
98
typedef struct _SquidConfig2 SquidConfig2;
 
99
 
 
100
typedef struct _close_handler close_handler;
 
101
 
 
102
typedef struct _dread_ctrl dread_ctrl;
 
103
 
 
104
typedef struct _dnsserver_t dnsserver_t;
 
105
 
 
106
typedef struct _dwrite_q dwrite_q;
 
107
 
 
108
typedef struct _ETag ETag;
 
109
 
 
110
class fde;
 
111
 
 
112
typedef struct _fileMap fileMap;
 
113
 
 
114
typedef struct _HttpHeaderFieldAttrs HttpHeaderFieldAttrs;
 
115
 
 
116
class HttpHeaderFieldInfo;
 
117
 
 
118
class HttpHeader;
 
119
 
 
120
class HttpHdrCc;
 
121
 
 
122
typedef struct _TimeOrTag TimeOrTag;
 
123
 
 
124
class HttpHeaderFieldStat;
 
125
 
 
126
typedef struct _HttpHeaderStat HttpHeaderStat;
 
127
 
 
128
typedef struct _HttpBody HttpBody;
 
129
 
 
130
class HttpReply;
 
131
 
 
132
typedef struct _ConnCloseHelperData ConnCloseHelperData;
 
133
 
 
134
typedef struct _ipcache_addrs ipcache_addrs;
 
135
 
 
136
typedef struct _domain_ping domain_ping;
 
137
 
 
138
typedef struct _domain_type domain_type;
 
139
 
 
140
typedef struct _DynPool DynPool;
 
141
 
 
142
typedef struct _DigestFetchState DigestFetchState;
 
143
 
 
144
class PeerDigest;
 
145
 
 
146
typedef struct _peer peer;
 
147
 
 
148
typedef struct _net_db_name net_db_name;
 
149
 
 
150
typedef struct _net_db_peer net_db_peer;
 
151
 
 
152
typedef struct _netdbEntry netdbEntry;
 
153
 
 
154
typedef struct _pingerEchoData pingerEchoData;
 
155
 
 
156
typedef struct _pingerReplyData pingerReplyData;
 
157
 
 
158
typedef struct _icp_common_t icp_common_t;
 
159
 
 
160
typedef struct _Meta_data Meta_data;
 
161
 
 
162
typedef struct _iostats iostats;
 
163
 
 
164
class MemBuf;
 
165
 
 
166
class store_client;
 
167
 
 
168
class StoreEntry;
 
169
 
 
170
class SwapDir;
 
171
 
 
172
typedef struct _http_state_flags http_state_flags;
 
173
 
 
174
typedef struct _header_mangler header_mangler;
 
175
 
 
176
typedef struct _body_size body_size;
 
177
 
 
178
class HttpRequest;
 
179
 
 
180
typedef struct _cachemgr_passwd cachemgr_passwd;
 
181
 
 
182
typedef struct _refresh_t refresh_t;
 
183
 
 
184
typedef struct _CommWriteStateData CommWriteStateData;
 
185
 
 
186
typedef struct _StatCounters StatCounters;
 
187
 
 
188
typedef struct _storeSwapLogData storeSwapLogData;
 
189
 
 
190
typedef struct _StatHist StatHist;
 
191
 
 
192
typedef struct _ClientInfo ClientInfo;
 
193
 
 
194
typedef struct _cd_guess_stats cd_guess_stats;
 
195
 
 
196
typedef struct _CacheDigest CacheDigest;
 
197
 
 
198
typedef struct _Version Version;
 
199
 
 
200
typedef struct _link_list link_list;
 
201
 
 
202
typedef struct _Logfile Logfile;
 
203
 
 
204
typedef struct _logformat_token logformat_token;
 
205
 
 
206
typedef struct _logformat logformat;
 
207
 
 
208
typedef struct _customlog customlog;
 
209
 
 
210
#if SQUID_SNMP
 
211
typedef variable_list *(oid_ParseFn) (variable_list *, snint *);
 
212
 
 
213
typedef struct _snmp_request_t snmp_request_t;
 
214
#endif
 
215
 
 
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 *);
 
220
 
 
221
/* disk.c / diskd.c callback typedefs */
 
222
typedef void DRCB(int, const char *buf, int size, int errflag, void *data);
 
223
/* Disk read CB */
 
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 */
 
229
 
 
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);
 
234
 
 
235
class FwdServer;
 
236
typedef void PSC(FwdServer *, void *);
 
237
typedef void RH(void *data, char *);
 
238
/* in wordlist.h */
 
239
 
 
240
class wordlist;
 
241
typedef void UH(void *data, wordlist *);
 
242
typedef int READ_HANDLER(int, char *, int);
 
243
typedef int WRITE_HANDLER(int, const char *, int);
 
244
 
 
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 *);
 
256
 
 
257
typedef double hbase_f(double);
 
258
typedef void StatHistBinDumper(StoreEntry *, int idx, double val, double size, int count);
 
259
 
 
260
/* MD5 cache keys */
 
261
typedef unsigned char cache_key;
 
262
 
 
263
/* context-based debugging, the actual type is subject to change */
 
264
typedef int Ctx;
 
265
 
 
266
/* in case we want to change it later */
 
267
typedef ssize_t mb_size_t;
 
268
 
 
269
typedef int STDIRSELECT(const StoreEntry *);
 
270
#endif /* SQUID_TYPEDEFS_H */