mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0189de695c
commit
22fcef2ec7
4 changed files with 130 additions and 11 deletions
5
dive.h
5
dive.h
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue