X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=CAN-binder%2Flow-can-binding%2Futils%2Fsocketcan.hpp;h=c7cd5c91631403682227dcdf1954d7ffe285d90c;hb=c1dc2bdc685cff74ceef67e9658e1b193b01b67f;hp=2c79036467888a2e22549529aa23253f97c2d384;hpb=933dbcf8cb1e82763856f0f822d3c68f5b389d46;p=apps%2Fagl-service-can-low-level.git diff --git a/CAN-binder/low-can-binding/utils/socketcan.hpp b/CAN-binder/low-can-binding/utils/socketcan.hpp index 2c790364..c7cd5c91 100644 --- a/CAN-binder/low-can-binding/utils/socketcan.hpp +++ b/CAN-binder/low-can-binding/utils/socketcan.hpp @@ -17,10 +17,12 @@ * limitations under the License. */ +#include + #include #include -#include +#include "../can/can-message.hpp" #define INVALID_SOCKET -1 @@ -71,10 +73,11 @@ namespace utils s << obj; return s; } - socketcan_t& operator<<(socketcan_t& s, const canfd_frame& frame); socketcan_t& operator<<(socketcan_t& s, const can_frame& frame); socketcan_t& operator<<(socketcan_t& s, const struct basic_bcm_msg& obj); socketcan_t& operator<<(socketcan_t& s, const struct canfd_bcm_msg& obj); socketcan_t& operator<<(socketcan_t& s, const struct bcm_msg_head& obj); + + socketcan_t& operator>>(socketcan_t& s, const can_message_t& cm); }