aboutsummaryrefslogtreecommitdiffstats
path: root/src/obd2/extras.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/obd2/extras.h')
-rw-r--r--src/obd2/extras.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/obd2/extras.h b/src/obd2/extras.h
new file mode 100644
index 00000000..e4113077
--- /dev/null
+++ b/src/obd2/extras.h
@@ -0,0 +1,30 @@
+#ifndef __EXTRAS_H__
+#define __EXTRAS_H__
+
+#include <isotp/isotp.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+DiagnosticRequestHandle diagnostic_request_malfunction_indicator_status(
+ DiagnosticShims* shims,
+ DiagnosticMilStatusReceived callback);
+
+DiagnosticRequestHandle diagnostic_request_vin(DiagnosticShims* shims,
+ DiagnosticVinReceived callback);
+
+DiagnosticRequestHandle diagnostic_request_dtc(DiagnosticShims* shims,
+ DiagnosticTroubleCodeType dtc_type,
+ DiagnosticTroubleCodesReceived callback);
+
+bool diagnostic_clear_dtc(DiagnosticShims* shims);
+
+DiagnosticRequestHandle diagnostic_enumerate_pids(DiagnosticShims* shims,
+ DiagnosticRequest* request, DiagnosticPidEnumerationReceived callback);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // __EXTRAS_H__