[−][src]Function lilv_sys::lilv_state_set_metadata
pub unsafe extern "C" fn lilv_state_set_metadata(
state: *mut LilvState,
key: u32,
value: *const c_void,
size: usize,
type_: u32,
flags: u32
) -> c_int
Set a metadata property on state
.
@param state The state to set the metadata for.
@param key The key to store value
under (URID).
@param value Pointer to the value to be stored.
@param size The size of value
in bytes.
@param type The type of value
(URID).
@param flags LV2_State_Flags for value
.
@return 0 on success.
This is a generic version of lilv_state_set_label(), which sets metadata properties visible to hosts, but not plugins. This allows storing useful information such as comments or preset banks.