mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
ec38d3708d
The legacy nickname wrappers (that use the device_info structure) are left in gtk-gui.c. We can slowly start moving away from them, we don't want to start exporting that thing as some kind of generic interface. This isn't a pure code movement - because we leave the legacy interfaces alone, there are a few new interfaces in device.c (like "create a new device_info entry") that were embedded into the legacy "create nickname" code, and needed to be abstracted out. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
19 lines
575 B
C
19 lines
575 B
C
#ifndef DEVICE_INFO_H
|
|
#define DEVICE_INFO_H
|
|
|
|
struct device_info {
|
|
const char *model;
|
|
uint32_t deviceid;
|
|
|
|
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);
|
|
|
|
#endif
|