Function lv2_raw::atomutils::lv2_atom_object_get [] [src]

pub unsafe fn lv2_atom_object_get(
    body: *mut LV2AtomObject,
    query: &[ObjectHelper]
) -> i32

Variable argument version of lv2_atom_object_query().

This is nicer-looking in code, but a bit more error-prone since it is not type safe and the argument list must be terminated.

The arguments should be a series of uint32_t key and const LV2_Atom** value pairs, terminated by a zero key. The value pointers MUST be initialized to NULL. For example:

@code const LV2_Atom* name = NULL; const LV2_Atom* age = NULL; lv2_atom_object_get(obj, uris.name_key, &name, uris.age_key, &age, 0); @endcode