enums.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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
12enum fd_type {
20};
21
22enum {
25};
26
27typedef enum {
33
34typedef enum _mem_status_t {
38
39typedef enum {
48
49typedef enum {
53
55typedef enum {
70
71typedef 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 */
83enum {
86
103
120
121/*
122 * These are for client Streams. Each node in the stream can be queried for
123 * its status
124 */
125typedef 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 */
141typedef enum {
146
147#if SQUID_SNMP
148enum {
153#endif /* SQUID_SNMP */
154
155enum {
162
163enum {
173
174enum {
176 RECV
178
179/*
180 * These are field indicators for raw cache-cache netdb transfers
181 */
182enum {
188
189/*
190 * Return codes from checkVary(request)
191 */
192enum {
198
199/*
200 * Store digest state enum
201 */
202typedef enum {
209
210/* CygWin & Windows NT Port */
211#if _SQUID_WINDOWS_
212/*
213 * Supported Windows OS types codes
214 */
215enum {
216 _WIN_OS_UNKNOWN,
217 _WIN_OS_WIN32S,
218 _WIN_OS_WIN95,
219 _WIN_OS_WIN98,
220 _WIN_OS_WINME,
221 _WIN_OS_WINNT,
222 _WIN_OS_WIN2K,
223 _WIN_OS_WINXP,
224 _WIN_OS_WINNET,
225 _WIN_OS_WINLON,
226 _WIN_OS_WIN7
227};
228#endif /* _SQUID_WINDOWS_ */
229
230enum {
235
236#if USE_HTCP
237/*
238 * TODO: This should be in htcp.h
239 */
240typedef enum {
244#endif /* USE_HTCP */
245
246#endif /* SQUID_ENUMS_H */
247
stateful_helper_callback_t
Definition: enums.h:141
@ S_HELPER_UNKNOWN
Definition: enums.h:142
@ S_HELPER_RELEASE
Definition: enums.h:144
@ S_HELPER_RESERVE
Definition: enums.h:143
digest_read_state_t
Definition: enums.h:202
@ DIGEST_READ_DONE
Definition: enums.h:207
@ DIGEST_READ_NONE
Definition: enums.h:203
@ DIGEST_READ_CBLOCK
Definition: enums.h:205
@ DIGEST_READ_REPLY
Definition: enums.h:204
@ DIGEST_READ_MASK
Definition: enums.h:206
@ DISABLE_PMTU_ALWAYS
Definition: enums.h:232
@ DISABLE_PMTU_OFF
Definition: enums.h:231
@ DISABLE_PMTU_TRANSPARENT
Definition: enums.h:233
_mem_status_t
Definition: enums.h:34
@ NOT_IN_MEMORY
Definition: enums.h:35
@ IN_MEMORY
Definition: enums.h:36
ping_status_t
Definition: enums.h:39
@ PING_WAITING
Sent ICP queries to peers and still awaiting responses.
Definition: enums.h:43
@ PING_NONE
Has not considered whether to send ICP queries to peers yet.
Definition: enums.h:41
@ PING_DONE
Definition: enums.h:46
htcp_clr_reason
Definition: enums.h:240
@ HTCP_CLR_INVALIDATION
Definition: enums.h:242
@ HTCP_CLR_PURGE
Definition: enums.h:241
enum _mem_status_t mem_status_t
fd_type
Definition: enums.h:12
@ FD_SOCKET
Definition: enums.h:16
@ FD_FILE
Definition: enums.h:15
@ FD_LOG
Definition: enums.h:14
@ FD_PIPE
Definition: enums.h:17
@ FD_UNKNOWN
Definition: enums.h:19
@ FD_NONE_TYPE
Definition: enums.h:13
@ FD_MSGHDR
Definition: enums.h:18
@ RECV
Definition: enums.h:176
@ SENT
Definition: enums.h:175
@ VARY_OTHER
Definition: enums.h:195
@ VARY_NONE
Definition: enums.h:193
@ VARY_CANCEL
Definition: enums.h:196
@ VARY_MATCH
Definition: enums.h:194
swap_status_t
StoreEntry relationship with a disk cache.
Definition: enums.h:55
@ SWAPOUT_FAILED
Definition: enums.h:68
@ SWAPOUT_NONE
Definition: enums.h:58
@ SWAPOUT_WRITING
Definition: enums.h:61
@ SWAPOUT_DONE
Definition: enums.h:64
clientStream_status_t
Definition: enums.h:125
@ STREAM_COMPLETE
Definition: enums.h:127
@ STREAM_UNPLANNED_COMPLETE
Definition: enums.h:132
@ STREAM_NONE
Definition: enums.h:126
@ STREAM_FAILED
Definition: enums.h:137
peer_t
Definition: enums.h:27
@ PEER_SIBLING
Definition: enums.h:29
@ PEER_PARENT
Definition: enums.h:30
@ PEER_NONE
Definition: enums.h:28
@ PEER_MULTICAST
Definition: enums.h:31
@ ENTRY_REQUIRES_COLLAPSING
Definition: enums.h:118
@ ENTRY_BAD_LENGTH
Definition: enums.h:114
@ ENTRY_VALIDATED
Definition: enums.h:113
@ ENTRY_SPECIAL
Definition: enums.h:84
@ KEY_PRIVATE
Definition: enums.h:102
@ ENTRY_FWD_HDR_WAIT
Definition: enums.h:111
@ DELAY_SENDING
Definition: enums.h:97
@ RELEASE_REQUEST
prohibits making the key public
Definition: enums.h:98
@ ENTRY_REVALIDATE_STALE
Definition: enums.h:100
@ ENTRY_DISPATCHED
Definition: enums.h:101
@ ENTRY_ABORTED
Definition: enums.h:115
@ ENTRY_NEGCACHED
Definition: enums.h:112
@ ENTRY_REVALIDATE_ALWAYS
Definition: enums.h:85
@ REFRESH_REQUEST
Definition: enums.h:99
@ NETDB_EX_NONE
Definition: enums.h:183
@ NETDB_EX_HOPS
Definition: enums.h:186
@ NETDB_EX_RTT
Definition: enums.h:185
@ NETDB_EX_NETWORK
Definition: enums.h:184
store_client_t
Definition: enums.h:71
@ STORE_DISK_CLIENT
Definition: enums.h:74
@ STORE_NON_CLIENT
Definition: enums.h:72
@ STORE_MEM_CLIENT
Definition: enums.h:73
@ FD_WRITE
Definition: enums.h:24
@ FD_READ
Definition: enums.h:23
@ SNMP_C_USER
Definition: enums.h:150
@ SNMP_C_COMMUNITY
Definition: enums.h:151
@ SNMP_C_VIEW
Definition: enums.h:149
store_status_t
Definition: enums.h:49
@ STORE_PENDING
Definition: enums.h:51
@ STORE_OK
Definition: enums.h:50
@ STORE_LOG_RELEASE
Definition: enums.h:159
@ STORE_LOG_CREATE
Definition: enums.h:156
@ STORE_LOG_SWAPIN
Definition: enums.h:157
@ STORE_LOG_SWAPOUTFAIL
Definition: enums.h:160
@ STORE_LOG_SWAPOUT
Definition: enums.h:158
@ PCTILE_HIT
Definition: enums.h:167
@ PCTILE_DNS
Definition: enums.h:166
@ PCTILE_HTTP
Definition: enums.h:164
@ PCTILE_ICP_REPLY
Definition: enums.h:171
@ PCTILE_ICP_QUERY
Definition: enums.h:165
@ PCTILE_NH
Definition: enums.h:170
@ PCTILE_NM
Definition: enums.h:169
@ PCTILE_MISS
Definition: enums.h:168

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors