summaryrefslogtreecommitdiffstats
path: root/device.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-07 15:25:29 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-07 15:25:29 -0300
commit54128aa52fe5c765ce6ced8bd05611e202195d6b (patch)
tree927f6d1479bd702f581a16124f177b6be81ea39d /device.c
parent478c24d79795b34efb42c1ac29abd8fa777b9c90 (diff)
downloadsubsurface-54128aa52fe5c765ce6ced8bd05611e202195d6b.tar.gz
Added the code to remove a dive computer.
Added the code to remove a dive computer, plus a few fixes Signed-off-by: Tomaz Canabrava <tcanabrava@kde.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 660cfc1ab..52c49a5bd 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;