diff options
Diffstat (limited to 'core/device.h')
-rw-r--r-- | core/device.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/device.h b/core/device.h index e145ce7e2..b9729cdcc 100644 --- a/core/device.h +++ b/core/device.h @@ -17,12 +17,13 @@ struct dive_table; extern struct device_table device_table; extern void fake_dc(struct divecomputer *dc); -extern void set_dc_deviceid(struct divecomputer *dc, unsigned int deviceid); -extern void set_dc_nickname(struct dive *dive); -extern void create_device_node(const char *model, uint32_t deviceid, const char *serial, const char *firmware, const char *nickname); +extern void set_dc_deviceid(struct divecomputer *dc, unsigned int deviceid, const struct device_table *table); + +extern void set_dc_nickname(struct dive *dive, struct device_table *table); +extern void create_device_node(struct device_table *table, const char *model, uint32_t deviceid, const char *serial, const char *firmware, const char *nickname); extern int nr_devices(const struct device_table *table); extern const struct device *get_device(const struct device_table *table, int i); -extern void clear_device_nodes(); +extern void clear_device_nodes(struct device_table *table); const char *get_dc_nickname(const struct divecomputer *dc); extern bool device_used_by_selected_dive(const struct device *dev); |