Shift the definition out of globals.h into fde.h where the type class
is defined, and the instance into fde.cc.
Also, move it into the fde class scope as a static Table member.
Provides wrapper definition of fd_table to reduce patch impact.
#include "SquidTime.h"
#include "Store.h"
+fde *fd_table = NULL;
+
bool
fde::readPending(int fdNumber)
{
void noteUse(PconnPool *);
public:
+
+ /// global table of FD and their state.
+ static fde* Table;
+
unsigned int type;
unsigned short remote_port;
}
};
+#define fd_table fde::Table
+
int fdNFree(void);
#define FD_READ_METHOD(fd, buf, len) (*fd_table[fd].read_method)(fd, buf, len)
extern const char *pingStatusStr[];
extern const char *storeStatusStr[];
extern const char *swapStatusStr[];
-class fde;
-extern fde *fd_table; /* NULL */
extern int Biggest_FD; /* -1 */
extern int Number_FD; /* 0 */
extern int Opening_FD; /* 0 */