diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-09-20 21:29:09 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-09-21 11:28:36 -0700 |
commit | f459c2ec22839a4a208ea833bdb1e0b87a6799b4 (patch) | |
tree | 88c9a0b217c6e6e1975b91bd421845ccd31c2830 /divelist.h | |
parent | b4c4a29a11ff82dacfe3a145fe4eedaae2341151 (diff) | |
download | subsurface-f459c2ec22839a4a208ea833bdb1e0b87a6799b4.tar.gz |
Simplistic first attempt to get changes saved when quitting subsurface
Track whether things changed in the global dive_list
So far this actually works if changing dive info (but only if dive
selected was changed after the dive info was changed).
We are not tracking changes to the cylinder information, yet.
also remove the duplicate static dive_list
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.h')
-rw-r--r-- | divelist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/divelist.h b/divelist.h index 7684a72d3..3151a69db 100644 --- a/divelist.h +++ b/divelist.h @@ -7,4 +7,6 @@ extern void dive_list_update_dives(void); extern void update_dive_list_units(void); extern void flush_divelist(struct dive *); +extern void mark_divelist_changed(int); +extern int unsaved_changes(void); #endif |