mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
tools/lib/: added driver selection and driver-specific parameters to backend
- atrf.c (atrf_open, select_driver, do_atrf_open): added infrastructure for passing the driver name and further parameters to atrf_open - atrf.c (struct atrf_dsc): made "driver" constant - driver.h (struct atrf_driver), atben.c (atben_open), atusb.c (atusb_open): added string argument to the "open" function - atusb.c (atusb_driver): corrected unterminated comment
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
struct atrf_driver {
|
||||
const char *name;
|
||||
void *(*open)(void);
|
||||
void *(*open)(const char *arg);
|
||||
void (*close)(void *dsc);
|
||||
int (*error)(void *dsc);
|
||||
int (*clear_error)(void *dsc);
|
||||
|
||||
Reference in New Issue
Block a user