summaryrefslogtreecommitdiffstats
path: root/divelist.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-20 21:29:09 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-21 11:28:36 -0700
commitf459c2ec22839a4a208ea833bdb1e0b87a6799b4 (patch)
tree88c9a0b217c6e6e1975b91bd421845ccd31c2830 /divelist.h
parentb4c4a29a11ff82dacfe3a145fe4eedaae2341151 (diff)
downloadsubsurface-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.h2
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