X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=CAN-binder%2Flow-can-binding%2Futils%2Fsocketcan-bcm.hpp;h=2e4547ba52329df91112a833954af3a8ba849778;hb=5d96c27e2679e37bd7354d3c618a4fc3111f137c;hp=deb30c6998046217be4b6747fcdb1df35cb2f991;hpb=8546fc68782d8a82a5c50a49ba1288dcb7714bf9;p=apps%2Flow-level-can-service.git diff --git a/CAN-binder/low-can-binding/utils/socketcan-bcm.hpp b/CAN-binder/low-can-binding/utils/socketcan-bcm.hpp index deb30c6..2e4547b 100644 --- a/CAN-binder/low-can-binding/utils/socketcan-bcm.hpp +++ b/CAN-binder/low-can-binding/utils/socketcan-bcm.hpp @@ -18,6 +18,7 @@ #pragma once #include "socketcan.hpp" +#include "../can/can-message.hpp" namespace utils { @@ -44,6 +45,8 @@ namespace utils 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 struct simple_bcm_msg& obj); // socketcan_bcm_t& operator<<(socketcan_bcm_t& s, const struct canfd_bcm_msg& obj); }