Received: from eggs.gnu.org ([2001:4830:134:3::10]:50919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpddf-0007rH-Lm for qemu-devel@nongnu.org; Thu, 29 Sep 2016 11:52:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpddb-0002rw-Gj for qemu-devel@nongnu.org; Thu, 29 Sep 2016 11:52:46 -0400 Received: from 206-15-90-246.static.twtelecom.net ([206.15.90.246]:26556 helo=felipe-franciosi.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpddb-0002rC-Ap for qemu-devel@nongnu.org; Thu, 29 Sep 2016 11:52:43 -0400 From: Felipe Franciosi Date: Thu, 29 Sep 2016 08:52:34 -0700 Message-Id: <1475164358-2933-1-git-send-email-felipe@nutanix.com> Subject: [Qemu-devel] [PATCH v3 0/4] io: Various fixes around QIOChannel Features List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: berrange@redhat.com, marcandre.lureau@redhat.com Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, Felipe Franciosi This series include four patches around the utilisation of QIOChannel features. The first patch actually fixes a bug, while the next two makes the test/set of features consistent by using helper functions. The last patch adds a test to verify that the bug has been fixed. Changes from v2: - Add a test which fails on master but passes with these fixes - Rebase on latest master Changes from v1: - Fix two pointer declarations (were missing a star) - Fix a call to _set_features() which should be _set_feature() Felipe Franciosi (4): io: Fix double shift usages on QIOChannel features io: Use qio_channel_has_feature() where applicable io: Introduce a qio_channel_set_feature() helper io: Add a QIOChannelSocket cleanup test include/io/channel.h | 16 +++++++++++++--- io/channel-socket.c | 12 +++++++----- io/channel-tls.c | 4 ++-- io/channel-websock.c | 4 ++-- io/channel.c | 11 +++++++++-- tests/test-io-channel-socket.c | 33 +++++++++++++++++++++++++++++++++ 6 files changed, 66 insertions(+), 14 deletions(-)