]> git.ipfire.org Git - thirdparty/squid.git/blob - src/clientStreamForward.h
Maintenance: automate header guards 2/3 (#1655)
[thirdparty/squid.git] / src / clientStreamForward.h
1 /*
2 * Copyright (C) 1996-2023 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_SRC_CLIENTSTREAMFORWARD_H
10 #define SQUID_SRC_CLIENTSTREAMFORWARD_H
11
12 #include "enums.h" /* for clientStream_status_t */
13
14 class Lock;
15 template <class C> class RefCount;
16
17 typedef RefCount<Lock> ClientStreamData;
18
19 /* Callbacks for ClientStreams API */
20
21 class clientStreamNode;
22 class ClientHttpRequest;
23 class HttpReply;
24 class StoreIOBuffer;
25
26 /// client stream read callback
27 typedef void CSCB(clientStreamNode *, ClientHttpRequest *, HttpReply *, StoreIOBuffer);
28
29 /// client stream read
30 typedef void CSR(clientStreamNode *, ClientHttpRequest *);
31
32 /// client stream detach
33 typedef void CSD(clientStreamNode *, ClientHttpRequest *);
34
35 typedef clientStream_status_t CSS(clientStreamNode *, ClientHttpRequest *);
36
37 #endif /* SQUID_SRC_CLIENTSTREAMFORWARD_H */
38