summaryrefslogtreecommitdiffstats
path: root/low-can-binding/utils/socketcan-bcm.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'low-can-binding/utils/socketcan-bcm.hpp')
-rw-r--r--low-can-binding/utils/socketcan-bcm.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/low-can-binding/utils/socketcan-bcm.hpp b/low-can-binding/utils/socketcan-bcm.hpp
index 478a5292..00028905 100644
--- a/low-can-binding/utils/socketcan-bcm.hpp
+++ b/low-can-binding/utils/socketcan-bcm.hpp
@@ -40,13 +40,14 @@ namespace utils
using socketcan_t::socketcan_t;
virtual int open(std::string device_name);
+ virtual std::shared_ptr<can_message_t> read_message();
+ virtual void write_message(std::vector<std::shared_ptr<can_message_t>>& vobj);
+ virtual void write_message(std::shared_ptr<can_message_t> obj);
+ void write_message(struct bcm_msg& obj);
private:
int connect(const struct sockaddr* addr, socklen_t len);
};
- socketcan_bcm_t& operator>>(socketcan_bcm_t& s, can_message_t& cm);
- socketcan_bcm_t& operator<<(socketcan_bcm_t& s, const std::vector<struct bcm_msg>& obj);
- socketcan_bcm_t& operator<<(socketcan_bcm_t& s, const struct bcm_msg& obj);
}