summaryrefslogtreecommitdiffstats
path: root/display-gtk.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-26 15:52:39 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-27 21:12:14 -0700
commit2de6f796354ad029e9e786027210fcf1b02868e2 (patch)
treed3b31a6f17eaf866db943769e75159d7c77a1815 /display-gtk.h
parentd88c69b97a9aa563cba0dc5c2b4aad2b4ce61b12 (diff)
downloadsubsurface-2de6f796354ad029e9e786027210fcf1b02868e2.tar.gz
Improve the dive computer device selection
We try to identify devices that are connected and their matching device names (and mount paths in the case of the Uemis Zurich). Those are presented as a drop down menu to choose from. The user can still override this by simply entering a different device / path name. On Windows this is not functional. How do I find out which drive letter corresponds to the USB device named "UEMISSDA"? Similarly we need code that finds serial ports that are present. For now we once again default to COM3 (so this isn't a step back, but of course it's far from what we want). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display-gtk.h')
-rw-r--r--display-gtk.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/display-gtk.h b/display-gtk.h
index 7b2ce5f2e..f4961b301 100644
--- a/display-gtk.h
+++ b/display-gtk.h
@@ -45,12 +45,14 @@ extern const void *subsurface_get_conf(char *name, pref_type_t type);
extern void subsurface_flush_conf(void);
extern void subsurface_close_conf(void);
-extern const char *subsurface_USB_name(void);
+extern int subsurface_fill_device_list(GtkListStore *store);
extern const char *subsurface_icon_name(void);
extern void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar,
GtkWidget *vbox, GtkUIManager *ui_manager);
extern void quit(GtkWidget *w, gpointer data);
+extern int is_default_dive_computer_device(const char *name);
+
extern visible_cols_t visible_cols;
extern const char *divelist_font;