mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
eee34232db
commit
9cf8d98711
5 changed files with 37 additions and 37 deletions
17
divelist.h
17
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue