diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-10-22 12:52:53 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-10-24 15:27:20 +0200 |
commit | 7fa47e2a80e1c204533340f65909b7fc7c6b276f (patch) | |
tree | 06fa4c2de9409c5d1b3f1ec934f8f1234d4de949 /tests/vhost-user-test.c | |
parent | 32a6ebecd2ffe82ffade5edf9e054e20cb48f281 (diff) |
char: rename some frontend functions
qemu_chr_accept_input() and qemu_chr_disconnect() are only used by
frontend, so use qemu_chr_fe prefix.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161022095318.17775-14-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/vhost-user-test.c')
-rw-r--r-- | tests/vhost-user-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/vhost-user-test.c b/tests/vhost-user-test.c index 52fbc0386f..6e5383d8c2 100644 --- a/tests/vhost-user-test.c +++ b/tests/vhost-user-test.c @@ -268,7 +268,7 @@ static void chr_read(void *opaque, const uint8_t *buf, int size) int fd; if (s->test_fail) { - qemu_chr_disconnect(chr->chr); + qemu_chr_fe_disconnect(chr->chr); /* now switch to non-failure */ s->test_fail = false; } @@ -313,7 +313,7 @@ static void chr_read(void *opaque, const uint8_t *buf, int size) g_assert_cmpint(msg.payload.u64 & (0x1ULL << VHOST_USER_F_PROTOCOL_FEATURES), !=, 0ULL); if (s->test_flags == TEST_FLAGS_DISCONNECT) { - qemu_chr_disconnect(chr->chr); + qemu_chr_fe_disconnect(chr->chr); s->test_flags = TEST_FLAGS_BAD; } break; @@ -724,7 +724,7 @@ reconnect_cb(gpointer user_data) { TestServer *s = user_data; - qemu_chr_disconnect(s->chr.chr); + qemu_chr_fe_disconnect(s->chr.chr); return FALSE; } |