[][src]Function lilv_sys::lilv_state_new_from_file

pub unsafe extern "C" fn lilv_state_new_from_file(
    world: *mut LilvWorld,
    map: *mut LV2UridMap,
    subject: *const LilvNode,
    path: *const c_char
) -> *mut LilvState

Load a state snapshot from a file. @param world The world. @param map URID mapper. @param subject The subject of the state description (e.g. a preset URI). @param path The path of the file containing the state description. @return A new LilvState which must be freed with lilv_state_free().

If subject is NULL, it is taken to be the URI of the file (i.e. "<>" in Turtle).

This function parses the file separately to create the state, it does not parse the file into the world model, i.e. the returned state is the only new memory consumed once this function returns.