]> git.tdb.fi Git - ext/subsurface.git/blobdiff - divelist.h
Separate out the UI from the program logic
[ext/subsurface.git] / divelist.h
index 2d1fd509241193f12b140c431a4eb513b9ca5c89..7684a72d3e8e8d337666971b4cbe676c3f74f62f 100644 (file)
@@ -1,22 +1,10 @@
 #ifndef DIVELIST_H
 #define DIVELIST_H
 
-#include <gtk/gtk.h>
-
-struct DiveList {
-       GtkWidget    *tree_view;
-       GtkWidget    *container_widget;
-       GtkListStore *model;
-       GtkTreeViewColumn *date, *depth, *duration, *location;
-       GtkTreeViewColumn *temperature, *cylinder, *nitrox, *sac;
-};
-
 struct dive;
 
-extern struct DiveList dive_list;
-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 flush_divelist(struct DiveList *, struct dive *);
+extern void dive_list_update_dives(void);
+extern void update_dive_list_units(void);
+extern void flush_divelist(struct dive *);
 
 #endif