summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-20 21:52:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-20 21:52:25 +0000
commit75e19b2ff35d6b42fe83e7200d3675d81e43ecc1 (patch)
tree5ca84d3f8de3da717786520b17bb7e9008043092 /include
parent16bdaa927d2f532dfdc9f81ec25a843ebc99d9ff (diff)
*** empty log message ***
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1466 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/dynamic.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/dynamic.h b/include/dynamic.h
index 987f5de72..47963b828 100644
--- a/include/dynamic.h
+++ b/include/dynamic.h
@@ -18,6 +18,9 @@
#ifndef __DLL_H
#define __DLL_H
+typedef void * (initfunc) (void);
+
+#include "inspircd_config.h"
class DLLManager
{
@@ -26,7 +29,11 @@ class DLLManager
virtual ~DLLManager();
+#ifdef STATIC_LINK
+ bool GetSymbol( initfunc* &v, const char *sym_name );
+#else
bool GetSymbol( void **, const char *sym_name );
+#endif
const char *LastError()
{
@@ -35,7 +42,10 @@ class DLLManager
protected:
void *h;
- const char *err;
+ char *err;
+#ifdef STATIC_LINK
+ char staticname[1024];
+#endif
};
@@ -44,7 +54,11 @@ class DLLFactoryBase : public DLLManager
public:
DLLFactoryBase(const char *fname, const char *func_name = 0);
virtual ~DLLFactoryBase();
+#ifdef STATIC_LINK
+ initfunc *factory_func;
+#else
void * (*factory_func)(void);
+#endif
};