diff options
author | Alexandros Theodotou <alex@zrythm.org> | 2020-07-14 12:21:40 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-01 13:16:35 +0100 |
commit | 9ff0cbc41d84bd278b690c35ba0877a33c27437b (patch) | |
tree | c5fd413fc623133104ca88dacee3a46e9633b7cd /lilv | |
parent | 2bbfaf854ea7a799bfc5734f3a776d8ce4abe03c (diff) | |
download | lilv-9ff0cbc41d84bd278b690c35ba0877a33c27437b.tar.gz lilv-9ff0cbc41d84bd278b690c35ba0877a33c27437b.tar.bz2 lilv-9ff0cbc41d84bd278b690c35ba0877a33c27437b.zip |
Add a specific example for the use of copy_dir and link_dir
Diffstat (limited to 'lilv')
-rw-r--r-- | lilv/lilv.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lilv/lilv.h b/lilv/lilv.h index ab6d8ab..0b4c454 100644 --- a/lilv/lilv.h +++ b/lilv/lilv.h @@ -1332,10 +1332,16 @@ typedef const void* (*LilvGetPortValueFunc)(const char* port_symbol, explicitly disallows this. To support advanced file functionality, there are several directory - parameters. Simple hosts that only wish to save a single plugins state once - may simply use the same directory for all of them (or pass NULL to not - support files at all). The multiple parameters are necessary to support - saving an instances state many times while avoiding any duplication of data. + parameters. The multiple parameters are necessary to support saving an + instance's state many times, or saving states from multiple instances, while + avoiding any duplication of data. For example, a host could pass the same + `copy_dir` and `link_dir` for all plugins in a session (for example + `session/shared/copy/` `session/shared/link/`), while the `save_dir` would + be unique to each plugin instance (for example `session/states/state1.lv2` + for one instance and `session/states/state2.lv2` for another instance). + Simple hosts that only wish to save a single plugin's state once may simply + use the same directory for all of them, or pass NULL to not support files at + all. If supported (via state:makePath passed to LV2_Descriptor::instantiate()), `scratch_dir` should be the directory where any files created by the plugin |