mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
334e51988d
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>
22 lines
681 B
C
22 lines
681 B
C
#ifndef DEVICE_INFO_H
|
|
#define DEVICE_INFO_H
|
|
|
|
struct device_info {
|
|
const char *model;
|
|
uint32_t deviceid;
|
|
|
|
const char *serial_nr;
|
|
const char *firmware;
|
|
const char *nickname;
|
|
struct device_info *next;
|
|
gboolean saved;
|
|
};
|
|
|
|
extern struct device_info *get_device_info(const char *model, uint32_t deviceid);
|
|
extern struct device_info *get_different_device_info(const char *model, uint32_t deviceid);
|
|
extern struct device_info *create_device_info(const char *model, uint32_t deviceid);
|
|
extern struct device_info *remove_device_info(const char *model, uint32_t deviceid);
|
|
extern void clear_device_saved_status(void);
|
|
extern struct device_info *head_of_device_info_list(void);
|
|
|
|
#endif
|