]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/dynamic.cpp
Moved to B3 official
[user/henk/code/inspircd.git] / src / dynamic.cpp
index 4c822e4ca0a980e36c210437185443d5bc150a3b..9cc68fc5f3d36aa7a9169ca482e9eda102a16f33 100644 (file)
@@ -1,10 +1,25 @@
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ *                       E-mail:
+ *                <brain@chatspike.net>
+ *               <Craig@chatspike.net>
+ *     
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
 #include "globals.h"
 #include <dlfcn.h>
 #include "dynamic.h"
+#include "inspstring.h"
 
-
-
-DLLManager::DLLManager( const char *fname )
+DLLManager::DLLManager(const char *fname)
 {
     // Try to open the library now and get any error message.
        
@@ -15,15 +30,12 @@ DLLManager::DLLManager( const char *fname )
 DLLManager::~DLLManager()
 {
        // close the library if it isn't null
-       if( h!=0 )
+       if (h!=0)
        dlclose(h);
 }
 
 
-bool DLLManager::GetSymbol( 
-                          void **v,
-                          const char *sym_name
-                          )
+bool DLLManager::GetSymbol(void **v, const char *sym_name)
 {
        // try extract a symbol from the library
        // get any error message is there is any
@@ -45,10 +57,7 @@ bool DLLManager::GetSymbol(
 }
 
 
-DLLFactoryBase::DLLFactoryBase(
-                              const char *fname,
-                              const char *factory
-                              ) : DLLManager(fname)
+DLLFactoryBase::DLLFactoryBase(const char *fname, const char *factory) : DLLManager(fname)
 {
        // try get the factory function if there is no error yet