X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Ffilter_dl.cpp;h=d0d500afced9948b1c428535b0969e10a5d30394;hb=79100c2ae2dac4bdde4f4d46b69e147562b4ec6c;hp=04a088ea206b4c3a1968897d4ec6bf7c942f4a80;hpb=63ea8aedbfd7dc56ab28dbc82c38b4458dcecb68;p=metaproxy-moved-to-github.git diff --git a/src/filter_dl.cpp b/src/filter_dl.cpp index 04a088e..d0d500a 100644 --- a/src/filter_dl.cpp +++ b/src/filter_dl.cpp @@ -1,5 +1,5 @@ -/* $Id: filter_dl.cpp,v 1.2 2006-01-04 11:19:04 adam Exp $ - Copyright (c) 2005, Index Data. +/* $Id: filter_dl.cpp,v 1.5 2006-03-16 10:40:59 adam Exp $ + Copyright (c) 2005-2006, Index Data. %LICENSE% */ @@ -7,30 +7,31 @@ #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; + 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" { - const struct yp2_filter_struct yp2_filter_dl = { + struct metaproxy_1_filter_struct metaproxy_1_filter_dl = { 0, "dl", filter_creator