From 75e19b2ff35d6b42fe83e7200d3675d81e43ecc1 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 20 May 2005 21:52:25 +0000 Subject: *** empty log message *** git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1466 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/dynamic.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'include') 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 }; -- cgit v1.2.3