Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::DLPlugin Class Reference

This class is used after a plugin library is successfully loaded. More...

#include <pluginloader.h>

Inheritance diagram for jami::DLPlugin:
Inheritance graph
Collaboration diagram for jami::DLPlugin:
Collaboration graph

Public Member Functions

 DLPlugin (void *handle, const std::string &path)
 
const std::string & getPath () const
 
voidgetSymbol (const char *name) const
 Searchs for symbol in library.
 
bool unload ()
 Unload plugin's library.
 
virtual ~DLPlugin ()
 
- Public Member Functions inherited from jami::Plugin
virtual JAMI_PluginInitFunc getInitFunction () const
 Search loaded library for its initialization function.
 
virtual ~Plugin ()=default
 

Public Attributes

JAMI_PluginAPI api_
 
voidapiContext_
 

Additional Inherited Members

- Static Public Member Functions inherited from jami::Plugin
static Pluginload (const std::string &path, std::string &error)
 Load plugin's library.
 
- Protected Member Functions inherited from jami::Plugin
 Plugin ()=default
 

Detailed Description

This class is used after a plugin library is successfully loaded.

Definition at line 59 of file pluginloader.h.

Constructor & Destructor Documentation

◆ DLPlugin()

jami::DLPlugin::DLPlugin ( void handle,
const std::string &  path 
)
inline

Definition at line 62 of file pluginloader.h.

References api_, and JAMI_PluginAPI::context.

◆ ~DLPlugin()

virtual jami::DLPlugin::~DLPlugin ( )
inlinevirtual

Definition at line 69 of file pluginloader.h.

References unload().

Here is the call graph for this function:

Member Function Documentation

◆ getPath()

const std::string & jami::DLPlugin::getPath ( ) const
inline

Definition at line 96 of file pluginloader.h.

◆ getSymbol()

void * jami::DLPlugin::getSymbol ( const char name) const
inlinevirtual

Searchs for symbol in library.

Parameters
name
Returns
symbol.

Implements jami::Plugin.

Definition at line 88 of file pluginloader.h.

◆ unload()

bool jami::DLPlugin::unload ( )
inline

Unload plugin's library.

Returns
True if success.

Definition at line 75 of file pluginloader.h.

References jami::emitSignal().

Referenced by ~DLPlugin().

Here is the call graph for this function:

Member Data Documentation

◆ api_

JAMI_PluginAPI jami::DLPlugin::api_

Definition at line 100 of file pluginloader.h.

Referenced by DLPlugin().

◆ apiContext_

void* jami::DLPlugin::apiContext_

Definition at line 99 of file pluginloader.h.


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