Skip to content

pass reference on GlobalObject in Registry global callback

Guillaume Desmottes requested to merge gdesmott/pipewire-rs:dict-7 into master

See individual commits and #7 (closed) for details.

The example from #7 (closed) can now be implemented using:

let global: Rc<RefCell<Option<GlobalObject<_>>>> = Rc::new(RefCell::new(Option::None));

(...)

*global_clone.borrow_mut() = Some(global.to_owned());

Merge request reports

Loading