diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 18:45:22 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 18:45:22 +0000 |
commit | 603acdf77e561f527b27a4da5a4c74dc9d699b89 (patch) | |
tree | 5f604546b2cedf13a0af699ded58085e00029a92 /include/dynamic.h | |
parent | ba98faf0d8d95b7490e5508e123a06ba6c7489be (diff) |
Comments (lots of)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7377 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/dynamic.h')
-rw-r--r-- | include/dynamic.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/dynamic.h b/include/dynamic.h index 12ad61aed..db46291c4 100644 --- a/include/dynamic.h +++ b/include/dynamic.h @@ -46,14 +46,16 @@ class CoreExport DLLManager bool GetSymbol(void **v, const char *sym_name); /** Get the last error from dlopen() or dlsym(). - * @return The last error string, or NULL if no error has occured + * @return The last error string, or NULL if no error has occured. */ char* LastError() { return err; } - /** The module handle + /** The module handle. + * This is OS dependent, on POSIX platforms it is a pointer to a function + * pointer (yes, really!) and on windows it is a library handle. */ void *h; @@ -77,11 +79,11 @@ class CoreExport DLLFactoryBase : public DLLManager */ DLLFactoryBase(InspIRCd* Instance, const char *fname, const char *func_name = 0); - /** Default destructor + /** Default destructor. */ virtual ~DLLFactoryBase(); - /** A function pointer to the factory function + /** A function pointer to the factory function. */ void * (*factory_func)(void); }; @@ -122,3 +124,4 @@ template <class T> class CoreExport DLLFactory : public DLLFactoryBase }; #endif + |