]> git.tdb.fi Git - ext/subsurface.git/blobdiff - equipment.c
Separate out the UI from the program logic
[ext/subsurface.git] / equipment.c
index b9b9259b5a8cd0631816842e95d513e14d1066e3..1e0721b9abd195370b6daa8ecdb81f2938cf70d4 100644 (file)
@@ -1,3 +1,13 @@
+/* equipment.c */
+/* creates the UI for the equipment page -
+ * controlled through the following interfaces:
+ * 
+ * void show_dive_equipment(struct dive *dive)
+ * void flush_dive_equipment_changes(struct dive *dive)
+ *
+ * called from gtk-ui:
+ * GtkWidget *equipment_widget(void)
+ */
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
@@ -6,6 +16,7 @@
 
 #include "dive.h"
 #include "display.h"
+#include "display-gtk.h"
 #include "divelist.h"
 
 struct cylinder_widget {