[−][src]Function lilv_sys::lilv_state_save
pub unsafe extern "C" fn lilv_state_save(
world: *mut LilvWorld,
map: *mut LV2_URID_Map,
unmap: *mut LV2_URID_Unmap,
state: *const LilvState,
uri: *const c_char,
dir: *const c_char,
filename: *const c_char
) -> c_int
Save state to a file.
@param world The world.
@param map URID mapper.
@param unmap URID unmapper.
@param state State to save.
@param uri URI of state, may be NULL.
@param dir Path of the bundle directory to save into.
@param filename Path of the state file relative to dir
.
The format of state on disk is compatible with that defined in the LV2 preset extension, i.e. this function may be used to save presets which can be loaded by any host.
If uri
is NULL, the preset URI will be a file URI, but the bundle
can safely be moved (i.e. the state file will use "<>" as the subject).