]> git.alsa-project.org Git - alsa-gobject.git/commit
timer: user_instance: use two signals to dispatch events explicitly
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 5 Jun 2022 03:39:24 +0000 (12:39 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Mon, 6 Jun 2022 02:14:34 +0000 (11:14 +0900)
commit75684696af1604d824a7657e776396577c344ce6
tree5326de42a353f87b4108f82d8106cea4f70e10aa
parente9fed05fafad15d105d8f1e64bfae248c4ef46ea
timer: user_instance: use two signals to dispatch events explicitly

Current implementation uses one signal to dispatch events. The user
application should distinguish actual type of event when handling the
evet. Nevertheless the type of event is decided by call of choose API,
before starting timer instance, therefore the application knows the
type of event in advance.

This commit adds two signals to dispatch the events to obsolete the
existent one signal.

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