]> git.alsa-project.org Git - alsa-gobject.git/commit
ctl: card: use ALSACtl.ElemInfoCommon instead of ElemInfo
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 2 Jun 2022 09:26:26 +0000 (18:26 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Thu, 2 Jun 2022 09:32:52 +0000 (18:32 +0900)
commit0fd7cc1532f9fe452f637f3c9e48718673b21103
treed490aa2b99656807a3233fce529511a9a7bff19b
parent1e2f46add5de8123fb30e9ae58a2565f4fdc5c12
ctl: card: use ALSACtl.ElemInfoCommon instead of ElemInfo

Current implementation to handle element information is by ALSACtl.ElemInfo
gobject class, and uses some helper functions for setter/getter properties
of information. The implementation is not necessarily convenient to add
more type of element information since it requires to add such helper
functions per each.

This commit uses ALSACtl.ElemInfoCommon interface to handle any type of
element information in ALSACtl.Card for system call.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
samples/ctl
src/ctl/card.c
src/ctl/card.h
src/ctl/elem-info-boolean.c
src/ctl/elem-info-bytes.c
src/ctl/elem-info-enumerated.c
src/ctl/elem-info-iec60958.c
src/ctl/elem-info-integer.c
src/ctl/elem-info-integer64.c
src/ctl/privates.h