diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-11-30 18:21:31 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-11-30 18:21:31 +0100 |
commit | eafed80a48c77f3a58bb8feacc095f934b2529ac (patch) | |
tree | aa840ad824ee735a070de0f57552ce3e198102ab /src | |
parent | d2a9d7830d8dc92deaf6388968da0dd1b9c09fb1 (diff) | |
download | connman-eafed80a48c77f3a58bb8feacc095f934b2529ac.tar.gz connman-eafed80a48c77f3a58bb8feacc095f934b2529ac.tar.bz2 connman-eafed80a48c77f3a58bb8feacc095f934b2529ac.zip |
Add function to get current network connecting state
Diffstat (limited to 'src')
-rw-r--r-- | src/connman.h | 1 | ||||
-rw-r--r-- | src/network.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h index 7224546a..7f42a122 100644 --- a/src/connman.h +++ b/src/connman.h @@ -298,6 +298,7 @@ const char *__connman_network_get_type(struct connman_network *network); const char *__connman_network_get_group(struct connman_network *network); const char *__connman_network_get_ident(struct connman_network *network); connman_bool_t __connman_network_get_weakness(struct connman_network *network); +connman_bool_t __connman_network_get_connecting(struct connman_network *network); #include <connman/profile.h> diff --git a/src/network.c b/src/network.c index a14907a6..b52b2f60 100644 --- a/src/network.c +++ b/src/network.c @@ -629,6 +629,11 @@ connman_bool_t __connman_network_get_weakness(struct connman_network *network) return FALSE; } +connman_bool_t __connman_network_get_connecting(struct connman_network *network) +{ + return network->connecting; +} + /** * connman_network_set_available: * @network: network structure |