InspIRCd  2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations
Public Member Functions | Public Attributes | Protected Attributes | List of all members
DLLManager Class Reference

#include <dynamic.h>

Inheritance diagram for DLLManager:
classbase

Public Member Functions

 DLLManager (const char *fname)
 
const std::string & LastError ()
 
ModuleCallInit ()
 
std::string GetVersion ()
 
- Public Member Functions inherited from classbase
virtual CullResult cull ()
 

Public Attributes

void * h
 

Protected Attributes

std::string err
 

Detailed Description

The DLLManager class is able to load a module file by filename, and locate its init_module symbol.

Constructor & Destructor Documentation

DLLManager::DLLManager ( const char *  fname)

This constructor loads the module using dlopen()

Parameters
fnameThe filename to load. This should be within the modules dir.

Member Function Documentation

Module * DLLManager::CallInit ( )

Return a module by calling the init function

std::string DLLManager::GetVersion ( )

Get detailed version information from the module file

const std::string& DLLManager::LastError ( )
inline

Get the last error from dlopen() or dlsym().

Member Data Documentation

std::string DLLManager::err
protected

The last error string

void* DLLManager::h

The module library handle.


The documentation for this class was generated from the following files: