io: Introduce a qio_channel_set_feature() helper
commitd8d3c7cc672d89b26180a404d6f0b03494160cf5
authorFelipe Franciosi <felipe@nutanix.com>
Thu, 29 Sep 2016 15:52:37 +0000 (29 08:52 -0700)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 26 Oct 2016 16:19:53 +0000 (26 18:19 +0200)
tree535d38ccf68e12031a5bda318753a145c264428b
parente413ae0c0492c10d9277a1155ecc21fbbf0e2bc7
io: Introduce a qio_channel_set_feature() helper

Testing QIOChannel feature support can be done with a helper called
qio_channel_has_feature(). Setting feature support, however, was
done manually with a logical OR. This patch introduces a new helper
called qio_channel_set_feature() and makes use of it where applicable.

Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
include/io/channel.h
io/channel-socket.c
io/channel-tls.c
io/channel-websock.c
io/channel.c