mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
751751732c
commit
db39fcf1f6
6 changed files with 32 additions and 17 deletions
|
@ -88,6 +88,15 @@ struct CharDriverState {
|
|||
QTAILQ_ENTRY(CharDriverState) next;
|
||||
};
|
||||
|
||||
/**
|
||||
* @qemu_chr_alloc:
|
||||
*
|
||||
* Allocate and initialize a new CharDriverState.
|
||||
*
|
||||
* Returns: a newly allocated CharDriverState.
|
||||
*/
|
||||
CharDriverState *qemu_chr_alloc(void);
|
||||
|
||||
/**
|
||||
* @qemu_chr_new_from_opts:
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue