mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
libatrf: new function atrf_default_driver_name to get the default driver name
- include/atrf.h (atrf_default_driver_name), lib/atrf.c (atrf_default_driver_name): return the name of the default driver, or "none" if no drivers are defined
This commit is contained in:
@@ -97,6 +97,12 @@ const static struct atrf_driver *drivers[] = {
|
||||
};
|
||||
|
||||
|
||||
const char *atrf_default_driver_name(void)
|
||||
{
|
||||
return drivers[0] ? drivers[0]->name : "none";
|
||||
}
|
||||
|
||||
|
||||
static const struct atrf_driver *select_driver(const char *arg,
|
||||
const char **opt)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user