From: Daniel Wagner <daniel.wag...@bmw-carit.de> --- include/provider.h | 2 ++ src/provider.c | 5 +++++ 2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/include/provider.h b/include/provider.h index ba4ff7d..dde37fb 100644 --- a/include/provider.h +++ b/include/provider.h @@ -83,6 +83,8 @@ void connman_provider_set_dns(struct connman_provider *provider, void connman_provider_set_domain(struct connman_provider *provider, const char *domain); +const char *connman_provider_get_driver_name(struct connman_provider *provider); + struct connman_provider_driver { const char *name; enum connman_provider_type type; diff --git a/src/provider.c b/src/provider.c index adad8df..69536f7 100644 --- a/src/provider.c +++ b/src/provider.c @@ -686,6 +686,11 @@ int connman_provider_get_index(struct connman_provider *provider) return provider->element.index; } +const char *connman_provider_get_driver_name(struct connman_provider *provider) +{ + return provider->driver->name; +} + static gint compare_priority(gconstpointer a, gconstpointer b) { return 0; -- 1.7.2.2 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman