1
0
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:
Werner Almesberger
2011-04-09 21:00:48 -03:00
parent bc6bce9923
commit c18d3e58d2
4 changed files with 66 additions and 15 deletions

View File

@@ -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);