mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 18:40:16 +01:00
core: add nm_active_connection_get_name() for easy access to connection name
This commit is contained in:
parent
dc3b2a4c81
commit
8fde1b1d2a
2 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ gboolean nm_active_connection_export (NMActiveConnection *self,
|
|||
const char *devpath);
|
||||
|
||||
NMConnection *nm_active_connection_get_connection (NMActiveConnection *self);
|
||||
const char * nm_active_connection_get_name (NMActiveConnection *self);
|
||||
|
||||
const char * nm_active_connection_get_path (NMActiveConnection *self);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue