Top | ![]() |
![]() |
![]() |
![]() |
GObject * | nm_active_connection_new () |
const char * | nm_active_connection_get_connection () |
const char * | nm_active_connection_get_id () |
const char * | nm_active_connection_get_uuid () |
const char * | nm_active_connection_get_connection_type () |
const char * | nm_active_connection_get_specific_object () |
const GPtrArray * | nm_active_connection_get_devices () |
NMActiveConnectionState | nm_active_connection_get_state () |
const char * | nm_active_connection_get_master () |
gboolean | nm_active_connection_get_default () |
NMIP4Config * | nm_active_connection_get_ip4_config () |
NMDHCP4Config * | nm_active_connection_get_dhcp4_config () |
gboolean | nm_active_connection_get_default6 () |
NMIP6Config * | nm_active_connection_get_ip6_config () |
NMDHCP6Config * | nm_active_connection_get_dhcp6_config () |
gboolean | nm_active_connection_get_vpn () |
gchar * | connection | Read |
gboolean | default | Read |
gboolean | default6 | Read |
NMObjectArray * | devices | Read |
NMDHCP4Config * | dhcp4-config | Read |
NMDHCP6Config * | dhcp6-config | Read |
gchar * | id | Read |
NMIP4Config * | ip4-config | Read |
NMIP6Config * | ip6-config | Read |
gchar * | master | Read |
gchar * | specific-object | Read |
guint | state | Read |
gchar * | type | Read |
gchar * | uuid | Read |
gboolean | vpn | Read |
#define | NM_ACTIVE_CONNECTION_CONNECTION |
#define | NM_ACTIVE_CONNECTION_ID |
#define | NM_ACTIVE_CONNECTION_UUID |
#define | NM_ACTIVE_CONNECTION_TYPE |
#define | NM_ACTIVE_CONNECTION_SPECIFIC_OBJECT |
#define | NM_ACTIVE_CONNECTION_DEVICES |
#define | NM_ACTIVE_CONNECTION_STATE |
#define | NM_ACTIVE_CONNECTION_DEFAULT |
#define | NM_ACTIVE_CONNECTION_IP4_CONFIG |
#define | NM_ACTIVE_CONNECTION_DHCP4_CONFIG |
#define | NM_ACTIVE_CONNECTION_DEFAULT6 |
#define | NM_ACTIVE_CONNECTION_IP6_CONFIG |
#define | NM_ACTIVE_CONNECTION_DHCP6_CONFIG |
#define | NM_ACTIVE_CONNECTION_VPN |
#define | NM_ACTIVE_CONNECTION_MASTER |
GObject * nm_active_connection_new (DBusGConnection *connection
,const char *path
);
Creates a new NMActiveConnection.
const char *
nm_active_connection_get_connection (NMActiveConnection *connection
);
Gets the NMConnection's DBus object path. This is often used with
nm_remote_settings_get_connection_by_path()
to retrieve the
NMRemoteConnection object that describes the connection.
the object path of the NMConnection which this NMActiveConnection is an active instance of. This is the internal string used by the connection, and must not be modified.
const char *
nm_active_connection_get_id (NMActiveConnection *connection
);
Gets the NMConnection's ID.
the ID of the NMConnection that backs the NMActiveConnection. This is the internal string used by the connection, and must not be modified.
Since: 0.9.10
const char *
nm_active_connection_get_uuid (NMActiveConnection *connection
);
Gets the NMConnection's UUID.
the UUID of the NMConnection that backs the NMActiveConnection. This is the internal string used by the connection, and must not be modified.
const char *
nm_active_connection_get_connection_type
(NMActiveConnection *connection
);
Gets the NMConnection's type.
the type of the NMConnection that backs the NMActiveConnection. This is the internal string used by the connection, and must not be modified.
Since: 0.9.10
const char *
nm_active_connection_get_specific_object
(NMActiveConnection *connection
);
Gets the "specific object" used at the activation.
const GPtrArray *
nm_active_connection_get_devices (NMActiveConnection *connection
);
Gets the NMDevices used for the active connections.
the GPtrArray containing NMDevices. This is the internal copy used by the connection, and must not be modified.
[element-type NMDevice]
NMActiveConnectionState
nm_active_connection_get_state (NMActiveConnection *connection
);
Gets the active connection's state.
const char *
nm_active_connection_get_master (NMActiveConnection *connection
);
Gets the path to the master NMDevice of the connection.
the path of the master NMDevice of the NMActiveConnection. This is the internal string used by the connection, and must not be modified.
gboolean
nm_active_connection_get_default (NMActiveConnection *connection
);
Whether the active connection is the default IPv4 one (that is, is used for the default IPv4 route and DNS information).
NMIP4Config *
nm_active_connection_get_ip4_config (NMActiveConnection *connection
);
Gets the current NMIP4Config associated with the NMActiveConnection.
the NMIP4Config, or NULL
if the
connection is not in the NM_ACTIVE_CONNECTION_STATE_ACTIVATED
state.
[transfer none]
Since: 0.9.10
NMDHCP4Config *
nm_active_connection_get_dhcp4_config (NMActiveConnection *connection
);
Gets the current NMDHCP4Config (if any) associated with the NMActiveConnection.
the NMDHCP4Config, or NULL
if the
connection does not use DHCP, or is not in the
NM_ACTIVE_CONNECTION_STATE_ACTIVATED
state.
[transfer none]
Since: 0.9.10
gboolean
nm_active_connection_get_default6 (NMActiveConnection *connection
);
Whether the active connection is the default IPv6 one (that is, is used for the default IPv6 route and DNS information).
NMIP6Config *
nm_active_connection_get_ip6_config (NMActiveConnection *connection
);
Gets the current NMIP6Config associated with the NMActiveConnection.
the NMIP6Config, or NULL
if the
connection is not in the NM_ACTIVE_CONNECTION_STATE_ACTIVATED
state.
[transfer none]
Since: 0.9.10
NMDHCP6Config *
nm_active_connection_get_dhcp6_config (NMActiveConnection *connection
);
Gets the current NMDHCP6Config (if any) associated with the NMActiveConnection.
the NMDHCP6Config, or NULL
if the
connection does not use DHCPv6, or is not in the
NM_ACTIVE_CONNECTION_STATE_ACTIVATED
state.
[transfer none]
Since: 0.9.10
gboolean
nm_active_connection_get_vpn (NMActiveConnection *connection
);
Whether the active connection is a VPN connection.
Since: 0.9.10
“connection”
property“connection” gchar *
The connection's path of the active connection.
Flags: Read
Default value: NULL
“default”
property“default” gboolean
Whether the active connection is the default IPv4 one.
Flags: Read
Default value: FALSE
“default6”
property“default6” gboolean
Whether the active connection is the default IPv6 one.
Flags: Read
Default value: FALSE
“dhcp4-config”
property“dhcp4-config” NMDHCP4Config *
The NMDHCP4Config of the connection.
Flags: Read
Since: 0.9.10
“dhcp6-config”
property“dhcp6-config” NMDHCP6Config *
The NMDHCP6Config of the connection.
Flags: Read
Since: 0.9.10
“id”
property“id” gchar *
The active connection's ID
Flags: Read
Default value: NULL
Since: 0.9.10
“ip4-config”
property“ip4-config” NMIP4Config *
The NMIP4Config of the connection.
Flags: Read
Since: 0.9.10
“ip6-config”
property“ip6-config” NMIP6Config *
The NMIP6Config of the connection.
Flags: Read
Since: 0.9.10
“master”
property“master” gchar *
The path of the master device if one exists.
Flags: Read
Default value: NULL
“specific-object”
property“specific-object” gchar *
The specific object's path of the active connection.
Flags: Read
Default value: NULL
“state”
property“state” guint
The state of the active connection.
Flags: Read
Allowed values: <= 3
Default value: 0
“type”
property“type” gchar *
The active connection's type
Flags: Read
Default value: NULL
Since: 0.9.10
“vpn”
property“vpn” gboolean
Whether the active connection is a VPN connection.
Flags: Read
Default value: FALSE
Since: 0.9.10