X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fdynamic.h;h=51aaaa3cd261963e294476fb0252aa300df44e26;hb=1200d6285b1d64699c6fa2c8241e2ee40f52d2a3;hp=4cf299c1f33c554e9f2759cfda8da06f96d8602b;hpb=f1271614679843191bb247c0db2716acb5ac0e4b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/dynamic.h b/include/dynamic.h index 4cf299c1f..51aaaa3cd 100644 --- a/include/dynamic.h +++ b/include/dynamic.h @@ -23,7 +23,7 @@ class CoreExport DLLManager /** The last error string, or NULL */ - char *err; + const char *err; public: /** This constructor loads the module using dlopen() @@ -44,7 +44,7 @@ class CoreExport DLLManager /** Get the last error from dlopen() or dlsym(). * @return The last error string, or NULL if no error has occured. */ - char* LastError() + const char* LastError() { return err; } @@ -137,6 +137,9 @@ template class CoreExport DLLFactory : public DLLManager } } + /** Calls the 'init_module' C exported function within a module, which + * returns a pointer to a Module derived object. + */ ReturnType* CallInit() { if(init_func) @@ -157,3 +160,4 @@ template class CoreExport DLLFactory : public DLLManager }; #endif +