---
include/network.h | 3 +++
src/network.c | 12 ++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/include/network.h b/include/network.h
index 605d2f6..13cdccb 100644
--- a/include/network.h
+++ b/include/network.h
@@ -69,6 +69,9 @@ enum connman_network_type connman_network_get_type(struct
connman_network *netwo
const char *connman_network_get_identifier(struct connman_network *network);
const char *connman_network_get_path(struct connman_network *network);
+
+struct connman_element *connman_network_get_element(
+ struct connman_network *network);
void connman_network_set_index(struct connman_network *network, int index);
int connman_network_get_index(struct connman_network *network);
diff --git a/src/network.c b/src/network.c
index cfde551..b6d0c1e 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
--
1.6.1.3
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman