diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-20 10:06:24 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-20 10:06:24 -0700 |
commit | 9cf8d98711dff888f5bfa8efd52ca7b8cf8bfa07 (patch) | |
tree | 0132709103048b69575cbc428eba6dd6f408000f /divelist.h | |
parent | eee34232dbbd24b7b3db9e44672e240db2db50e9 (diff) | |
download | subsurface-9cf8d98711dff888f5bfa8efd52ca7b8cf8bfa07.tar.gz |
Make 'struct DiveList' entirely internal to divelist.c
Passing it around is just annoying, and we only ever have one. Let's
not burden all the users with the silly thing.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'divelist.h')
-rw-r--r-- | divelist.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/divelist.h b/divelist.h index 2d1fd5092..25de6837a 100644 --- a/divelist.h +++ b/divelist.h @@ -3,20 +3,11 @@ #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 GtkWidget *dive_list_create(void); +extern void dive_list_update_dives(void); +extern void update_dive_list_units(void); +extern void flush_divelist(struct dive *); #endif |