summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-09-13 18:16:01 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-13 13:54:59 -0700
commit936cf453f9f9e338148ff08293340d960612e12d (patch)
treeb59f8cb98b33f6e280dd1fa96dd2d7e23aeba5de
parente6145b5498a61cd5625b3712a6501b9021acb27e (diff)
downloadsubsurface-936cf453f9f9e338148ff08293340d960612e12d.tar.gz
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>
-rw-r--r--core/device.h1
-rw-r--r--core/dive.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/core/device.h b/core/device.h
index 65b715ba1..4c202bee5 100644
--- a/core/device.h
+++ b/core/device.h
@@ -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);
diff --git a/core/dive.h b/core/dive.h
index b29cf9857..e12f8f7f5 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -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 *);