#include <SLPlugin.hpp>
Public Member Functions | |
virtual void | init (SLConfig &config)=0 |
virtual void | finish ()=0 |
virtual SLPluginFeature * | getFeature ()=0 |
virtual void | disposeFeature (SLPluginFeature *feature)=0 |
virtual unsigned int | getVersionMajor () const=0 |
virtual unsigned int | getVersionMinor () const=0 |
virtual const SLString & | getName () const=0 |
virtual SLPluginFeature::Type::Types | getType () const=0 |
virtual void | set_dl_handle (void *dl_handle)=0 |
virtual void * | get_dl_handle () const=0 |
The plugins system is described in details in the section
|
Dispose an instance obtained with getFeature(). These instances "should not" be deleted otherwise. |
|
This function will be called just before plugin unloading or at program end. It will be time to flush unsaved data. It may not be called from program userland. |
|
Returns the handle obtained from dl_open |
|
Get a concrete instance of the feature desired. In fact Plugin act as a FeatureFactory. This method is always called after init()
|
|
The name of the plugin should be the one of its parent directory. |
|
Returns the type of the plugin, usable with == |
|
The major version number of the plugin code example :
|
|
The minor version number of the plugin |
|
This function should not be called from program userland. It will be called once and only from SLPluginRegister when it fells this is needed. This method is called before atempting to call getFeature()
|
|
set the handle obtained from dl_open |