From: Francesco Chemolli Date: Mon, 24 Sep 2012 19:27:10 +0000 (+0200) Subject: moved dread_ctrl to disk.h X-Git-Tag: SQUID_3_3_0_1~33^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65914896bc27c2b9d429fb382c0c4f3d963731b0;p=thirdparty%2Fsquid.git moved dread_ctrl to disk.h --- diff --git a/src/disk.cc b/src/disk.cc index 21b127de5b..1e2595acc3 100644 --- a/src/disk.cc +++ b/src/disk.cc @@ -32,6 +32,7 @@ #include "squid.h" #include "comm/Loops.h" +#include "disk.h" #include "fd.h" #include "fde.h" #include "globals.h" diff --git a/src/disk.h b/src/disk.h index 847c950014..9910fdbdee 100644 --- a/src/disk.h +++ b/src/disk.h @@ -36,6 +36,20 @@ #include "typedefs.h" class MemBuf; +// POD + +class dread_ctrl +{ +public: + int fd; + off_t offset; + int req_len; + char *buf; + int end_of_file; + DRCB *handler; + void *client_data; +}; + int file_open(const char *path, int mode); void file_close(int fd); diff --git a/src/mem.cc b/src/mem.cc index 04934e650d..56cad3e3d4 100644 --- a/src/mem.cc +++ b/src/mem.cc @@ -35,6 +35,7 @@ #include "acl/AclNameList.h" #include "CacheDigest.h" #include "ClientInfo.h" +#include "disk.h" #include "event.h" #include "md5.h" #include "Mem.h" diff --git a/src/structs.h b/src/structs.h index 762927367c..0355753f32 100644 --- a/src/structs.h +++ b/src/structs.h @@ -40,19 +40,6 @@ struct acl_size_t { int64_t size; }; -// POD -class dread_ctrl -{ -public: - int fd; - off_t offset; - int req_len; - char *buf; - int end_of_file; - DRCB *handler; - void *client_data; -}; - // POD class dwrite_q {