mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
478c24d797
commit
54128aa52f
5 changed files with 21 additions and 5 deletions
5
device.c
5
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue