From 936cf453f9f9e338148ff08293340d960612e12d Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 13 Sep 2020 18:16:01 +0200 Subject: 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 --- core/device.h | 1 + core/dive.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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 *); -- cgit v1.2.3-70-g09d2