cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-qemu-char-use-ChardevBackendKind-in-CharDriver.patch

218e99
From 81a8d16533d8fa17be434d87b5ba097387b12b59 Mon Sep 17 00:00:00 2001
218e99
From: Gerd Hoffmann <kraxel@redhat.com>
218e99
Date: Mon, 14 Oct 2013 13:35:18 +0200
218e99
Subject: [PATCH 11/18] qemu-char: use ChardevBackendKind in CharDriver
218e99
218e99
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
218e99
Message-id: <1381757723-23134-11-git-send-email-kraxel@redhat.com>
218e99
Patchwork-id: 54864
218e99
O-Subject: [RHEL-7 qemu-kvm PATCH 10/15] qemu-char: use ChardevBackendKind in CharDriver
218e99
Bugzilla: 922010
218e99
RH-Acked-by: Hans de Goede <hdegoede@redhat.com>
218e99
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
218e99
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
218e99
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
218e99
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
218e99
(cherry picked from commit 99aec0123ce5ba307dc357c5bf1e0f22d2be0931)
218e99
---
218e99
 include/sysemu/char.h | 2 +-
218e99
 qemu-char.c           | 4 ++--
218e99
 2 files changed, 3 insertions(+), 3 deletions(-)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 include/sysemu/char.h |    2 +-
218e99
 qemu-char.c           |    4 ++--
218e99
 2 files changed, 3 insertions(+), 3 deletions(-)
218e99
218e99
diff --git a/include/sysemu/char.h b/include/sysemu/char.h
218e99
index f0ed280..ad101d9 100644
218e99
--- a/include/sysemu/char.h
218e99
+++ b/include/sysemu/char.h
218e99
@@ -283,7 +283,7 @@ CharDriverState *qemu_chr_find(const char *name);
218e99
 QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename);
218e99
 
218e99
 void register_char_driver(const char *name, CharDriverState *(*open)(QemuOpts *));
218e99
-void register_char_driver_qapi(const char *name, int kind,
218e99
+void register_char_driver_qapi(const char *name, ChardevBackendKind kind,
218e99
         void (*parse)(QemuOpts *opts, ChardevBackend *backend, Error **errp));
218e99
 
218e99
 /* add an eventfd to the qemu devices that are polled */
218e99
diff --git a/qemu-char.c b/qemu-char.c
218e99
index 43bd5e2..b41bda4 100644
218e99
--- a/qemu-char.c
218e99
+++ b/qemu-char.c
218e99
@@ -3147,7 +3147,7 @@ typedef struct CharDriver {
218e99
     /* old, pre qapi */
218e99
     CharDriverState *(*open)(QemuOpts *opts);
218e99
     /* new, qapi-based */
218e99
-    int kind;
218e99
+    ChardevBackendKind kind;
218e99
     void (*parse)(QemuOpts *opts, ChardevBackend *backend, Error **errp);
218e99
 } CharDriver;
218e99
 
218e99
@@ -3164,7 +3164,7 @@ void register_char_driver(const char *name, CharDriverState *(*open)(QemuOpts *)
218e99
     backends = g_slist_append(backends, s);
218e99
 }
218e99
 
218e99
-void register_char_driver_qapi(const char *name, int kind,
218e99
+void register_char_driver_qapi(const char *name, ChardevBackendKind kind,
218e99
         void (*parse)(QemuOpts *opts, ChardevBackend *backend, Error **errp))
218e99
 {
218e99
     CharDriver *s;
218e99
-- 
218e99
1.7.1
218e99