diff options
author | Danilo Cesar Lemes de Paula <danilo.eu@gmail.com> | 2013-09-16 18:04:42 -0300 |
---|---|---|
committer | Danilo Cesar Lemes de Paula <danilo.eu@gmail.com> | 2013-09-16 22:40:47 -0300 |
commit | a8d33f80b0e8da4acb84028be0da8f33b81de0f9 (patch) | |
tree | d3813d817fd8407e79f58d68cffb393d8741db3d /display.h | |
parent | f5b33dede359dccc31fafa72e0e2550868d8edd2 (diff) | |
download | subsurface-a8d33f80b0e8da4acb84028be0da8f33b81de0f9.tar.gz |
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 <danilo.eu@gmail.com>
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |