]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/Config.h
1 #ifndef SQUID_ADAPTATION__CONFIG_H
2 #define SQUID_ADAPTATION__CONFIG_H
6 #include "adaptation/Elements.h"
21 typedef RefCount
<Service
> ServicePointer
;
29 static void Finalize(bool enable
);
30 static void DestroyConfig();
32 static void ParseServiceSet(void);
33 static void FreeServiceSet(void);
34 static void DumpServiceSet(StoreEntry
*, const char *);
36 static void ParseAccess(ConfigParser
&parser
);
37 static void FreeAccess(void);
38 static void DumpAccess(StoreEntry
*, const char *);
40 friend class AccessCheck
;
43 static bool Enabled
; // true if at least one adaptation mechanism is
47 int send_client_username
;
48 int service_failure_limit
;
49 int service_revival_delay
;
51 Vector
<ServiceConfig
*> serviceConfigs
;
56 void parseService(void);
57 void freeService(void);
58 void dumpService(StoreEntry
*, const char *) const;
59 ServicePointer
findService(const String
&);
60 Class
* findClass(const String
& key
);
62 virtual void finalize();
65 Config(const Config
&); // unsupported
66 Config
&operator =(const Config
&); // unsupported
68 virtual ServicePointer
createService(const ServiceConfig
&cfg
) = 0;
71 } // namespace Adaptation
73 #endif /* SQUID_ADAPTATION__CONFIG_H */