diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-05 15:44:16 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-05 15:44:54 -0500 |
commit | 1a3951aa48132f696e76bcad97db8c7133cb35d4 (patch) | |
tree | 3431b0a2df4633ed294b07e379eb5a4bf9f0bf64 /src/obd2/extras.c | |
parent | af99c224668bdd1e952119cffc274a74b98b5d59 (diff) |
Add imports and return values to allow compiling with projects.
Diffstat (limited to 'src/obd2/extras.c')
-rw-r--r-- | src/obd2/extras.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <obd2/extras.h> +#include <obd2/obd2.h> // 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; } |