~ubuntu-branches/ubuntu/saucy/apt-cacher-ng/saucy

« back to all changes in this revision

Viewing changes to include/acfg.h

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2011-08-07 17:53:21 UTC
  • mfrom: (24.2.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110807175321-k80jrotzovldgu3c
* New upstream version
  + fixes various regressions
* removed dependency on libfuse2 (now used via dlopen, moved to Suggests)
* support new build-* targets in rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
};
52
52
*/
53
53
 
54
 
class tRepoData : public MYSTD::vector<tHttpUrl>
 
54
struct tRepoData
55
55
{
56
 
public:
 
56
        MYSTD::vector<tHttpUrl> m_backends;
 
57
 
 
58
        // dirty little helper to execute custom actions when a jobs associates or forgets this data set
57
59
        struct IHookHandler
58
60
        {
59
61
                virtual void JobRelease()=0;
60
62
                virtual void JobConnect()=0;
61
63
        };
62
64
        IHookHandler *m_pHooks;
63
 
        tRepoData() : MYSTD::vector<tHttpUrl>(), m_pHooks(NULL) {};
 
65
        tStrVec m_keyfiles;
 
66
        tRepoData() : m_pHooks(NULL) {};
64
67
        virtual ~tRepoData();
65
68
};
66
69
 
67
 
tRepoData * GetBackendVec(const mstring * vname);
 
70
const tRepoData * GetBackendVec(const mstring * vname);
68
71
 
69
72
time_t ExecutePostponed();
70
73
 
73
76
 
74
77
extern mstring cacheDirSlash; // guaranteed to have a trailing path separator
75
78
 
76
 
}
 
79
} // namespace acfg
77
80
 
78
81
namespace rechecks
79
82
{
86
89
bool MatchWhitelist(const mstring &);
87
90
bool MatchUncacheableRequest(const mstring &);
88
91
bool MatchUncacheableTarget(const mstring &);
 
92
 
 
93
bool CompileExpressions();
89
94
}
90
95
 
91
96
#endif