]> git.alsa-project.org Git - alsa-utils.git/commit
axfer: open file descriptor outside of container module
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 11 Mar 2021 05:21:36 +0000 (14:21 +0900)
committerJaroslav Kysela <perex@perex.cz>
Thu, 11 Mar 2021 08:28:12 +0000 (09:28 +0100)
commit5cb67b5ab6e6bc28a14a383950d8c614b86b45b8
tree3755070ec56df849a6ff3d117b6293f005535424
parent4bf9e269b2ca6509612db7e8edbd0939226f827c
axfer: open file descriptor outside of container module

Internal container module operates file descriptor to media file. For
this purpose, the structure has fd member and any file operation is done
internally. However, the case to use special file descriptor such as
memfd requires to maintain file descriptor externally.

This commit opens file descriptor outside of container module. The
internal APIs to initialize container get an argument for the file
descriptor instead of file path.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
axfer/container.c
axfer/container.h
axfer/subcmd-transfer.c
axfer/test/container-test.c
axfer/test/mapper-test.c