]> git.alsa-project.org Git - alsa-gobject.git/commit
hwdep: device-info: allow to set property at instantiation topic/hwdep-interface
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 3 Jun 2022 03:36:48 +0000 (12:36 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 3 Jun 2022 03:36:48 +0000 (12:36 +0900)
commit3402e860e462bc0b6c1d26f0c12ec737a351d855
tree4e40d5eec3039f1c96ee44893f0de23d1735c783
parentef26b219575d7a13cfc97f926806ae22741aed4c
hwdep: device-info: allow to set property at instantiation

ALSAHwdep.DeviceCommon interface allows subclass to implement
get_device_info() virtual function. In the function, DeviceInfo should
be instantiated with correct properties for device information. However,
current implementation of DeviceInfo doesn't have setter function for
the properties.

This commit adds setter function for the purpose. It's allowed to set
them at construction only.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/hwdep/device-info.c