X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_limit.hpp;h=75e2b497266b706bd51c36e3cb58910a58398177;hb=4af83af2939aae2ddf5d9fb018663c1cf0f424a1;hp=3b5fd576416f3ea9bd0b0fe91989a48e12756466;hpb=ddc156360c0c46ef669accde05fea1106cc6b244;p=metaproxy-moved-to-github.git diff --git a/src/filter_limit.hpp b/src/filter_limit.hpp index 3b5fd57..75e2b49 100644 --- a/src/filter_limit.hpp +++ b/src/filter_limit.hpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2009 Index Data + Copyright (C) Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include -#include "filter.hpp" +#include namespace metaproxy_1 { namespace filter { @@ -33,7 +33,8 @@ namespace metaproxy_1 { Limit(); ~Limit(); void process(metaproxy_1::Package & package) const; - void configure(const xmlNode * ptr, bool test_only); + void configure(const xmlNode * ptr, bool test_only, + const char *path); }; } } @@ -42,18 +43,6 @@ extern "C" { extern struct metaproxy_1_filter_struct metaproxy_1_filter_limit; } -class Yaz_bw { - public: - Yaz_bw(int sz); - ~Yaz_bw(); - void add_bytes(int m); - int get_total(); - private: - long m_sec; // time of most recent bucket - int *m_bucket; - int m_ptr; - int m_size; -}; #endif /*