]> git.ipfire.org Git - thirdparty/squid.git/blob - src/DiskIO/WriteRequest.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / DiskIO / WriteRequest.h
1 /*
2 * Copyright (C) 1996-2020 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_WRITEREQUEST_H
10 #define SQUID_WRITEREQUEST_H
11
12 #include "base/RefCount.h"
13 #include "cbdata.h"
14 #include "mem/forward.h"
15
16 class WriteRequest : public RefCountable
17 {
18 CBDATA_CLASS(WriteRequest);
19
20 public:
21 typedef RefCount<WriteRequest> Pointer;
22 WriteRequest(char const *buf, off_t offset, size_t len, FREE *);
23 virtual ~WriteRequest() {}
24
25 char const *buf;
26 off_t offset;
27 size_t len;
28 FREE *free_func;
29 };
30
31 #endif /* SQUID_WRITEREQUEST_H */
32