summaryrefslogtreecommitdiffstats
path: root/device.c
diff options
context:
space:
mode:
authorGravatar Amit Chaudhuri <amit.k.chaudhuri@gmail.com>2013-01-17 17:14:52 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-18 07:32:39 -0800
commit334e51988da0bcb6f55fd86bc503255275056d5a (patch)
tree33050234d6b3d65159a96fa2744fc2e5d1dce95e /device.c
parent592c23cd9c3b378fcd1ee85380431bb8acc75dfe (diff)
downloadsubsurface-334e51988da0bcb6f55fd86bc503255275056d5a.tar.gz
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>
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 39f742acb..5b744224e 100644
--- a/device.c
+++ b/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;