In the C++ implementation of RSB, a plugin is a dynamically loadable library which defines the two symbols
Note
The macros RSC_PLUGIN_INIT_SYMBOL and RSC_PLUGIN_SHUTDOWN_SYMBOL should be used to define functions on the aforementioned symbols.
Any library can be made into an RSB plugin by adding a file, usually called Plugin.cc, defining these two symbols. The Plugin.cc file of a minimal RSB plugin looks like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 | #include <rsc/plugins/Provider.h>
extern "C" {
void RSC_PLUGIN_INIT_SYMBOL() {
// initialization
}
void RSC_PLUGIN_SHUTDOWN_SYMBOL() {
// shutdown
}
}
|
Warning
This section is work in progress.
In the Python implementation of RSB, a plugin is a module defining functions
Any module can be made into an RSB plugin by adding these two functions. A a minimal RSB plugin looks like this:
Warning
This section is work in progress.
In the Java implementation of RSB, a plugin is a TODO
Warning
This section is work in progress.
In the Common Lisp implementation of RSB, a plugin is a TODO