summaryrefslogtreecommitdiffstats
path: root/device.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-17 11:12:10 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-17 11:12:10 -0700
commitf465230263c4d1827feafedfce1b648cc035e49a (patch)
tree246e08c2f3cb0cf5e264c1788ff50005f6a80970 /device.c
parent6fd1e32452a9d3d1fb7116764442bbd26d36673e (diff)
parent7681895fe09aa81c83143c6a58459e354a4234b1 (diff)
downloadsubsurface-f465230263c4d1827feafedfce1b648cc035e49a.tar.gz
Merge branch '119_divecomputerManagement' of github.com:tcanabrava/subsurface
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'device.c')
-rw-r--r--device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/device.c b/device.c
index 9666a4869..2baa2e03a 100644
--- a/device.c
+++ b/device.c
@@ -9,6 +9,11 @@ struct device_info *head_of_device_info_list(void)
return device_info_list;
}
+void remove_dive_computer(const char *model, uint32_t deviceid)
+{
+ free(remove_device_info(model, deviceid));
+}
+
static int match_device_info(struct device_info *entry, const char *model, uint32_t deviceid)
{
return !strcmp(entry->model, model) && entry->deviceid == deviceid;