Initial checkin of proxy 2 code
[yazproxy-moved-to-github.git] / src / p2_modules.h
diff --git a/src/p2_modules.h b/src/p2_modules.h
new file mode 100644 (file)
index 0000000..c3f0e1b
--- /dev/null
@@ -0,0 +1,21 @@
+
+#ifndef P2_MODULES_H
+#define P2_MODULES_H
+
+#include "p2_backend.h"
+
+#include <list>
+
+class P2_ModuleDLEntry ;
+class P2_ModuleFactory {
+ public:
+    P2_ModuleFactory();
+    ~P2_ModuleFactory();
+    bool add(const char *fname);
+    bool add(P2_ModuleEntry *entry);
+    void *get_interface(const char *name, int version);
+ private:
+    std::list <P2_ModuleDLEntry *>m_modules;
+};
+
+#endif