1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// Copyright The pipewire-rs Contributors. // SPDX-License-Identifier: MIT //! SPA hook use crate::list; /// Remove a hook pub fn remove(mut hook: spa_sys::spa_hook) { list::remove(&hook.link); if let Some(removed) = hook.removed { unsafe { removed(&mut hook as *mut _); } } }