Save and parse notes and locations

It's pretty rough, but it seems to work.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-09-01 19:56:04 -07:00
parent 0189de695c
commit 22fcef2ec7
4 changed files with 130 additions and 11 deletions

5
dive.h
View file

@ -104,6 +104,8 @@ struct sample {
struct dive {
const char *name;
time_t when;
char *location;
char *notes;
depth_t maxdepth, meandepth;
duration_t duration, surfacetime;
depth_t visibility;
@ -133,6 +135,7 @@ 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);
extern void flush_dive_info_changes(void);
extern void save_dives(const char *filename);
#endif /* DIVE_H */