2017-04-27 18:18:03 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2014-02-11 18:14:46 +00:00
|
|
|
#ifndef DEVICE_H
|
|
|
|
#define DEVICE_H
|
2013-01-09 20:07:09 +00:00
|
|
|
|
2019-08-05 17:41:15 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2013-04-01 10:51:49 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-08-05 17:41:15 +00:00
|
|
|
struct divecomputer;
|
2018-05-05 17:26:48 +00:00
|
|
|
extern void fake_dc(struct divecomputer *dc);
|
2016-06-21 04:07:36 +00:00
|
|
|
extern void set_dc_deviceid(struct divecomputer *dc, unsigned int deviceid);
|
2013-06-17 22:58:26 +00:00
|
|
|
extern void create_device_node(const char *model, uint32_t deviceid, const char *serial, const char *firmware, const char *nickname);
|
2014-01-16 02:03:11 +00:00
|
|
|
extern void call_for_each_dc(void *f, void (*callback)(void *, const char *, uint32_t,
|
2015-06-10 14:24:34 +00:00
|
|
|
const char *, const char *, const char *), bool select_only);
|
2013-01-09 20:07:09 +00:00
|
|
|
|
2013-04-01 10:51:49 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-02-11 18:14:46 +00:00
|
|
|
#endif // DEVICE_H
|