]> git.alsa-project.org Git - alsa-gobject.git/commit
rawmidi: query: allow caller to take ownership of file descriptor for control charact...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 16 Nov 2020 13:27:54 +0000 (22:27 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 16 Nov 2020 13:29:19 +0000 (22:29 +0900)
commit3738f77ea2b3b81355b7b2ef6447fe43fd2fe71e
treeb89cee81848e8485a672a9c163565558822bc69b
parentc717393b48c086d628aa36d78dae251e7f450abb
rawmidi: query: allow caller to take ownership of file descriptor for control character device

In design of ALSA rawmidi interface, ALSA control interface has important
function to some operations. The alsarawmidi library has an internal
helper function to operate control character device. The helper function
closes file descriptor to the control character device before returning
to caller, however it's inconvenient to some operations.

This commit allows the caller to take ownership for opened file descriptor
of control character device.

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