summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Nathan Samson <nathansamson@gmail.com>2011-09-05 22:14:53 +0200
committerGravatar Nathan Samson <nathansamson@gmail.com>2011-09-05 22:15:30 +0200
commit11becb87505b8cdf6fbf2f10941f87d394e49f80 (patch)
tree01e92af5557cddce2f69c5bb758692d52146bcd3 /dive.h
parent65ef1bae20e9c908745115d0d82b7232dc5d1b26 (diff)
downloadsubsurface-11becb87505b8cdf6fbf2f10941f87d394e49f80.tar.gz
Report errors when opening files
Signed-off-by: Nathan Samson <nathansamson@gmail.com>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 65337303a..82b336e53 100644
--- a/dive.h
+++ b/dive.h
@@ -4,6 +4,8 @@
#include <stdlib.h>
#include <time.h>
+#include <glib.h>
+
/*
* Some silly typedefs to make our units very explicit.
*
@@ -141,7 +143,7 @@ static inline struct dive *get_dive(unsigned int nr)
}
extern void parse_xml_init(void);
-extern void parse_xml_file(const char *filename);
+extern void parse_xml_file(const char *filename, GError **error);
extern void flush_dive_info_changes(void);
extern void save_dives(const char *filename);
@@ -154,4 +156,6 @@ static inline unsigned int dive_size(int samples)
extern struct dive *fixup_dive(struct dive *dive);
extern struct dive *try_to_merge(struct dive *a, struct dive *b);
+#define DIVE_ERROR_PARSE 1
+
#endif /* DIVE_H */