aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-08 23:46:59 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:10:40 +0100
commitb8e9588a9fb64b2e7ef7859ae0ab147c0c92ddda (patch)
treefb5b0e11aacb3daf3a126dda46253689d18adfc4
parent027cf3d6f3672911f74c3d4eb18f65adc31732fc (diff)
Forward declaration needed instead of include the
whole file. Lighter. Change-Id: I14af5868679e5c65bda9a4395b040cc28af04059 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--src/can/can-message.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/can/can-message.hpp b/src/can/can-message.hpp
index 6736a9bf..fc85ed9c 100644
--- a/src/can/can-message.hpp
+++ b/src/can/can-message.hpp
@@ -22,11 +22,12 @@
#include <cstdint>
#include <linux/can.h>
-#include "can/can-bus.hpp"
#include "utils/timer.hpp"
#define CAN_MESSAGE_SIZE 8
+class can_bus_dev_t;
+
/**
* @enum can_message_format
* @brief The ID format for a CAN message.