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, plus a few fixes Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
29 lines
760 B
C
29 lines
760 B
C
#ifndef DEVICE_INFO_H
|
|
#define DEVICE_INFO_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct device_info {
|
|
const char *model;
|
|
uint32_t deviceid;
|
|
|
|
const char *serial_nr;
|
|
const char *firmware;
|
|
const char *nickname;
|
|
struct device_info *next;
|
|
};
|
|
|
|
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 struct device_info *head_of_device_info_list(void);
|
|
extern void remove_dive_computer(const char *model, uint32_t deviceid);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|