X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_dl.cpp;h=b29003ea571dd6fb49d99071d36c58e309dc7ad7;hb=f7ec9938e6ab4a92690024a53cede9a8b67e6920;hp=54c105156ee785b26b0d84f78850f3c5e07d142f;hpb=ad428707d2a52bbe4db21e47c5ebb26e13598484;p=metaproxy-moved-to-github.git diff --git a/src/filter_dl.cpp b/src/filter_dl.cpp index 54c1051..b29003e 100644 --- a/src/filter_dl.cpp +++ b/src/filter_dl.cpp @@ -1,36 +1,36 @@ -/* $Id: filter_dl.cpp,v 1.3 2006-01-04 11:55:31 adam Exp $ - Copyright (c) 2005, Index Data. +/* $Id: filter_dl.cpp,v 1.7 2006-09-14 19:53:57 marc Exp $ + Copyright (c) 2005-2006, Index Data. -%LICENSE% + See the LICENSE file for details */ #include "config.hpp" #include "filter.hpp" -#include "router.hpp" #include "package.hpp" -namespace yp2 { +namespace mp = metaproxy_1; + +namespace metaproxy_1 { namespace filter { - class Filter_dl: public yp2::filter::Base { + class Filter_dl: public mp::filter::Base { public: - void process(yp2::Package & package) const; + void process(mp::Package & package) const; }; } } -void yp2::filter::Filter_dl::process(yp2::Package & package) const +void mp::filter::Filter_dl::process(mp::Package & package) const { - package.data() = 42; // magic checked in test_filter_factory } -static yp2::filter::Base* filter_creator() +static mp::filter::Base* filter_creator() { - return new yp2::filter::Filter_dl; + return new mp::filter::Filter_dl; } extern "C" { - struct yp2_filter_struct yp2_filter_dl = { + struct metaproxy_1_filter_struct metaproxy_1_filter_dl = { 0, "dl", filter_creator