]> git.ipfire.org Git - thirdparty/squid.git/blob - src/fs/rock/RockIoRequests.h
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / fs / rock / RockIoRequests.h
1 /*
2 * Copyright (C) 1996-2014 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 /// \ingroup Rock
22 class ReadRequest: public ::ReadRequest
23 {
24 public:
25 ReadRequest(const ::ReadRequest &base, const IoState::Pointer &anSio);
26 IoState::Pointer sio;
27
28 private:
29 CBDATA_CLASS2(ReadRequest);
30 };
31
32 /// \ingroup Rock
33 class WriteRequest: public ::WriteRequest
34 {
35 public:
36 WriteRequest(const ::WriteRequest &base, const IoState::Pointer &anSio);
37 IoState::Pointer sio;
38
39 /// slot being written using this write request
40 SlotId sidCurrent;
41
42 /// allocated next slot (negative if we are writing the last slot)
43 SlotId sidNext;
44
45 /// whether this is the last request for the entry
46 bool eof;
47
48 private:
49 CBDATA_CLASS2(WriteRequest);
50 };
51
52 } // namespace Rock
53
54 #endif /* SQUID_FS_ROCK_IO_REQUESTS_H */