aboutsummaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-05 20:07:10 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-08-08 16:26:31 -0700
commit594d1d3514f91221884bdc31f29a09e8f325f1e8 (patch)
tree13b7d02568a0b332857935cb69bfb545fa13f966 /core/dive.h
parent5da09a21bba0b3d8979d6b8e70baf52b0316242f (diff)
downloadsubsurface-594d1d3514f91221884bdc31f29a09e8f325f1e8.tar.gz
Cleanup: move file-related function declarations to file.h
A number of architecture-dependent functions were declared in dive.h. Move them to file.h so that not all file-manipulating translation units have to include dive.h. This is a small step in avoiding mass-recompilation on every change to dive.h Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/core/dive.h b/core/dive.h
index fcd9483f7..57bb6e297 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -9,9 +9,8 @@
#include <stdbool.h>
#include <time.h>
#include <math.h>
-#include <zip.h>
#include <string.h>
-#include <sys/stat.h>
+#include <stdio.h>
#include "equipment.h"
@@ -317,15 +316,6 @@ struct user_info {
};
extern void subsurface_user_info(struct user_info *);
-extern int subsurface_rename(const char *path, const char *newpath);
-extern int subsurface_dir_rename(const char *path, const char *newpath);
-extern int subsurface_open(const char *path, int oflags, mode_t mode);
-extern FILE *subsurface_fopen(const char *path, const char *mode);
-extern void *subsurface_opendir(const char *path);
-extern int subsurface_access(const char *path, int mode);
-extern int subsurface_stat(const char* path, struct stat* buf);
-extern struct zip *subsurface_zip_open_readonly(const char *path, int flags, int *errorp);
-extern int subsurface_zip_close(struct zip *zip);
extern void subsurface_console_init(void);
extern void subsurface_console_exit(void);
extern bool subsurface_user_is_root(void);