pulse-server: map "device.sysfs.path" to "sysfs.path"

This commit is contained in:
Davide Beatrici 2022-06-30 02:03:04 +02:00 committed by Wim Taymans
parent 0d33760b71
commit e0731f0ffa
2 changed files with 2 additions and 0 deletions

View file

@ -43,6 +43,7 @@ const struct str_map media_role_map[] = {
const struct str_map props_key_map[] = {
{ PW_KEY_DEVICE_BUS_PATH, "device.bus_path" },
{ PW_KEY_DEVICE_SYSFS_PATH, "sysfs.path" },
{ PW_KEY_DEVICE_FORM_FACTOR, "device.form_factor" },
{ PW_KEY_DEVICE_ICON_NAME, "device.icon_name" },
{ PW_KEY_DEVICE_INTENDED_ROLES, "device.intended_roles" },

View file

@ -249,6 +249,7 @@ extern "C" {
* "isa", "pci", "usb", "firewire",
* "bluetooth" */
#define PW_KEY_DEVICE_SUBSYSTEM "device.subsystem" /**< device subsystem */
#define PW_KEY_DEVICE_SYSFS_PATH "device.sysfs.path" /**< device sysfs path */
#define PW_KEY_DEVICE_ICON "device.icon" /**< icon for the device. A base64 blob
* containing PNG image data */
#define PW_KEY_DEVICE_ICON_NAME "device.icon-name" /**< an XDG icon name for the device.