From 1a3951aa48132f696e76bcad97db8c7133cb35d4 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Sun, 5 Jan 2014 15:44:16 -0500 Subject: Add imports and return values to allow compiling with projects. --- src/obd2/extras.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/obd2/extras.c') diff --git a/src/obd2/extras.c b/src/obd2/extras.c index 905ef89d..37a55fe2 100644 --- a/src/obd2/extras.c +++ b/src/obd2/extras.c @@ -1,4 +1,5 @@ #include +#include // TODO everything below here is for future work...not critical for now. @@ -7,18 +8,25 @@ DiagnosticRequestHandle diagnostic_request_malfunction_indicator_status( DiagnosticMilStatusReceived callback) { // TODO request malfunction indicator light (MIL) status - request mode 1 // pid 1, parse first bit + DiagnosticRequestHandle handle; + return handle; } DiagnosticRequestHandle diagnostic_request_vin(DiagnosticShims* shims, DiagnosticVinReceived callback) { + DiagnosticRequestHandle handle; + return handle; } DiagnosticRequestHandle diagnostic_request_dtc(DiagnosticShims* shims, DiagnosticTroubleCodeType dtc_type, DiagnosticTroubleCodesReceived callback) { + DiagnosticRequestHandle handle; + return handle; } bool diagnostic_clear_dtc(DiagnosticShims* shims) { + return false; } DiagnosticRequestHandle diagnostic_enumerate_pids(DiagnosticShims* shims, @@ -26,4 +34,6 @@ DiagnosticRequestHandle diagnostic_enumerate_pids(DiagnosticShims* shims, // before calling the callback, split up the received bytes into 1 or 2 byte // chunks depending on the mode so the final pid list is actual 1 or 2 byte PIDs // TODO request supported PIDs - request PID 0 and parse 4 bytes in response + DiagnosticRequestHandle handle; + return handle; } -- cgit 1.2.3-korg