mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
hw/net/can: Make CanBusClientInfo::can_receive() return a boolean
The CanBusClientInfo::can_receive handler return whether the device can or can not receive new frames. Make it obvious by returning a boolean type. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
b8c4b67e3e
commit
767cc9a9c1
5 changed files with 9 additions and 9 deletions
|
@ -83,7 +83,7 @@ typedef struct CanBusClientState CanBusClientState;
|
|||
typedef struct CanBusState CanBusState;
|
||||
|
||||
typedef struct CanBusClientInfo {
|
||||
int (*can_receive)(CanBusClientState *);
|
||||
bool (*can_receive)(CanBusClientState *);
|
||||
ssize_t (*receive)(CanBusClientState *,
|
||||
const struct qemu_can_frame *frames, size_t frames_cnt);
|
||||
} CanBusClientInfo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue