Skip to content

Error handling

Julian Bouzas requested to merge julian/wireplumber:error-handling into master

In addition to including the bind and enum_params error handling commits from the error-tracking branch, this MR delays the node, device and link objects creation until the BOUND feature is requested in WpGlobalProxy class, allowing creation errors to be handled when the objects is being activated.

The WpGlobalProxy class has now a factory-name property, and the global-properties has been modified to be writable as well. If a node, device or link is created using the corresponding _new_from_factory() API, the WpGlobalObject is constructed using those properties, which are stored and used to create the pw_proxy in the BOUND execution step, only if WpGlobalProxy's global has not been set.

Merge request reports

Loading