projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
All filters declare a yp2_filter_struct - used for both static and
[metaproxy-moved-to-github.git]
/
src
/
filter_template.cpp
diff --git
a/src/filter_template.cpp
b/src/filter_template.cpp
index
4d47dab
..
07c0d2a
100644
(file)
--- a/
src/filter_template.cpp
+++ b/
src/filter_template.cpp
@@
-1,4
+1,4
@@
-/* $Id: filter_template.cpp,v 1.2 2005-12-11 17:20:18 adam Exp $
+/* $Id: filter_template.cpp,v 1.3 2006-01-04 11:19:04 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
Copyright (c) 2005, Index Data.
%LICENSE%
@@
-43,6
+43,19
@@
void yf::Template::process(Package &package) const
package.move();
}
package.move();
}
+static yp2::filter::Base* filter_creator()
+{
+ return new yp2::filter::Template;
+}
+
+extern "C" {
+ const struct yp2_filter_struct yp2_filter_template = {
+ 0,
+ "template",
+ filter_creator
+ };
+}
+
/*
* Local variables:
/*
* Local variables: