mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 11:53:39 +08:00
qemu-char: use ChardevBackendKind in CharDriver
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
e668287d44
commit
99aec0123c
@ -281,7 +281,7 @@ CharDriverState *qemu_chr_find(const char *name);
|
||||
QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename);
|
||||
|
||||
void register_char_driver(const char *name, CharDriverState *(*open)(QemuOpts *));
|
||||
void register_char_driver_qapi(const char *name, int kind,
|
||||
void register_char_driver_qapi(const char *name, ChardevBackendKind kind,
|
||||
void (*parse)(QemuOpts *opts, ChardevBackend *backend, Error **errp));
|
||||
|
||||
/* add an eventfd to the qemu devices that are polled */
|
||||
|
@ -3120,7 +3120,7 @@ typedef struct CharDriver {
|
||||
/* old, pre qapi */
|
||||
CharDriverState *(*open)(QemuOpts *opts);
|
||||
/* new, qapi-based */
|
||||
int kind;
|
||||
ChardevBackendKind kind;
|
||||
void (*parse)(QemuOpts *opts, ChardevBackend *backend, Error **errp);
|
||||
} CharDriver;
|
||||
|
||||
@ -3137,7 +3137,7 @@ void register_char_driver(const char *name, CharDriverState *(*open)(QemuOpts *)
|
||||
backends = g_slist_append(backends, s);
|
||||
}
|
||||
|
||||
void register_char_driver_qapi(const char *name, int kind,
|
||||
void register_char_driver_qapi(const char *name, ChardevBackendKind kind,
|
||||
void (*parse)(QemuOpts *opts, ChardevBackend *backend, Error **errp))
|
||||
{
|
||||
CharDriver *s;
|
||||
|
Loading…
Reference in New Issue
Block a user