X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Fbinding%2Flow-can-socket.hpp;h=018b3076877bf862c1819ae92790d7117e320a72;hb=d31f5d10465003e720c9d0f54e4f935f96d81151;hp=3621a3d67bb7fd05482c6851ab696d0b61f5541a;hpb=3a0d2a4a74e548c3ef19b19c72bf28a3da8796bf;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/binding/low-can-socket.hpp b/low-can-binding/binding/low-can-socket.hpp index 3621a3d6..018b3076 100644 --- a/low-can-binding/binding/low-can-socket.hpp +++ b/low-can-binding/binding/low-can-socket.hpp @@ -80,11 +80,12 @@ public: struct utils::simple_bcm_msg make_bcm_head(uint32_t opcode, uint32_t can_id = 0, uint32_t flags = 0, const struct timeval& timeout = {0,0}, const struct timeval& frequency_thinning = {0,0}) const; void add_bcm_frame(const struct can_frame& cfd, struct utils::simple_bcm_msg& bcm_msg) const; - int open_socket(); + int open_socket(const std::string& bus_name = ""); int create_rx_filter(std::shared_ptr sig); int create_rx_filter(std::shared_ptr sig); int create_rx_filter(utils::simple_bcm_msg& bcm_msg); - int tx_send(const struct can_frame& cf, std::shared_ptr sig = nullptr); + int tx_send(const struct can_frame& cf, std::shared_ptr sig); + int tx_send(const struct can_frame& cf, const std::string& bus_name); };