cleanup: rename set_dc_nickname() to add_devices_of_dive()

The function was misnamed in that it doesn't set the nickname
of a device. Instead, it adds all (unknown) devices of a
dive to the/a device-table. Let's call it appropriately.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-10-18 21:45:50 +02:00 committed by Dirk Hohndel
parent 39a4090c0a
commit 694776eed1
3 changed files with 6 additions and 6 deletions

View file

@ -19,7 +19,7 @@ extern struct device_table device_table;
extern void fake_dc(struct divecomputer *dc);
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 add_devices_of_dive(const 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);