enums.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_ENUMS_H
10 #define SQUID_ENUMS_H
11 
12 enum fd_type {
20 };
21 
22 enum {
25 };
26 
27 typedef enum {
32 } peer_t;
33 
34 typedef enum _mem_status_t {
37 } mem_status_t;
38 
39 typedef enum {
48 
49 typedef enum {
53 
55 typedef enum {
70 
71 typedef enum {
76 
77 /*
78  * These are for StoreEntry->flag, which is defined as a SHORT
79  *
80  * NOTE: These flags are written to swap.state, so think very carefully
81  * about deleting or re-assigning!
82  */
83 enum {
86 
103 
119 };
120 
121 /*
122  * These are for client Streams. Each node in the stream can be queried for
123  * its status
124  */
125 typedef enum {
126  STREAM_NONE, /* No particular status */
127  STREAM_COMPLETE, /* All data has been flushed, no more reads allowed */
128  /* an unpredicted end has occurred, no more
129  * reads occurred, but no need to tell
130  * downstream that an error occurred
131  */
133  /* An error has occurred in this node or an above one,
134  * and the node is not generating an error body / it's
135  * midstream
136  */
139 
140 /* stateful helper callback response codes */
141 typedef enum {
146 
147 #if SQUID_SNMP
148 enum {
152 };
153 #endif /* SQUID_SNMP */
154 
155 enum {
161 };
162 
163 enum {
172 };
173 
174 enum {
177 };
178 
179 /*
180  * These are field indicators for raw cache-cache netdb transfers
181  */
182 enum {
187 };
188 
189 /*
190  * Return codes from checkVary(request)
191  */
192 enum {
197 };
198 
199 /*
200  * Store digest state enum
201  */
202 typedef enum {
210 
211 /* CygWin & Windows NT Port */
212 #if _SQUID_WINDOWS_
213 /*
214  * Supported Windows OS types codes
215  */
216 enum {
217  _WIN_OS_UNKNOWN,
218  _WIN_OS_WIN32S,
219  _WIN_OS_WIN95,
220  _WIN_OS_WIN98,
221  _WIN_OS_WINME,
222  _WIN_OS_WINNT,
223  _WIN_OS_WIN2K,
224  _WIN_OS_WINXP,
225  _WIN_OS_WINNET,
226  _WIN_OS_WINLON,
227  _WIN_OS_WIN7
228 };
229 #endif /* _SQUID_WINDOWS_ */
230 
231 enum {
235 };
236 
237 #if USE_HTCP
238 /*
239  * TODO: This should be in htcp.h
240  */
241 typedef enum {
245 #endif /* USE_HTCP */
246 
247 #endif /* SQUID_ENUMS_H */
248 
@ PCTILE_NH
Definition: enums.h:170
@ S_HELPER_UNKNOWN
Definition: enums.h:142
@ PEER_MULTICAST
Definition: enums.h:31
@ PCTILE_MISS
Definition: enums.h:168
@ STORE_LOG_CREATE
Definition: enums.h:156
@ STORE_LOG_SWAPOUTFAIL
Definition: enums.h:160
@ DIGEST_READ_NONE
Definition: enums.h:203
@ VARY_NONE
Definition: enums.h:193
@ ENTRY_REVALIDATE_STALE
Definition: enums.h:100
@ FD_WRITE
Definition: enums.h:24
digest_read_state_t
Definition: enums.h:202
@ PCTILE_ICP_REPLY
Definition: enums.h:171
fd_type
Definition: enums.h:12
@ DELAY_SENDING
Definition: enums.h:97
@ STREAM_NONE
Definition: enums.h:126
@ PCTILE_HTTP
Definition: enums.h:164
@ SNMP_C_VIEW
Definition: enums.h:149
@ KEY_PRIVATE
Definition: enums.h:102
@ PING_WAITING
Sent ICP queries to peers and still awaiting responses.
Definition: enums.h:43
@ NETDB_EX_NETWORK
Definition: enums.h:184
@ FD_SOCKET
Definition: enums.h:16
@ REFRESH_REQUEST
Definition: enums.h:99
@ FD_LOG
Definition: enums.h:14
@ ENTRY_NEGCACHED
Definition: enums.h:112
@ SWAPOUT_WRITING
Definition: enums.h:61
@ SNMP_C_USER
Definition: enums.h:150
@ S_HELPER_RELEASE
Definition: enums.h:144
@ PCTILE_NM
Definition: enums.h:169
@ SWAPOUT_DONE
Definition: enums.h:64
@ STREAM_COMPLETE
Definition: enums.h:127
swap_status_t
StoreEntry relationship with a disk cache.
Definition: enums.h:55
@ STORE_LOG_SWAPIN
Definition: enums.h:157
@ NETDB_EX_RTT
Definition: enums.h:185
@ STREAM_FAILED
Definition: enums.h:137
_mem_status_t
Definition: enums.h:34
@ ENTRY_BAD_LENGTH
Definition: enums.h:114
enum _mem_status_t mem_status_t
@ ENTRY_SPECIAL
Definition: enums.h:84
@ ENTRY_FWD_HDR_WAIT
Definition: enums.h:111
@ STORE_MEM_CLIENT
Definition: enums.h:73
@ HTCP_CLR_INVALIDATION
Definition: enums.h:243
peer_t
Definition: enums.h:27
@ DIGEST_READ_DONE
Definition: enums.h:208
store_status_t
Definition: enums.h:49
@ STORE_NON_CLIENT
Definition: enums.h:72
@ DISABLE_PMTU_ALWAYS
Definition: enums.h:233
@ IN_MEMORY
Definition: enums.h:36
@ PEER_PARENT
Definition: enums.h:30
@ ENTRY_VALIDATED
Definition: enums.h:113
store_client_t
Definition: enums.h:71
@ PCTILE_DNS
Definition: enums.h:166
@ HTCP_CLR_PURGE
Definition: enums.h:242
@ ENTRY_REVALIDATE_ALWAYS
Definition: enums.h:85
@ FD_READ
Definition: enums.h:23
@ STORE_DISK_CLIENT
Definition: enums.h:74
@ DIGEST_READ_HEADERS
Definition: enums.h:205
@ STREAM_UNPLANNED_COMPLETE
Definition: enums.h:132
stateful_helper_callback_t
Definition: enums.h:141
@ STORE_LOG_SWAPOUT
Definition: enums.h:158
@ NETDB_EX_NONE
Definition: enums.h:183
@ PEER_NONE
Definition: enums.h:28
@ NOT_IN_MEMORY
Definition: enums.h:35
@ DISABLE_PMTU_TRANSPARENT
Definition: enums.h:234
@ STORE_LOG_RELEASE
Definition: enums.h:159
@ PING_NONE
Has not considered whether to send ICP queries to peers yet.
Definition: enums.h:41
@ DIGEST_READ_CBLOCK
Definition: enums.h:206
@ FD_NONE_TYPE
Definition: enums.h:13
@ STORE_OK
Definition: enums.h:50
@ VARY_OTHER
Definition: enums.h:195
@ SNMP_C_COMMUNITY
Definition: enums.h:151
@ DISABLE_PMTU_OFF
Definition: enums.h:232
@ ENTRY_DISPATCHED
Definition: enums.h:101
@ S_HELPER_RESERVE
Definition: enums.h:143
@ ENTRY_ABORTED
Definition: enums.h:115
@ PING_DONE
Definition: enums.h:46
@ ENTRY_REQUIRES_COLLAPSING
Definition: enums.h:118
@ VARY_MATCH
Definition: enums.h:194
ping_status_t
Definition: enums.h:39
@ SENT
Definition: enums.h:175
@ SWAPOUT_FAILED
Definition: enums.h:68
clientStream_status_t
Definition: enums.h:125
@ VARY_CANCEL
Definition: enums.h:196
@ DIGEST_READ_MASK
Definition: enums.h:207
@ FD_MSGHDR
Definition: enums.h:18
@ RELEASE_REQUEST
prohibits making the key public
Definition: enums.h:98
@ DIGEST_READ_REPLY
Definition: enums.h:204
@ PCTILE_HIT
Definition: enums.h:167
@ FD_PIPE
Definition: enums.h:17
@ NETDB_EX_HOPS
Definition: enums.h:186
@ FD_UNKNOWN
Definition: enums.h:19
@ PCTILE_ICP_QUERY
Definition: enums.h:165
@ PEER_SIBLING
Definition: enums.h:29
@ SWAPOUT_NONE
Definition: enums.h:58
htcp_clr_reason
Definition: enums.h:241
@ RECV
Definition: enums.h:176
@ FD_FILE
Definition: enums.h:15
@ STORE_PENDING
Definition: enums.h:51

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors