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>
Showing
- include/io/channel.h 10 additions, 0 deletionsinclude/io/channel.h
- io/channel-socket.c 5 additions, 4 deletionsio/channel-socket.c
- io/channel-tls.c 1 addition, 1 deletionio/channel-tls.c
- io/channel-websock.c 1 addition, 1 deletionio/channel-websock.c
- io/channel.c 7 additions, 0 deletionsio/channel.c
Loading
Please register or sign in to comment