]> git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/ecap/Host.h
Merged from trunk.
[thirdparty/squid.git] / src / adaptation / ecap / Host.h
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
11 namespace Ecap
12 {
13
14 // Squid wrapper, providing host application functionality to eCAP services.
15 class Host : public libecap::host::Host
16 {
17 public:
18 Host();
19
20 // About
21 virtual std::string uri() const; // unique across all vendors
22 virtual void describe(std::ostream &os) const; // free-format info
23
24 // Service management
25 virtual void noteService(const libecap::weak_ptr<libecap::adapter::Service> &s);
26
27 // Logging
28 virtual std::ostream *openDebug(libecap::LogVerbosity lv);
29 virtual void closeDebug(std::ostream *debug);
30 };
31
32 extern const libecap::Name protocolInternal;
33 extern const libecap::Name protocolCacheObj;
34 extern const libecap::Name protocolIcp;
35 #if USE_HTCP
36 extern const libecap::Name protocolHtcp;
37 #endif
38
39 } // namespace Ecap
40
41 #endif /* SQUID_ECAP_HOST_H */