diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-04-25 12:53:37 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-05-03 15:47:59 +0400 |
commit | 05e50e8fe5fed707653e1e5e2f2871f253a70452 (patch) | |
tree | fd87f387ad196e25227371ae1e6e238b136545bd /include/io | |
parent | 22e135fca3f2512f43d39efab49067660e365e1b (diff) | |
download | qemu-05e50e8fe5fed707653e1e5e2f2871f253a70452.zip qemu-05e50e8fe5fed707653e1e5e2f2871f253a70452.tar.gz qemu-05e50e8fe5fed707653e1e5e2f2871f253a70452.tar.bz2 |
io: make qio_channel_command_new_pid() static
The function isn't used outside of qio_channel_command_new_spawn(),
which is !win32-specific.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/io')
-rw-r--r-- | include/io/channel-command.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/io/channel-command.h b/include/io/channel-command.h index 27e42bd..305ac1d 100644 --- a/include/io/channel-command.h +++ b/include/io/channel-command.h @@ -46,31 +46,6 @@ struct QIOChannelCommand { /** - * qio_channel_command_new_pid: - * @writefd: the FD connected to the command's stdin - * @readfd: the FD connected to the command's stdout - * @pid: the PID of the running child command - * @errp: pointer to a NULL-initialized error object - * - * Create a channel for performing I/O with the - * previously spawned command identified by @pid. - * The two file descriptors provide the connection - * to command's stdio streams, either one or which - * may be -1 to indicate that stream is not open. - * - * The channel will take ownership of the process - * @pid and will kill it when closing the channel. - * Similarly it will take responsibility for - * closing the file descriptors @writefd and @readfd. - * - * Returns: the command channel object, or NULL on error - */ -QIOChannelCommand * -qio_channel_command_new_pid(int writefd, - int readfd, - pid_t pid); - -/** * qio_channel_command_new_spawn: * @argv: the NULL terminated list of command arguments * @flags: the I/O mode, one of O_RDONLY, O_WRONLY, O_RDWR |