From 1155ad3f0fb2471163335d1d7c6856a81f495e49 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 1 Sep 2011 16:27:52 -0700 Subject: 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 --- dive.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dive.h') 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 */ -- cgit v1.2.3-70-g09d2