]> 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)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Mon, 16 Nov 2020 23:40:05 +0000 (08:40 +0900)
commit6c9f09adb2b01ee1003606768cf6ae236229e389
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