]> git.tdb.fi Git - ext/subsurface.git/blobdiff - divelist.h
Simplistic first attempt to get changes saved when quitting subsurface
[ext/subsurface.git] / divelist.h
index 797a8964101c936ef43b3d131659574531902627..3151a69dbcab1453ab6c2fe523c2be922247ea01 100644 (file)
@@ -1,17 +1,12 @@
 #ifndef DIVELIST_H
 #define DIVELIST_H
 
-#include <gtk/gtk.h>
+struct dive;
 
-struct DiveList {
-       GtkWidget    *tree_view;
-       GtkWidget    *container_widget;
-       GtkListStore *model;
-       GtkTreeViewColumn *date, *depth, *duration;
-};
-
-extern struct DiveList dive_list_create(void);
-extern void dive_list_update_dives(struct DiveList);
-extern void update_dive_list_units(struct DiveList *);
+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