diff options
author | 2013-12-30 18:30:13 -0500 | |
---|---|---|
committer | 2013-12-30 18:30:13 -0500 | |
commit | bc7c0205d8dd7550060f6f0bbe8e2064d28ace8c (patch) | |
tree | bd68ac749b67fe0c5f592196e562600954417d51 /src/isotp/isotp.h | |
parent | 368d36cc15b69882e9d21803f3b8aa7a1c97736e (diff) |
Don't use debug function directly in library.
Diffstat (limited to 'src/isotp/isotp.h')
-rw-r--r-- | src/isotp/isotp.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/isotp/isotp.h b/src/isotp/isotp.h index 619dcc69..74a4897a 100644 --- a/src/isotp/isotp.h +++ b/src/isotp/isotp.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <stdbool.h> +#include <stdio.h> #define CAN_MESSAGE_BYTE_SIZE 8 @@ -21,7 +22,7 @@ typedef struct { const uint16_t size; } IsoTpMessage; -typedef void (*LogShim)(const char* message); +typedef void (*LogShim)(const char* message, ...); typedef bool (*SendCanMessageShim)(const uint16_t arbitration_id, const uint8_t* data, const uint8_t size); typedef bool (*SetTimerShim)(uint16_t time_ms, void (*callback)); @@ -88,8 +89,8 @@ void isotp_set_timeout(IsoTpHandler* handler, uint16_t timeout_ms); void isotp_destroy(IsoTpHandler* handler); -void log_isotp_message(const IsoTpMessage* message); - +void isotp_message_to_string(const IsoTpMessage* message, char* destination, + size_t destination_length); #ifdef __cplusplus } |