]> git.alsa-project.org Git - alsa-gobject.git/commit
timer: user_instance: add API to choose the type of event to read
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 12 Jun 2020 13:24:02 +0000 (22:24 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Fri, 12 Jun 2020 22:49:01 +0000 (07:49 +0900)
commit5b1b5b7f34c872216bba1e81f46a24865c811245
treea0ad92081b36ee0d6c37e174dea0c3203c0a726f
parentb8ca9c7c1f15cd8e1662f67ddcea2037a26a560d
timer: user_instance: add API to choose the type of event to read

Currently ALSATimer.UserInstance has any attach API to decide the type of
event to read. In design of ALSA Timer core, the attach API has two
functionality; to attach or to detach with error for absent timer device.
Current implementation has inconvenient for the functionality due to
execution to choose the type of event in advance. The execution fails
when the instance is already attached.

This commit adds a new API to choose the type of event and split the
call from any attach API.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/timer/alsatimer.map
src/timer/user-instance.c
src/timer/user-instance.h
tests/alsatimer-user-instance