]> git.proxmox.com Git - mirror_qemu.git/commit
io: add a QIOChannelNull equivalent to /dev/null
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 20 Jun 2022 11:01:45 +0000 (12:01 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 22 Jun 2022 17:11:21 +0000 (18:11 +0100)
commit87e42764490896e66ab8a3c93280384689b0acb4
tree6d4733ca4c0a49db2a65f924d3484c6b89afeab4
parent1abaec9a1b2c23f7aa94709a422128d9e42c3e0b
io: add a QIOChannelNull equivalent to /dev/null

This is for code which needs a portable equivalent to a QIOChannelFile
connected to /dev/null.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
include/io/channel-null.h [new file with mode: 0644]
io/channel-null.c [new file with mode: 0644]
io/meson.build
io/trace-events
tests/unit/meson.build
tests/unit/test-io-channel-null.c [new file with mode: 0644]