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:
Berthold Stoeger 2024-06-30 21:17:17 +02:00 committed by bstoeger
parent 76d672210d
commit 6e349793d1
8 changed files with 12 additions and 12 deletions

View file

@ -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>

View file

@ -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);

View file

@ -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>

View file

@ -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)

View file

@ -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

View file

@ -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"

View file

@ -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

View file

@ -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"