mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
f5b33dede3
commit
a8d33f80b0
7 changed files with 171 additions and 5 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue