All filters declare a yp2_filter_struct - used for both static and
[metaproxy-moved-to-github.git] / src / filter_log.cpp
index 2ed0b96..4142be7 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: filter_log.cpp,v 1.9 2005-12-11 17:23:05 adam Exp $
+/* $Id: filter_log.cpp,v 1.10 2006-01-04 11:19:04 adam Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -98,6 +98,20 @@ void yf::Log::process(Package &package) const
     }
 }
 
+static yp2::filter::Base* filter_creator()
+{
+    return new yp2::filter::Log;
+}
+
+extern "C" {
+    const struct yp2_filter_struct yp2_filter_log = {
+        0,
+        "log",
+        filter_creator
+    };
+}
+
+
 /*
  * Local variables:
  * c-basic-offset: 4