summaryrefslogtreecommitdiffstats
path: root/src/isotp
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-31 16:03:43 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-31 16:12:36 -0500
commit6bbc83bd1daac73f9e0dcccb848154a3c3b972fa (patch)
tree9b8f6c4c26aff785fd9112d0e8e0ace6b05807fe /src/isotp
parent10a35b0a7c380d77cdd24ac90d6aa0abd4601f3e (diff)
Move some functions to main isotp.h file to simplify includes for now.
Diffstat (limited to 'src/isotp')
-rw-r--r--src/isotp/isotp.h6
-rw-r--r--src/isotp/receive.h3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/isotp/isotp.h b/src/isotp/isotp.h
index 10352383..e3ec588a 100644
--- a/src/isotp/isotp.h
+++ b/src/isotp/isotp.h
@@ -111,6 +111,12 @@ void isotp_receive_can_frame(IsoTpShims* shims, IsoTpHandle* handle,
void isotp_message_to_string(const IsoTpMessage* message, char* destination,
size_t destination_length);
+IsoTpHandle isotp_send(IsoTpShims* shims, const uint16_t arbitration_id,
+ const uint8_t* payload, uint16_t size,
+ IsoTpMessageSentHandler callback);
+
+IsoTpHandle isotp_receive(IsoTpShims* shims, const uint16_t arbitration_id,
+ IsoTpMessageReceivedHandler callback);
#ifdef __cplusplus
}
diff --git a/src/isotp/receive.h b/src/isotp/receive.h
index 3eee89e2..b7c17963 100644
--- a/src/isotp/receive.h
+++ b/src/isotp/receive.h
@@ -14,9 +14,6 @@ void isotp_complete_receive(IsoTpHandle* handle, IsoTpMessage* message);
void isotp_handle_single_frame(IsoTpHandle* handle,
IsoTpMessage* message);
-IsoTpHandle isotp_receive(IsoTpShims* shims, const uint16_t arbitration_id,
- IsoTpMessageReceivedHandler callback);
-
#ifdef __cplusplus
}
#endif