pub unsafe extern "C" fn pw_context_new(
main_loop: *mut pw_loop,
props: *mut pw_properties,
user_data_size: usize,
) -> *mut pw_context
Expand description
Make a new context object for a given main_loop. Ownership of the properties is taken, even if the function returns NULL.
\param main_loop A main loop to run in. This must stay alive unil pw_context_destroy() is called. \param props extra properties \param user_data_size extra user data size \return The context object on success, or NULL on failure, in which case errno is set.