summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-01 16:27:52 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-01 16:27:52 -0700
commit1155ad3f0fb2471163335d1d7c6856a81f495e49 (patch)
tree541fb1ce530b0a6cf0fd9563ff2b664589e3b9d1 /dive.h
parentd5e42d485e6c4a62b78281aac900bb447d811ab1 (diff)
downloadsubsurface-1155ad3f0fb2471163335d1d7c6856a81f495e49.tar.gz
Add ability to 'save' dives
This just generates another xml file. Don't get me wrong: I still don't like xml, but this way we can save in the same format we load things from. Except the save-format is a *lot* cleaner than the abortion that is Suunto or libdivecomputer xml. Don't bother with some crazy xml library crap for saving. Just do it! Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index bce1fe669..15a357f89 100644
--- a/dive.h
+++ b/dive.h
@@ -133,4 +133,6 @@ static inline struct dive *get_dive(unsigned int nr)
extern void parse_xml_init(void);
extern void parse_xml_file(const char *filename);
+void save_dives(const char *filename);
+
#endif /* DIVE_H */