summary refs log tree commit diff stats
path: root/hw/net/can/can_sja1000.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2020-03-05 18:56:50 +0100
committerJason Wang <jasowang@redhat.com>2020-03-31 21:14:35 +0800
commit767cc9a9c1daf9b6c8efbfef656e5ca12c853a45 (patch)
tree0c321c5e8b0c16c1195e53594b91f9292e4966e5 /hw/net/can/can_sja1000.h
parentb8c4b67e3ec3918a40234e5c56221f780c7856fc (diff)
downloadfocaccia-qemu-767cc9a9c1daf9b6c8efbfef656e5ca12c853a45.tar.gz
focaccia-qemu-767cc9a9c1daf9b6c8efbfef656e5ca12c853a45.zip
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>
Diffstat (limited to 'hw/net/can/can_sja1000.h')
-rw-r--r--hw/net/can/can_sja1000.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/can/can_sja1000.h b/hw/net/can/can_sja1000.h
index 220a622087..7ca9cd681e 100644
--- a/hw/net/can/can_sja1000.h
+++ b/hw/net/can/can_sja1000.h
@@ -137,7 +137,7 @@ void can_sja_disconnect(CanSJA1000State *s);
 
 int can_sja_init(CanSJA1000State *s, qemu_irq irq);
 
-int can_sja_can_receive(CanBusClientState *client);
+bool can_sja_can_receive(CanBusClientState *client);
 
 ssize_t can_sja_receive(CanBusClientState *client,
                         const qemu_can_frame *frames, size_t frames_cnt);