]> git.alsa-project.org Git - alsa-gobject.git/commit
hwdep: device-info: allow to set property at instantiation
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 3 Jun 2022 03:36:48 +0000 (12:36 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Fri, 3 Jun 2022 03:39:32 +0000 (12:39 +0900)
commite9fed05fafad15d105d8f1e64bfae248c4ef46ea
tree4e40d5eec3039f1c96ee44893f0de23d1735c783
parent5c37a65b88f0a86329fc3eb6044af77c00e7afcb
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