X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fdynamic.h;h=c14452f8c1f42a7401ee48cace9e29695f69d476;hb=daf3be301d0181d14d1310b3ab5f79c8a85dfb46;hp=bbe89dc7ee94c04de5b386fa2531217664bfe068;hpb=45fc75457b56bb14ad0f7b99909b96404df69c8c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/dynamic.h b/include/dynamic.h index bbe89dc7e..c14452f8c 100644 --- a/include/dynamic.h +++ b/include/dynamic.h @@ -20,8 +20,7 @@ */ -#ifndef DLL_H -#define DLL_H +#pragma once /** The DLLManager class is able to load a module file by filename, * and locate its init_module symbol. @@ -60,9 +59,12 @@ class CoreExport DLLManager : public classbase */ Module* CallInit(); + /** Retrieves the value of the specified symbol. + * @param name The name of the symbol to retrieve. + * @return Either the value of the specified symbol or or NULL if it does not exist. + */ + void* GetSymbol(const char* name); + /** Get detailed version information from the module file */ std::string GetVersion(); }; - -#endif -