mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add facility to edit nicknames / remove nickname entry
This allows users to edit one or more nick name entries in a single session. Entries can also be removed individually. Based on mock up by Lubomir Ivanov and various conversations from Dirk. Thanks to both. [Dirk Hohndel: quite a bit of editing for coding style and whitespace] Signed-off-by: Amit Chaudhuri <amit.k.chaudhuri@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
592c23cd9c
commit
334e51988d
3 changed files with 256 additions and 0 deletions
5
device.c
5
device.c
|
@ -4,6 +4,11 @@
|
|||
|
||||
static struct device_info *device_info_list;
|
||||
|
||||
struct device_info *head_of_device_info_list(void)
|
||||
{
|
||||
return device_info_list;
|
||||
}
|
||||
|
||||
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