mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
chardev: src buffer const for write functions
Make source buffers const for char be write functions. This allows using buffers returned by fifo as buf parameter and source buffer should not be changed by write functions anyway. Signed-off-by: Arwed Meyer <arwed.meyer@gmx.de> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20220911181840.8933-3-arwed.meyer@gmx.de>
This commit is contained in:
parent
a39fe10557
commit
8f9abdf586
5 changed files with 7 additions and 7 deletions
|
@ -186,7 +186,7 @@ int qemu_chr_be_can_write(Chardev *s);
|
|||
* the caller should call @qemu_chr_be_can_write to determine how much data
|
||||
* the front end can currently accept.
|
||||
*/
|
||||
void qemu_chr_be_write(Chardev *s, uint8_t *buf, int len);
|
||||
void qemu_chr_be_write(Chardev *s, const uint8_t *buf, int len);
|
||||
|
||||
/**
|
||||
* qemu_chr_be_write_impl:
|
||||
|
@ -195,7 +195,7 @@ void qemu_chr_be_write(Chardev *s, uint8_t *buf, int len);
|
|||
*
|
||||
* Implementation of back end writing. Used by replay module.
|
||||
*/
|
||||
void qemu_chr_be_write_impl(Chardev *s, uint8_t *buf, int len);
|
||||
void qemu_chr_be_write_impl(Chardev *s, const uint8_t *buf, int len);
|
||||
|
||||
/**
|
||||
* qemu_chr_be_update_read_handlers:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue