mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
d5e42d485e
commit
1155ad3f0f
4 changed files with 97 additions and 2 deletions
2
dive.h
2
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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue