My Project 1.0.5
|
#include <lv2plugin.hpp>
Public Member Functions | |
char * | save (const char *directory, LV2SR_File ***files) |
char * | restore (const LV2SR_File **files) |
This is the type that your plugin class will inherit when you use the SaveRestore mixin. The public and protected members defined here will be available in your plugin class.
|
inline |
This function is called by the host when it wants to restore the plugin to a previous state. You should override it.
files | An array of pointers to LV2SR_File objects, listing the files from which the internal state of the plugin instance should be restored. |
|
inline |
This function is called by the host when it wants to save the current state of the plugin. You should override it.
directory | A filesystem path to a directory where the plugin should write any files it creates while saving. |
files | A pointer to a NULL-terminated array of LV2SR_File pointers. The plugin should set *files to point to the first element in a dynamically allocated array of LV2SR_File pointers to (also dynamically allocated) LV2SR_File objects, listing the files to which the internal state of the plugin instance has been saved. These objects, and the array, will be freed by the host. |