pub unsafe extern "C" fn pw_global_for_each_resource(
    global: *mut pw_global,
    callback: Option<unsafe extern "C" fn(data: *mut c_void, resource: *mut pw_resource) -> c_int>,
    data: *mut c_void
) -> c_int
Expand description

Iterate all resources added to the global The callback should return 0 to fetch the next item, any other value stops the iteration and returns the value. When all callbacks return 0, this function returns 0 when all items are iterated.