From a8d33f80b0e8da4acb84028be0da8f33b81de0f9 Mon Sep 17 00:00:00 2001 From: Danilo Cesar Lemes de Paula Date: Mon, 16 Sep 2013 18:04:42 -0300 Subject: implement device probe in C It's an attempt to build auto-completion for the dive-computers based on unpublished code inside libdivecomputer[1] [1] - http://git.libdivecomputer.org/?p=libdivecomputer.git;a=commitdiff;h=d44053a99435fb9fc1f408fb3f1629a54c938afc Signed-off-by: Danilo Cesar Lemes de Paula --- display.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'display.h') diff --git a/display.h b/display.h index b62ae3ba3..153a9368e 100644 --- a/display.h +++ b/display.h @@ -74,6 +74,10 @@ extern unsigned int amount_selected; extern int is_default_dive_computer_device(const char *); extern int is_default_dive_computer(const char *, const char *); + +typedef void (*device_callback_t) (const char *name, void *userdata); +int enumerate_devices (device_callback_t callback, void *userdata); + extern const char *default_dive_computer_vendor; extern const char *default_dive_computer_product; extern const char *default_dive_computer_device; -- cgit v1.2.3-70-g09d2