Function pw_context_set_object

Source
pub unsafe extern "C" fn pw_context_set_object(
    context: *mut pw_context,
    type_: *const c_char,
    value: *mut c_void,
) -> c_int
Expand description

add an object to the context

\param context The context. \param type The type of the object, usually a TYPE_INTERFACE_ value. \param value The object value. Must last as long as the context and must be of the type corresponding to the type. \return A negative number on failure (out of memory).