From e66089af7b7aa73721f992407880819394b8765f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 31 Mar 2009 20:07:18 -0700 Subject: [PATCH] Add function to retrieve string represenation for network type --- src/connman.h | 1 + src/network.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/connman.h b/src/connman.h index ccfdcbd..1ee5447 100644 --- a/src/connman.h +++ b/src/connman.h @@ -198,6 +198,7 @@ int __connman_network_disconnect(struct connman_network *network); connman_bool_t __connman_network_has_driver(struct connman_network *network); +const char *__connman_network_get_type(struct connman_network *network); const char *__connman_network_get_group(struct connman_network *network); int __connman_profile_add_network(struct connman_network *network); diff --git a/src/network.c b/src/network.c index 94e90ee..d17cffd 100644 --- a/src/network.c +++ b/src/network.c @@ -516,6 +516,11 @@ void connman_network_unref(struct connman_network *network) connman_element_unref(&network->element); } +const char *__connman_network_get_type(struct connman_network *network) +{ + return type2string(network->type); +} + /** * connman_network_get_identifier: * @network: network structure -- 2.7.4