Do not include router.hpp in filters
[metaproxy-moved-to-github.git] / src / filter_dl.cpp
1 /* $Id: filter_dl.cpp,v 1.4 2006-01-09 21:20:15 adam Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7 #include "config.hpp"
8
9 #include "filter.hpp"
10 #include "package.hpp"
11
12 namespace yp2 {
13     namespace filter {
14         class Filter_dl: public yp2::filter::Base {
15         public:
16             void process(yp2::Package & package) const;
17         };
18     }
19 }
20
21 void yp2::filter::Filter_dl::process(yp2::Package & package) const
22 {
23     package.data() = 42;   // magic checked in test_filter_factory
24 }
25
26 static yp2::filter::Base* filter_creator()
27 {
28     return new yp2::filter::Filter_dl;
29 }
30
31 extern "C" {
32     struct yp2_filter_struct yp2_filter_dl = {
33         0,
34         "dl",
35         filter_creator
36     };
37 }
38
39 /*
40  * Local variables:
41  * c-basic-offset: 4
42  * indent-tabs-mode: nil
43  * c-file-style: "stroustrup"
44  * End:
45  * vim: shiftwidth=4 tabstop=8 expandtab
46  */