Module: cwc.plugin
C plugins lifecycle and management API.
name |
string |
The name of the plugin.
|
Read only
|
description |
string |
The description of the plugin.
|
Read only
|
version |
string |
The version of the plugin.
|
Read only
|
author |
string |
The author of the plugin.
|
Read only
|
license |
string |
The license of the plugin.
|
Read only
|
filename |
string |
The filename of the plugin.
|
Read only
|
-
🔗
cwc.plugin.get ()
-> cwc_plugin[]
-
Get all loaded plugin into a table.
Returns:
cwc_plugin[]
-
🔗
cwc.plugin.load (path)
-> boolean
-
load C plugin
Parameters:
path |
|
string |
File location of the C shared object |
Returns:
boolean
true if loading success
-
🔗
cwc.plugin.unload_byname (name)
-> boolean
-
unload C plugin filtered by name
Parameters:
Returns:
boolean
true if unloading success
-
🔗
name
string
· read only
-
The name of the plugin.
Constraints:
-
🔗
description
string
· read only
-
The description of the plugin.
Constraints:
-
🔗
version
string
· read only
-
The version of the plugin.
Constraints:
-
🔗
author
string
· read only
-
The author of the plugin.
Constraints:
-
🔗
license
string
· read only
-
The license of the plugin.
Constraints:
-
🔗
filename
string
· read only
-
The filename of the plugin.
Constraints:
-
🔗
:unload ()
-
Unload this plugin.
-
🔗
plugin::load
-
Emitted when a plugin is loaded.
Arguments:
p |
|
cwc_plugin |
The plugin object. |
-
🔗
plugin::unload
-
Emitted when the plugin is about to be unloaded.
Arguments:
p |
|
cwc_plugin |
The plugin object. |