mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
core: move device related functions from display.h to device.h
It is ominous that these functions were declared in display.h. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
04241ebb9d
commit
1496bbc314
7 changed files with 15 additions and 13 deletions
|
@ -1,7 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* implements Android specific functions */
|
||||
#include "dive.h"
|
||||
#include "display.h"
|
||||
#include "device.h"
|
||||
#include "libdivecomputer.h"
|
||||
#include "file.h"
|
||||
#include "qthelper.h"
|
||||
#include <string.h>
|
||||
|
|
|
@ -57,6 +57,12 @@ extern uint32_t fp_get_deviceid(struct fingerprint_table *table, unsigned int i)
|
|||
extern uint32_t fp_get_diveid(struct fingerprint_table *table, unsigned int i);
|
||||
extern char *fp_get_data(struct fingerprint_table *table, unsigned int i);
|
||||
|
||||
extern int is_default_dive_computer_device(const char *);
|
||||
|
||||
typedef void (*device_callback_t)(const char *name, void *userdata);
|
||||
|
||||
extern int enumerate_devices(device_callback_t callback, void *userdata, unsigned int transport);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
#ifndef DISPLAY_H
|
||||
#define DISPLAY_H
|
||||
|
||||
#include "libdivecomputer.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -26,12 +24,6 @@ struct plot_info {
|
|||
struct plot_pressure_data *pressures; /* cylinders.nr blocks of nr entries. */
|
||||
};
|
||||
|
||||
extern int is_default_dive_computer_device(const char *);
|
||||
|
||||
typedef void (*device_callback_t)(const char *name, void *userdata);
|
||||
|
||||
extern int enumerate_devices(device_callback_t callback, void *userdata, unsigned int transport);
|
||||
|
||||
#define AMB_PERCENTAGE 50.0
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <fnmatch.h>
|
||||
#include "dive.h"
|
||||
#include "file.h"
|
||||
#include "display.h"
|
||||
#include "device.h"
|
||||
#include "core/qthelper.h"
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#if !defined(__IPHONE_5_0)
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
#include <fnmatch.h>
|
||||
#include "dive.h"
|
||||
#include "subsurface-string.h"
|
||||
#include "display.h"
|
||||
#include "device.h"
|
||||
#include "libdivecomputer.h"
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#if !defined(__IPHONE_5_0)
|
||||
#include <CoreServices/CoreServices.h>
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
#include "dive.h"
|
||||
#include "file.h"
|
||||
#include "subsurface-string.h"
|
||||
#include "display.h"
|
||||
#include "device.h"
|
||||
#include "libdivecomputer.h"
|
||||
#include "membuffer.h"
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
#include "ssrf.h"
|
||||
#include <io.h>
|
||||
#include "dive.h"
|
||||
#include "display.h"
|
||||
#include "device.h"
|
||||
#include "libdivecomputer.h"
|
||||
#include "file.h"
|
||||
#include "errorhelper.h"
|
||||
#include "subsurfacesysinfo.h"
|
||||
|
|
Loading…
Reference in a new issue