]> git.ipfire.org Git - thirdparty/squid.git/blame - src/adaptation/ecap/Host.h
SourceFormat: enforcement
[thirdparty/squid.git] / src / adaptation / ecap / Host.h
CommitLineData
fdc96a39
AR
1
2/*
3 * $Id$
4 */
5
6#ifndef SQUID_ECAP_HOST_H
7#define SQUID_ECAP_HOST_H
8
9#include <libecap/host/host.h>
10
af6a12ee
AJ
11namespace Adaptation
12{
e1381638
AJ
13namespace Ecap
14{
fdc96a39
AR
15
16// Squid wrapper, providing host application functionality to eCAP services.
17class Host : public libecap::host::Host
18{
19public:
26ac0430 20 Host();
fdc96a39 21
26ac0430
AJ
22 // About
23 virtual std::string uri() const; // unique across all vendors
24 virtual void describe(std::ostream &os) const; // free-format info
fdc96a39 25
26ac0430
AJ
26 // Service management
27 virtual void noteService(const libecap::weak_ptr<libecap::adapter::Service> &s);
530f96dd 28
26ac0430
AJ
29 // Logging
30 virtual std::ostream *openDebug(libecap::LogVerbosity lv);
31 virtual void closeDebug(std::ostream *debug);
fdc96a39
AR
32};
33
530f96dd
AR
34extern const libecap::Name protocolInternal;
35extern const libecap::Name protocolCacheObj;
36extern const libecap::Name protocolIcp;
37#if USE_HTCP
38extern const libecap::Name protocolHtcp;
39#endif
40
fdc96a39 41} // namespace Ecap
574b508c 42} // namespace Adaptation
fdc96a39
AR
43
44#endif /* SQUID_ECAP_HOST_H */