]> git.alsa-project.org Git - alsa-gobject.git/commit
timer: query: use GFileError to report error
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 14 Nov 2020 08:28:09 +0000 (17:28 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Sun, 15 Nov 2020 00:19:56 +0000 (09:19 +0900)
commit335f622a669322062a1fbe0eb528b269aa56bbd5
treef0bbd9d88fdf2640eac670132958225555d28f54
parent880be3869d91bb3c3f7c481a9fa9eedb17684532
timer: query: use GFileError to report error

In design of ALSA timer, timer character device is not corresponding to
each substance of timer device. It's a kind of interface to query and
operate. Applications adds user instance and operates it to use its
services. Nevertheless, the interface has some functionality without
adding the user instances.

For the functionality, this library has global functions. The functions
are not relevant to the user instance, therefore it's not reasonable to
use error domain specific to the user instance.

This commit uses GFileError to report errors in the global functions.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/timer/query.c