From: Daniel Wagner Date: Fri, 22 Oct 2010 17:55:52 +0000 (-0400) Subject: Add provider driver name accessor X-Git-Tag: 0.63~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=520d4af146ba1be4b7d76890799342dfe12e5fc7;p=platform%2Fupstream%2Fconnman.git Add provider driver name accessor --- 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;