Skip to content

WpDbus API and wp_core_get_vm_type()

Julian Bouzas requested to merge julian/wireplumber:support into master

This MR provides a WpSupport API with DBus and spa_cpu utilities.

  • WpSupportDbus: a WpObject that connects to dbus when activated, and disconnect from dbus when deactivated. It has a state property to know if the object is connected, connecting or disconnected. If the dbus connection is lost, it will automatically try to connect on idle 1 more time. The logic is the same as current device reservation and portal permission store plugin. The object is a singleton, one for the each type of bus (session or system).

  • WpSupportCpu: an object that wraps spa_cpu and provides an API to check if the cpu is a virtual machine or not.

In addition to this, the portal-permissionstore and reserve-device modules have been refactored to use the new API.

Edit: Renamed WpSupport to WpDbus, and added wp_core_get_vm_type() instead of WpSupportCpu.

Edited by Julian Bouzas

Merge request reports