All filters declare a yp2_filter_struct - used for both static and
[metaproxy-moved-to-github.git] / src / filter_backend_test.hpp
index 6442d43..66dcc5d 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: filter_backend_test.hpp,v 1.3 2005-10-29 22:23:36 marc Exp $
+/* $Id: filter_backend_test.hpp,v 1.6 2006-01-04 11:19:04 adam Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -7,8 +7,6 @@
 #ifndef FILTER_BACKEND_TEST_HPP
 #define FILTER_BACKEND_TEST_HPP
 
-#include <stdexcept>
-#include <list>
 #include <boost/scoped_ptr.hpp>
 
 #include "filter.hpp"
@@ -21,15 +19,16 @@ namespace yp2 {
             ~Backend_test();
             Backend_test();
             void process(yp2::Package & package) const;
-            const std::string type() const {
-                return "Backend_test";
-            };
         private:
             boost::scoped_ptr<Rep> m_p;
         };
     }
 }
 
+extern "C" {
+    extern const struct yp2_filter_struct yp2_filter_backend_test;
+}
+
 #endif
 /*
  * Local variables: