1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

tools/: API change - atrf_open now requires a string argument (can be NULL)

atrf_open(NULL) maintains the old behaviour. To select a driver, use
atrf_open("name") or atrf_open("name:driver-specific-arguments")
The driver name is "ben" or "usb".

- include/atrf.h (atrf_open), lib/atrf.c (do_atrf_open, atrf_open):
  atrf_open now requires the string argument for driver selection
- atrf-id/atrf-id.c (main), atrf-reset/atrf-reset.c (main),
  atrf-rssi/atrf-rssi.c (main), atrf-trim/atrf-trim.c (main),
  atrf-txrx/atrf-txrx.c (main), atrf-xtal/atrf-xtal.c (main):
  changed atrf_open() to atrf_open(NULL)
This commit is contained in:
Werner Almesberger
2011-04-09 21:13:11 -03:00
parent 4e64e7ad90
commit 5296fc8cf5
8 changed files with 12 additions and 18 deletions

View File

@@ -133,7 +133,7 @@ static const struct atrf_driver *select_driver(const char *arg,
}
static struct atrf_dsc *do_atrf_open(const char *arg)
struct atrf_dsc *atrf_open(const char *arg)
{
struct atrf_dsc *dsc;
const struct atrf_driver *driver;
@@ -158,12 +158,6 @@ static struct atrf_dsc *do_atrf_open(const char *arg)
}
struct atrf_dsc *atrf_open(void)
{
return do_atrf_open(NULL);
}
void atrf_close(struct atrf_dsc *dsc)
{
if (dsc->driver->close)