]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/dynamic.cpp
First step on the road of module loader rewriting. So far this only really removes...
[user/henk/code/inspircd.git] / src / dynamic.cpp
index 80035ef70575f95faa491fb32c97db66f82d8f80..9a0ae34d337aa6bdeba196d7f25d5c39813d244b 100644 (file)
@@ -11,6 +11,7 @@
  * ---------------------------------------------------
  */
 
+#include "globals.h"
 #include "inspircd.h"
 #include "dynamic.h"
 #ifndef WIN32
@@ -63,22 +64,3 @@ bool DLLManager::GetSymbol(void** v, const char* sym_name)
        /* succeeded :) */
        return true;
 }
-
-DLLFactoryBase::DLLFactoryBase(InspIRCd* Instance, const char* fname, const char* symbol) : DLLManager(Instance, fname)
-{
-       /* try get the factory function if there is no error yet */
-       factory_func = 0;
-       
-       if (!LastError())
-       {
-               if (!GetSymbol( (void **)&factory_func, symbol ? symbol : "init_module"))
-               {
-                       throw ModuleException("Missing init_module() entrypoint!");
-               }
-       }
-}
-
-DLLFactoryBase::~DLLFactoryBase()
-{
-}
-