core: add nm_active_connection_get_name() for easy access to connection name

This commit is contained in:
Jiří Klimeš
2012-09-21 12:33:13 +02:00
parent dc3b2a4c81
commit 8fde1b1d2a
2 changed files with 9 additions and 0 deletions

View File

@@ -89,6 +89,14 @@ nm_active_connection_set_state (NMActiveConnection *self,
}
}
const char *
nm_active_connection_get_name (NMActiveConnection *self)
{
g_return_val_if_fail (NM_IS_ACTIVE_CONNECTION (self), NULL);
return nm_connection_get_id (NM_ACTIVE_CONNECTION_GET_PRIVATE (self)->connection);
}
NMConnection *
nm_active_connection_get_connection (NMActiveConnection *self)
{