+/* +------------------------------------+
+ * | 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.
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
}
-DLLFactoryBase::DLLFactoryBase(
- const char *fname,
- const char *factory=0
- ) : DLLManager(fname)
+DLLFactoryBase::DLLFactoryBase(const char *fname, const char *factory) : DLLManager(fname)
{
// try get the factory function if there is no error yet