mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
tools/lib/: added network proxy-based driver (in progress)
- atnet.c: driver "net", which accessed hardware via atrf-proxy - Makefile (OBJS): added atnet.o - driver.h (atnet_driver), atrf.c (drivers): added the atnet driver - atrf.c (drivers): moved the driver list closer to the top
This commit is contained in:
@@ -28,6 +28,18 @@ struct atrf_dsc {
|
||||
};
|
||||
|
||||
|
||||
static const struct atrf_driver *drivers[] = {
|
||||
#ifdef HAVE_BEN
|
||||
&atben_driver,
|
||||
#endif
|
||||
#ifdef HAVE_USB
|
||||
&atusb_driver,
|
||||
#endif
|
||||
&atnet_driver,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
void *atrf_usb_handle(struct atrf_dsc *dsc)
|
||||
{
|
||||
#ifdef HAVE_USB
|
||||
@@ -92,17 +104,6 @@ static enum atrf_chip_id identify(struct atrf_dsc *dsc)
|
||||
}
|
||||
|
||||
|
||||
const static struct atrf_driver *drivers[] = {
|
||||
#ifdef HAVE_BEN
|
||||
&atben_driver,
|
||||
#endif
|
||||
#ifdef HAVE_USB
|
||||
&atusb_driver,
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
const char *atrf_default_driver_name(void)
|
||||
{
|
||||
return drivers[0] ? drivers[0]->name : "none";
|
||||
|
||||
Reference in New Issue
Block a user