summaryrefslogtreecommitdiffstats
path: root/divelist.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-05 14:44:27 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-05 14:44:27 -0700
commitc24fd4b82cf4476c6d9c863ee03f2d729b64e5f0 (patch)
treee2585459dafdcb544bfc4ff3e91e94a84fc72341 /divelist.h
parent8197d7f4d4702d18df5b2121b5e0126c61e1b7ea (diff)
parent11becb87505b8cdf6fbf2f10941f87d394e49f80 (diff)
downloadsubsurface-c24fd4b82cf4476c6d9c863ee03f2d729b64e5f0.tar.gz
Merge branch 'open-files' of git://github.com/nathansamson/diveclog
* 'open-files' of git://github.com/nathansamson/diveclog: Report errors when opening files Make it possible to load multiple files at once. Open File works. I refactored the code and introduced a new type. I never used it as a pointer (their was no real reason), but I'm not really satisfied.
Diffstat (limited to 'divelist.h')
-rw-r--r--divelist.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/divelist.h b/divelist.h
new file mode 100644
index 000000000..dc573d770
--- /dev/null
+++ b/divelist.h
@@ -0,0 +1,18 @@
+#ifndef DIVELIST_H
+#define DIVELIST_H
+
+#include <gtk/gtk.h>
+
+struct DiveList {
+ GtkWidget *tree_view;
+ GtkWidget *container_widget;
+ GtkListStore *model;
+};
+
+extern int selected_dive;
+#define current_dive (get_dive(selected_dive))
+
+extern struct DiveList dive_list_create(void);
+extern void dive_list_update_dives(struct DiveList);
+
+#endif