diff options
author | 2011-09-05 14:44:27 -0700 | |
---|---|---|
committer | 2011-09-05 14:44:27 -0700 | |
commit | c24fd4b82cf4476c6d9c863ee03f2d729b64e5f0 (patch) | |
tree | e2585459dafdcb544bfc4ff3e91e94a84fc72341 /dive.h | |
parent | 8197d7f4d4702d18df5b2121b5e0126c61e1b7ea (diff) | |
parent | 11becb87505b8cdf6fbf2f10941f87d394e49f80 (diff) | |
download | subsurface-c24fd4b82cf4476c6d9c863ee03f2d729b64e5f0.tar.gz |
Merge branch 'open-files' of git://github.com/nathansamson/diveclog
* 'open-files' of git://github.com/nathansamson/diveclog:
Report errors when opening files
Make it possible to load multiple files at once.
Open File works. I refactored the code and introduced a new type. I never used it as a pointer (their was no real reason), but I'm not really satisfied.
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 */ |