summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-09 05:59:03 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-09 05:59:03 -0300
commit96d1cc570e31396039e4970d2bf75d5f00f1e550 (patch)
tree526ddda7c6c32d20d4698a4451fa7834ae78a07f /dive.h
parent6a7256fdd5609b3792b2b0e6a3e85203d0ee8206 (diff)
downloadsubsurface-96d1cc570e31396039e4970d2bf75d5f00f1e550.tar.gz
Use the same code for command line and gui for file handling.
The Command line execution of Subsurface happened before the GUI was created, this leaded to various bugs by me(tm) over time. This patch seems to fix all of those, by reusing the same code for GUI interaction and CommandLine interaction. I had to rework how the main.c worked, it used to be C code calling C++ code, and this is non desirable, since C doesn't really understand C++. I Moved all of C-related code to 'subsurfacestartup.c/h' and created a tiny wrapper to call it, so all of the C code is still C code, and the new main.cpp calls the mainwindow->loadFiles and mainWindow->importFiles to get rid of the bugs that happened before. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/dive.h b/dive.h
index 2c69cbff8..64da53c87 100644
--- a/dive.h
+++ b/dive.h
@@ -628,12 +628,6 @@ extern void add_event(struct divecomputer *dc, int time, int type, int flags, in
/* UI related protopypes */
-extern void init_ui(int *argcp, char ***argvp);
-extern void init_qt_ui(int *argcp, char ***argvp, char *errormessage);
-
-extern void run_ui(void);
-extern void exit_ui(void);
-
extern void report_error(GError* error);
extern void add_cylinder_description(cylinder_type_t *);