InspIRCd  3.0
dynamic.h
1 /*
2  * InspIRCd -- Internet Relay Chat Daemon
3  *
4  * Copyright (C) 2013, 2019 Sadie Powell <[email protected]>
5  * Copyright (C) 2012 Robby <[email protected]>
6  * Copyright (C) 2012 ChrisTX <[email protected]>
7  * Copyright (C) 2009-2010 Daniel De Graaf <[email protected]>
8  * Copyright (C) 2007 Oliver Lupton <[email protected]>
9  * Copyright (C) 2007 Dennis Friis <[email protected]>
10  * Copyright (C) 2006 Craig Edwards <[email protected]>
11  *
12  * This file is part of InspIRCd. InspIRCd is free software: you can
13  * redistribute it and/or modify it under the terms of the GNU General Public
14  * License as published by the Free Software Foundation, version 2.
15  *
16  * This program is distributed in the hope that it will be useful, but WITHOUT
17  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
19  * details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program. If not, see <http://www.gnu.org/licenses/>.
23  */
24 
25 
26 #pragma once
27 
31 class CoreExport DLLManager : public classbase
32 {
33  protected:
36  std::string err;
37 
40  void RetrieveLastError();
41 
42  public:
47  DLLManager(const char *fname);
48  virtual ~DLLManager();
49 
52  const std::string& LastError()
53  {
54  return err;
55  }
56 
59  void *h;
60 
63  Module* CallInit();
64 
69  void* GetSymbol(const char* name);
70 
72  std::string GetVersion();
73 };
DLLManager::LastError
const std::string & LastError()
Definition: dynamic.h:52
classbase
Definition: base.h:46
Module
Definition: modules.h:247
DLLManager::h
void * h
Definition: dynamic.h:59
DLLManager::err
std::string err
Definition: dynamic.h:36
DLLManager
Definition: dynamic.h:31