X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ffilter_dl.cpp;h=2a00dde4141f1ec867c38da6df7235a41009fb92;hb=637a685d61a9ff0e3f398a59da426979815c4d68;hp=7ce559b6ded2207fa654452f05971aa9ec52992c;hpb=cae80f85741d2564d918a0e3285c62e51491a7fc;p=metaproxy-moved-to-github.git diff --git a/src/filter_dl.cpp b/src/filter_dl.cpp index 7ce559b..2a00dde 100644 --- a/src/filter_dl.cpp +++ b/src/filter_dl.cpp @@ -1,37 +1,53 @@ -/* $Id: filter_dl.cpp,v 1.1 2005-12-10 09:59:10 adam Exp $ - Copyright (c) 2005, Index Data. +/* $Id: filter_dl.cpp,v 1.9 2007-05-09 21:23:09 adam Exp $ + Copyright (c) 2005-2007, Index Data. -%LICENSE% +This file is part of Metaproxy. + +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 +Software Foundation; either version 2, or (at your option) any later +version. + +Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Metaproxy; see the file LICENSE. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. */ #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; } -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 }; }