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