Fix Metaproxy stops logging after check config failed MP-590
[metaproxy-moved-to-github.git] / src / torus.hpp
index e3a54a9..0db2bf8 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of Metaproxy.
-   Copyright (C) 2005-2011 Index Data
+   Copyright (C) Index Data
 
 Metaproxy is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
@@ -23,15 +23,15 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include <stdexcept>
 #include <libxml/tree.h>
 
+#include <metaproxy/package.hpp>
+
 namespace metaproxy_1 {
-    class Torus {
-    public:
-        Torus();
-        ~Torus();
-        void read_searchables(std::string url);
-    private:
-        xmlDocPtr doc;
-    };
+    xmlDoc *get_searchable(Package &package,
+                           std::string url_template, const std::string &db,
+                           const std::string &query,
+                           const std::string &realm,
+                           const std::string &proxy,
+                           std::string &addinfo);
 }
 
 #endif