#include <unistd.h>
#include <cstring>
#include <string>
#include <map>
#include <vector>
#include <dssi.h>
Go to the source code of this file.
Classes | |
struct | DSSIPortList |
An object of this class should be passed as the last parameter to the register_dssi() function to specify the number and types of ports for your DSSI plugin. More... | |
class | DSSIPlugin |
This is a base class for DSSI plugins. More... | |
Enumerations | |
enum | DSSIFeatureMask { DSSI_NO_FEATURES = 0, DSSI_RECEIVES_MIDI = 1 << 0, DSSI_HAS_PROGRAMS = 1 << 1, DSSI_USES_SHM = 1 << 2 } |
This type enumerates the different features that can be enabled or disabled in a DSSI plugin. More... | |
Functions | |
DSSIFeatureMask | operator| (const DSSIFeatureMask &m1, const DSSIFeatureMask &m2) |
OR operator for DSSIFeatureMask objects. | |
template<class T> | |
size_t | register_dssi (const std::string &label, LADSPA_Properties properties, const std::string &name, const std::string &maker, const std::string ©right, const DSSIPortList &ports, DSSIFeatureMask features=DSSI_RECEIVES_MIDI|DSSI_HAS_PROGRAMS|DSSI_USES_SHM) |
This is the function you should use to register your DSSI plugin class. |
|
This type enumerates the different features that can be enabled or disabled in a DSSI plugin. It is used as one of the argument to register_dssi(). You can use the logical OR operator to combine several features.
|
|
OR operator for DSSIFeatureMask objects.
|
|
This is the function you should use to register your DSSI plugin class. It should be called when the library is loaded, so you can write an initialisation function with the constructor attribute and put it there. Since this is a template function but the template type isn't one of the parameters, you need to give it explicitly like this:
register_dssi<MyPluginClass>("my_plugin", 0, "My Plugin", "Me", "GPL", my_ports);
|