diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-06-18 08:43:55 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-06-23 11:12:28 -0400 |
commit | db39fcf1f690b02d612e2bfc00980700887abe03 (patch) | |
tree | 92274d002b118043816e66924b1d271c62ea2e3c /include/sysemu/char.h | |
parent | 751751732c48d8fc2facf76d72fc56ba68494f45 (diff) |
qemu-char: introduce qemu_chr_alloc
The next patch will modify this function to initialize state that is
common to all backends.
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'include/sysemu/char.h')
-rw-r--r-- | include/sysemu/char.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sysemu/char.h b/include/sysemu/char.h index 672ed39a31..bd2b62d21a 100644 --- a/include/sysemu/char.h +++ b/include/sysemu/char.h @@ -89,6 +89,15 @@ struct CharDriverState { }; /** + * @qemu_chr_alloc: + * + * Allocate and initialize a new CharDriverState. + * + * Returns: a newly allocated CharDriverState. + */ +CharDriverState *qemu_chr_alloc(void); + +/** * @qemu_chr_new_from_opts: * * Create a new character backend from a QemuOpts list. |