summaryrefslogtreecommitdiffstats
path: root/low-can-binding/utils/socketcan-raw.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'low-can-binding/utils/socketcan-raw.hpp')
-rw-r--r--low-can-binding/utils/socketcan-raw.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/low-can-binding/utils/socketcan-raw.hpp b/low-can-binding/utils/socketcan-raw.hpp
index 61672411..42e98746 100644
--- a/low-can-binding/utils/socketcan-raw.hpp
+++ b/low-can-binding/utils/socketcan-raw.hpp
@@ -17,7 +17,7 @@
#pragma once
#include "socketcan.hpp"
-#include "../can/can-message.hpp"
+#include "../can/message/can-message.hpp"
namespace utils
{
@@ -26,10 +26,12 @@ namespace utils
public:
using socketcan_t::socketcan_t;
virtual int open(std::string device_name);
+ virtual std::shared_ptr<message_t> read_message();
+ virtual void write_message(std::shared_ptr<message_t> cm);
+ virtual void write_message(std::vector<std::shared_ptr<message_t>>& vobj);
private:
int bind(const struct sockaddr* addr, socklen_t len);
};
- socketcan_raw_t& operator>>(socketcan_raw_t& s, can_message_t& cm);
}