class StoreSearch;
class SwapDir;
-enum mem_status_t {
- NOT_IN_MEMORY,
- IN_MEMORY
-};
-
-enum store_status_t {
- STORE_OK,
- STORE_PENDING
-};
-
-enum swap_status_t {
- SWAPOUT_NONE,
- SWAPOUT_WRITING,
- SWAPOUT_DONE
-};
-
-enum store_client_t {
- STORE_NON_CLIENT,
- STORE_MEM_CLIENT,
- STORE_DISK_CLIENT
-};
-
extern StoreIoStats store_io_stats;
/// maximum number of entries per cache_dir
#ifndef SQUID_ENUMS_H
#define SQUID_ENUMS_H
+enum fd_type {
+ FD_NONE,
+ FD_LOG,
+ FD_FILE,
+ FD_SOCKET,
+ FD_PIPE,
+ FD_MSGHDR,
+ FD_UNKNOWN
+};
+
+enum {
+ FD_READ,
+ FD_WRITE
+};
+
typedef enum {
PEER_NONE,
PEER_SIBLING,
PEER_MULTICAST
} peer_t;
+typedef enum _mem_status_t {
+ NOT_IN_MEMORY,
+ IN_MEMORY
+} mem_status_t;
+
typedef enum {
PING_NONE,
PING_WAITING,
PING_DONE
} ping_status_t;
+typedef enum {
+ STORE_OK,
+ STORE_PENDING
+} store_status_t;
+
+typedef enum {
+ SWAPOUT_NONE,
+ SWAPOUT_WRITING,
+ SWAPOUT_DONE
+} swap_status_t;
+
+typedef enum {
+ STORE_NON_CLIENT,
+ STORE_MEM_CLIENT,
+ STORE_DISK_CLIENT
+} store_client_t;
+
/*
* These are for StoreEntry->flag, which is defined as a SHORT
*
#ifndef SQUID_FD_H_
#define SQUID_FD_H_
-enum fd_type {
- FD_NONE,
- FD_LOG,
- FD_FILE,
- FD_SOCKET,
- FD_PIPE,
- FD_MSGHDR,
- FD_UNKNOWN
-};
-
-enum {
- FD_READ,
- FD_WRITE
-};
-
void fd_close(int fd);
void fd_open(int fd, unsigned int type, const char *);
void fd_note(int fd, const char *);