mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
core: move startup function declarations to subsurfacestartup.h
These were declared in dive.h, which makes no sense. This should have been chnaged a long time ago. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
76d672210d
commit
6e349793d1
8 changed files with 12 additions and 12 deletions
|
@ -1,10 +1,10 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* implements Android specific functions */
|
||||
#include "dive.h"
|
||||
#include "device.h"
|
||||
#include "libdivecomputer.h"
|
||||
#include "file.h"
|
||||
#include "qthelper.h"
|
||||
#include "subsurfacestartup.h"
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
|
|
|
@ -179,10 +179,6 @@ extern int save_dive_sites_logic(const char *filename, const struct dive_site *s
|
|||
struct membuffer;
|
||||
extern void save_one_dive_to_mb(struct membuffer *b, const struct dive &dive, bool anonymize);
|
||||
|
||||
extern void subsurface_console_init();
|
||||
extern void subsurface_console_exit();
|
||||
extern bool subsurface_user_is_root();
|
||||
|
||||
extern void copy_dive(const struct dive *s, struct dive *d);
|
||||
extern void selective_copy_dive(const struct dive *s, struct dive *d, struct dive_components what, bool clear);
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <dirent.h>
|
||||
#include <fnmatch.h>
|
||||
#include "dive.h"
|
||||
#include "file.h"
|
||||
#include "device.h"
|
||||
#include "core/qthelper.h"
|
||||
#include "qthelper.h"
|
||||
#include "subsurfacestartup.h"
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#if !defined(__IPHONE_5_0)
|
||||
#include <CoreServices/CoreServices.h>
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
#include <stdlib.h>
|
||||
#include <dirent.h>
|
||||
#include <fnmatch.h>
|
||||
#include "dive.h"
|
||||
#include "subsurface-string.h"
|
||||
#include "device.h"
|
||||
#include "subsurfacestartup.h"
|
||||
#include "subsurface-string.h"
|
||||
#include "libdivecomputer.h"
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#if !defined(__IPHONE_5_0)
|
||||
|
|
|
@ -12,6 +12,10 @@ void parse_argument(const char *arg);
|
|||
void print_files();
|
||||
void print_version();
|
||||
|
||||
void subsurface_console_init();
|
||||
void subsurface_console_exit();
|
||||
bool subsurface_user_is_root();
|
||||
|
||||
extern std::string settings_suffix;
|
||||
|
||||
#ifdef SUBSURFACE_MOBILE_DESKTOP
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* unix.c */
|
||||
/* implements UNIX specific functions */
|
||||
#include "dive.h"
|
||||
#include "file.h"
|
||||
#include "subsurfacestartup.h"
|
||||
#include "subsurface-string.h"
|
||||
#include "device.h"
|
||||
#include "libdivecomputer.h"
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
/* windows.c */
|
||||
/* implements Windows specific functions */
|
||||
#include <io.h>
|
||||
#include "dive.h"
|
||||
#include "device.h"
|
||||
#include "libdivecomputer.h"
|
||||
#include "file.h"
|
||||
#include "errorhelper.h"
|
||||
#include "subsurfacestartup.h"
|
||||
#include "subsurfacesysinfo.h"
|
||||
#undef _WIN32_WINNT
|
||||
#define _WIN32_WINNT 0x500
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
#include "core/errorhelper.h"
|
||||
#include "core/parse.h"
|
||||
#include "core/qthelper.h"
|
||||
#include "core/subsurfacestartup.h"
|
||||
#include "core/settings/qPref.h"
|
||||
#include "core/tag.h"
|
||||
#include "core/dive.h"
|
||||
#include "core/divelog.h"
|
||||
#include "core/subsurfacestartup.h"
|
||||
#include "core/subsurface-string.h"
|
||||
#include "core/file.h"
|
||||
#include "core/trip.h"
|
||||
|
|
Loading…
Reference in a new issue