]> git.ipfire.org Git - thirdparty/squid.git/blame - src/clientStreamForward.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / clientStreamForward.h
CommitLineData
bbc27441 1/*
bde978a6 2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
bbc27441
AJ
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
92ae4c86
AR
9#ifndef SQUID_CLIENTSTREAM_FORWARD_H
10#define SQUID_CLIENTSTREAM_FORWARD_H
11
3cc0f4e7 12#include "enums.h" /* for clientStream_status_t */
92ae4c86
AR
13
14class Lock;
15template <class C> class RefCount;
16
92ae4c86
AR
17typedef RefCount<Lock> ClientStreamData;
18
19/* Callbacks for ClientStreams API */
20
21class clientStreamNode;
22class ClientHttpRequest;
23class HttpReply;
24class StoreIOBuffer;
25
3cc0f4e7 26/// client stream read callback
92ae4c86
AR
27typedef void CSCB(clientStreamNode *, ClientHttpRequest *, HttpReply *, StoreIOBuffer);
28
3cc0f4e7 29/// client stream read
92ae4c86
AR
30typedef void CSR(clientStreamNode *, ClientHttpRequest *);
31
3cc0f4e7 32/// client stream detach
92ae4c86
AR
33typedef void CSD(clientStreamNode *, ClientHttpRequest *);
34
92ae4c86
AR
35typedef clientStream_status_t CSS(clientStreamNode *, ClientHttpRequest *);
36
37#endif /* SQUID_CLIENTSTREAM_FORWARD_H */
f53969cc 38