summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2009-12-17 21:52:23 +0800
committerMarcel Holtmann <marcel@holtmann.org>2009-12-17 12:33:38 -0800
commit4335d2b005eb3cbb48b8ce3de9430972af26981d (patch)
tree864a1bf5ec8241d9edc2ea84c6756230bd17fe30 /src
parent852e6e494d09b399e77803441582525ae6a38f74 (diff)
downloadconnman-4335d2b005eb3cbb48b8ce3de9430972af26981d.tar.gz
connman-4335d2b005eb3cbb48b8ce3de9430972af26981d.tar.bz2
connman-4335d2b005eb3cbb48b8ce3de9430972af26981d.zip
Add function connman_network_get_element
Diffstat (limited to 'src')
-rw-r--r--src/network.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/network.c b/src/network.c
index cfde5516..b6d0c1e4 100644
--- a/src/network.c
+++ b/src/network.c
@@ -471,6 +471,18 @@ int connman_network_get_index(struct connman_network *network)
}
/**
+ * connman_network_get_element:
+ * @network: network structure
+ *
+ * Get connman_element of network
+ */
+struct connman_element *connman_network_get_element(
+ struct connman_network *network)
+{
+ return &network->element;
+}
+
+/**
* connman_network_set_protocol:
* @network: network structure
* @protocol: network protocol