#include <lv2plugin.hpp>
Inherits LV2::Extension< Required >.
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.
| char* LV2::SaveRestore< Required >::I< Derived >::restore | ( | const LV2SR_File ** | files | ) | [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. |
| char* LV2::SaveRestore< Required >::I< Derived >::save | ( | const char * | directory, |
| LV2SR_File *** | files | ||
| ) | [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. |
1.7.3