]> git.ipfire.org Git - thirdparty/squid.git/blob - src/fs/rock/RockIoRequests.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / fs / rock / RockIoRequests.h
1 /*
2 * Copyright (C) 1996-2015 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_FS_ROCK_IO_REQUESTS_H
10 #define SQUID_FS_ROCK_IO_REQUESTS_H
11
12 #include "DiskIO/ReadRequest.h"
13 #include "DiskIO/WriteRequest.h"
14 #include "fs/rock/RockIoState.h"
15
16 class DiskFile;
17
18 namespace Rock
19 {
20
21 class ReadRequest: public ::ReadRequest
22 {
23 CBDATA_CLASS(ReadRequest);
24
25 public:
26 ReadRequest(const ::ReadRequest &base, const IoState::Pointer &anSio);
27 IoState::Pointer sio;
28 };
29
30 class WriteRequest: public ::WriteRequest
31 {
32 CBDATA_CLASS(WriteRequest);
33
34 public:
35 WriteRequest(const ::WriteRequest &base, const IoState::Pointer &anSio);
36 IoState::Pointer sio;
37
38 /// slot being written using this write request
39 SlotId sidCurrent;
40
41 /// allocated next slot (negative if we are writing the last slot)
42 SlotId sidNext;
43
44 /// whether this is the last request for the entry
45 bool eof;
46 };
47
48 } // namespace Rock
49
50 #endif /* SQUID_FS_ROCK_IO_REQUESTS_H */
51