aboutsummaryrefslogtreecommitdiffstats
path: root/device.h
blob: 59969473a268e8a2fe46ac29fdda4abba37596a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef DEVICE_INFO_H
#define DEVICE_INFO_H

#ifdef __cplusplus
#include "dive.h"
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 struct divecomputer *fake_dc(struct divecomputer* dc);
extern void remove_dive_computer(const char *model, uint32_t deviceid);

#ifdef __cplusplus
}
#endif

#endif