summaryrefslogtreecommitdiffstats
path: root/core/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/device.h')
-rw-r--r--core/device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/device.h b/core/device.h
index a976a7e64..22163e56c 100644
--- a/core/device.h
+++ b/core/device.h
@@ -26,6 +26,8 @@ extern void call_for_each_dc(void *f, void (*callback)(void *, const char *, uin
extern void clear_device_nodes();
const char *get_dc_nickname(const struct divecomputer *dc);
+extern const struct device *get_device_for_dc(const struct device_table *table, const struct divecomputer *dc);
+
// struct device accessors for C-code. The returned strings are not stable!
const char *device_get_model(const struct device *dev);
const uint32_t device_get_id(const struct device *dev);