summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-03-14 10:11:26 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-14 10:49:07 -0700
commit76d4e3d91614459394b1909d625adc7219b04740 (patch)
tree3fa2522564f4e37443c348c7f6fb20d1efa8e5b7 /dive.h
parent717f4ef102efcee479aa42678efe3d74b9cef9b2 (diff)
downloadsubsurface-76d4e3d91614459394b1909d625adc7219b04740.tar.gz
error handling: return errors for save functions
Note! This just returns the error (and uses "report_error()" to generate a string that is currently printed to stderr). Nothing actually *uses* that error return yet, and we don't show the error string in the GUI. Baby steps. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/dive.h b/dive.h
index 41b467d29..5188184b5 100644
--- a/dive.h
+++ b/dive.h
@@ -681,10 +681,10 @@ extern void parse_file(const char *filename, char **error);
extern void parse_csv_file(const char *filename, int time, int depth, int temp, int po2f, int cnsf, int stopdepthf, int sepidx, const char *csvtemplate, int units, char **error);
extern void parse_manual_file(const char *filename, int separator_index, int units, int number, int date, int time, int duration, int location, int gps, int maxdepth, int meandepth, int buddy, int notes, int weight, int tags, char **error);
-extern void save_dives(const char *filename);
-extern void save_dives_logic(const char *filename, bool select_only);
-extern void save_dive(FILE *f, struct dive *dive);
-extern void export_dives_uddf(const char *filename, const bool selected);
+extern int save_dives(const char *filename);
+extern int save_dives_logic(const char *filename, bool select_only);
+extern int save_dive(FILE *f, struct dive *dive);
+extern int export_dives_uddf(const char *filename, const bool selected);
struct git_oid;
struct git_repository;