]> 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)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 5 Jun 2022 03:39:24 +0000 (12:39 +0900)
commitfb9133ea1d5596bb89d52c7854cd72b9585b6a7a
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