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
Do not include router.hpp in filters
[metaproxy-moved-to-github.git]
/
src
/
filter_backend_test.cpp
diff --git
a/src/filter_backend_test.cpp
b/src/filter_backend_test.cpp
index
737ffd2
..
f0a6732
100644
(file)
--- a/
src/filter_backend_test.cpp
+++ b/
src/filter_backend_test.cpp
@@
-1,4
+1,4
@@
-/* $Id: filter_backend_test.cpp,v 1.9 2005-11-03 14:45:16 adam Exp $
+/* $Id: filter_backend_test.cpp,v 1.13 2006-01-09 21:20:15 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
Copyright (c) 2005, Index Data.
%LICENSE%
@@
-7,23
+7,22
@@
#include "config.hpp"
#include "filter.hpp"
#include "config.hpp"
#include "filter.hpp"
-#include "router.hpp"
#include "package.hpp"
#include "package.hpp"
-
-#include <boost/thread/mutex.hpp>
-
#include "util.hpp"
#include "filter_backend_test.hpp"
#include "util.hpp"
#include "filter_backend_test.hpp"
+#include <stdexcept>
+#include <list>
+#include <map>
+#include <iostream>
+
+#include <boost/thread/mutex.hpp>
+
#include <yaz/zgdu.h>
#include <yaz/log.h>
#include <yaz/otherinfo.h>
#include <yaz/diagbib1.h>
#include <yaz/zgdu.h>
#include <yaz/log.h>
#include <yaz/otherinfo.h>
#include <yaz/diagbib1.h>
-#include <list>
-#include <map>
-#include <iostream>
-
namespace yf = yp2::filter;
namespace yp2 {
namespace yf = yp2::filter;
namespace yp2 {
@@
-142,6
+141,19
@@
void yf::Backend_test::process(Package &package) const
m_p->m_sessions.release(package.session());
}
m_p->m_sessions.release(package.session());
}
+static yp2::filter::Base* filter_creator()
+{
+ return new yp2::filter::Backend_test;
+}
+
+extern "C" {
+ struct yp2_filter_struct yp2_filter_backend_test = {
+ 0,
+ "backend_test",
+ filter_creator
+ };
+}
+
/*
* Local variables:
/*
* Local variables: