#include <extension.h>
Protected Member Functions |
bool | initModule (const std::string &module, as_object &obj) |
| Initialize the named module within Gnash.
|
Protected Attributes |
std::vector< std::string > | _modules |
| A list of modules.
|
std::map< std::string,
SharedLib * > | _plugins |
| A map of loaded modules.
|
std::string | _pluginsdir |
| The default directory to search for modules.
|
Constructor & Destructor Documentation
gnash::Extension::Extension |
( |
| ) |
|
gnash::Extension::Extension |
( |
const std::string & |
dir | ) |
|
gnash::Extension::~Extension |
( |
| ) |
|
|
inline |
Member Function Documentation
void gnash::Extension::dumpModules |
( |
| ) |
|
bool gnash::Extension::initModule |
( |
const std::string & |
module, |
|
|
as_object & |
obj |
|
) |
| |
|
protected |
bool gnash::Extension::initModuleWithFunc |
( |
const std::string & |
module, |
|
|
const std::string & |
func, |
|
|
as_object & |
obj |
|
) |
| |
bool gnash::Extension::initNewObject |
( |
as_object & |
obj | ) |
|
bool gnash::Extension::scanAndLoad |
( |
as_object & |
where | ) |
|
bool gnash::Extension::scanAndLoad |
( |
const std::string & |
dir, |
|
|
as_object & |
where |
|
) |
| |
Scan the given directory and attach any found modules to the given object.
- Parameters
-
where | The as_object to which the modules should be attached (usually the global object) |
dir | A directory to scan. |
References _pluginsdir, and scanAndLoad().
bool gnash::Extension::scanDir |
( |
| ) |
|
bool gnash::Extension::scanDir |
( |
const std::string & |
dir | ) |
|
Member Data Documentation
std::vector<std::string> gnash::Extension::_modules |
|
protected |
std::map<std::string, SharedLib *> gnash::Extension::_plugins |
|
protected |
std::string gnash::Extension::_pluginsdir |
|
protected |
The documentation for this class was generated from the following files: