mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: move set_dc_nickname() declaration from dive.h to device.h
The function *looks* like it is a dive function. However, in reality it implicitly works on the global device list. Therefore, it is thematically more aptly located in device.h with the other device functions. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e6145b5498
commit
936cf453f9
2 changed files with 1 additions and 1 deletions
|
@ -11,6 +11,7 @@ extern "C" {
|
|||
struct divecomputer;
|
||||
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 call_for_each_dc(void *f, void (*callback)(void *, const char *, uint32_t,
|
||||
const char *, const char *, const char *), bool select_only);
|
||||
|
|
|
@ -360,7 +360,6 @@ extern void invalidate_dive_cache(struct dive *dc);
|
|||
|
||||
extern void clear_events(void);
|
||||
|
||||
extern void set_dc_nickname(struct dive *dive);
|
||||
extern void set_autogroup(bool value);
|
||||
extern int total_weight(const struct dive *);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue