X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fdynamic.h;h=c14452f8c1f42a7401ee48cace9e29695f69d476;hb=daf3be301d0181d14d1310b3ab5f79c8a85dfb46;hp=47523f3afb3e326fd51b840e04e14f24ad6c833a;hpb=6b2ea833674bb3bfedb0f2e2af06efa25655e5f5;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/dynamic.h b/include/dynamic.h index 47523f3af..c14452f8c 100644 --- a/include/dynamic.h +++ b/include/dynamic.h @@ -1,18 +1,26 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ +/* + * InspIRCd -- Internet Relay Chat Daemon * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team - * See: http://wiki.inspircd.org/Credits + * Copyright (C) 2009 Daniel De Graaf + * Copyright (C) 2007, 2009 Dennis Friis + * Copyright (C) 2007 Oliver Lupton + * Copyright (C) 2003-2004, 2007 Craig Edwards * - * This program is free but copyrighted software; see - * the file COPYING for details. + * This file is part of InspIRCd. InspIRCd is free software: you can + * redistribute it and/or modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation, version 2. * - * --------------------------------------------------- + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ -#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. @@ -24,6 +32,10 @@ class CoreExport DLLManager : public classbase */ std::string err; + /** Sets the last error string + */ + void RetrieveLastError(); + public: /** This constructor loads the module using dlopen() * @param fname The filename to load. This should be within @@ -45,8 +57,14 @@ class CoreExport DLLManager : public classbase /** Return a module by calling the init function */ - Module* callInit(); -}; + Module* CallInit(); -#endif + /** 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(); +};