metaproxy 1.22.1
filter_dl.cpp
Go to the documentation of this file.
1/* This file is part of Metaproxy.
2 Copyright (C) Index Data
3
4Metaproxy is free software; you can redistribute it and/or modify it under
5the terms of the GNU General Public License as published by the Free
6Software Foundation; either version 2, or (at your option) any later
7version.
8
9Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or
11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17*/
18
19#include "config.hpp"
20
21#include <metaproxy/filter.hpp>
22#include <metaproxy/package.hpp>
23
24namespace mp = metaproxy_1;
25
26namespace metaproxy_1 {
27 namespace filter {
28 class Filter_dl: public mp::filter::Base {
29 public:
30 void process(mp::Package & package) const;
31 void configure(const xmlNode * ptr, bool test_only,
32 const char *path);
33 };
34 }
35}
36
37void mp::filter::Filter_dl::process(mp::Package & package) const
38{
39}
40
41void mp::filter::Filter_dl::configure(const xmlNode * ptr, bool test_only,
42 const char *path)
43{
44 mp::xml::check_empty(ptr);
45}
46
47static mp::filter::Base* filter_creator()
48{
49 return new mp::filter::Filter_dl;
50}
51
52extern "C" {
53 struct metaproxy_1_filter_struct metaproxy_1_filter_dl = {
54 0,
55 "dl",
57 };
58}
59
60/*
61 * Local variables:
62 * c-basic-offset: 4
63 * c-file-style: "Stroustrup"
64 * indent-tabs-mode: nil
65 * End:
66 * vim: shiftwidth=4 tabstop=8 expandtab
67 */
68
void configure(const xmlNode *ptr, bool test_only, const char *path)
Definition filter_dl.cpp:41
void process(mp::Package &package) const
Definition filter_dl.cpp:37
struct metaproxy_1_filter_struct metaproxy_1_filter_dl
Definition filter_dl.cpp:53
static mp::filter::Base * filter_creator()
Definition filter_dl.cpp:47