NMActiveConnection: libnm Reference Manual

## NMActiveConnection NMActiveConnection |

## Functions

NMRemoteConnection * | 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_path ()
const GPtrArray * | nm_active_connection_get_devices ()
NMActiveConnectionState | nm_active_connection_get_state ()
NMActivationStateFlags | nm_active_connection_get_state_flags ()
NMActiveConnectionStateReason | nm_active_connection_get_state_reason ()
struct _NMDevice * | nm_active_connection_get_master ()
gboolean | nm_active_connection_get_default ()
NMIPConfig * | nm_active_connection_get_ip4_config ()
NMDhcpConfig * | nm_active_connection_get_dhcp4_config ()
gboolean | nm_active_connection_get_default6 ()
NMIPConfig * | nm_active_connection_get_ip6_config ()
NMDhcpConfig * | nm_active_connection_get_dhcp6_config ()
gboolean | nm_active_connection_get_vpn ()

## Properties

NMRemoteConnection * | connection | Read
gboolean | default | Read
gboolean | default6 | Read
GPtrArray * | devices | Read
NMDhcpConfig * | dhcp4-config | Read
NMDhcpConfig * | dhcp6-config | Read
char * | id | Read
NMIPConfig * | ip4-config | Read
NMIPConfig * | ip6-config | Read
NMDevice * | master | Read
char * | specific-object-path | Read
NMActiveConnectionState | state | Read
guint | state-flags | Read
char * | type | Read
char * | uuid | Read
gboolean | vpn | Read

## Signals

void | state-changed | Run First

## Types and Values

#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_PATH
#define | NM_ACTIVE_CONNECTION_DEVICES
#define | NM_ACTIVE_CONNECTION_STATE
#define | NM_ACTIVE_CONNECTION_STATE_FLAGS
#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
| NMActiveConnection

## Object Hierarchy

        GObject
        ╰── NMObject
            ╰── NMActiveConnection
                ╰── NMVpnConnection

## Description

## Functions

### nm_active_connection_get_connection ()

    NMRemoteConnection *
    nm_active_connection_get_connection (NMActiveConnection *connection);

### nm_active_connection_get_id ()

    const char *
    nm_active_connection_get_id (NMActiveConnection *connection);

### nm_active_connection_get_uuid ()

    const char *
    nm_active_connection_get_uuid (NMActiveConnection *connection);

### nm_active_connection_get_connection_type ()

    const char *
    nm_active_connection_get_connection_type
                                   (NMActiveConnection *connection);

### nm_active_connection_get_specific_object_path ()

    const char *
    nm_active_connection_get_specific_object_path
                                   (NMActiveConnection *connection);

### nm_active_connection_get_devices ()

    const GPtrArray *
    nm_active_connection_get_devices (NMActiveConnection *connection);

### nm_active_connection_get_state ()

    NMActiveConnectionState
    nm_active_connection_get_state (NMActiveConnection *connection);

### nm_active_connection_get_state_flags ()

    NMActivationStateFlags
    nm_active_connection_get_state_flags (NMActiveConnection *connection);

### nm_active_connection_get_state_reason ()

    NMActiveConnectionStateReason
    nm_active_connection_get_state_reason (NMActiveConnection *connection);

### nm_active_connection_get_master ()

    struct _NMDevice *
    nm_active_connection_get_master (NMActiveConnection *connection);

### nm_active_connection_get_default ()

    gboolean
    nm_active_connection_get_default (NMActiveConnection *connection);

### nm_active_connection_get_ip4_config ()

    NMIPConfig *
    nm_active_connection_get_ip4_config (NMActiveConnection *connection);

### nm_active_connection_get_dhcp4_config ()

    NMDhcpConfig *
    nm_active_connection_get_dhcp4_config (NMActiveConnection *connection);

### nm_active_connection_get_default6 ()

    gboolean
    nm_active_connection_get_default6 (NMActiveConnection *connection);

### nm_active_connection_get_ip6_config ()

    NMIPConfig *
    nm_active_connection_get_ip6_config (NMActiveConnection *connection);

### nm_active_connection_get_dhcp6_config ()

    NMDhcpConfig *
    nm_active_connection_get_dhcp6_config (NMActiveConnection *connection);

### nm_active_connection_get_vpn ()

    gboolean
    nm_active_connection_get_vpn (NMActiveConnection *connection);

## Types and Values

### NM_ACTIVE_CONNECTION_CONNECTION

    #define NM_ACTIVE_CONNECTION_CONNECTION           "connection"

### NM_ACTIVE_CONNECTION_ID

    #define NM_ACTIVE_CONNECTION_ID                   "id"

### NM_ACTIVE_CONNECTION_UUID

    #define NM_ACTIVE_CONNECTION_UUID                 "uuid"

### NM_ACTIVE_CONNECTION_TYPE

    #define NM_ACTIVE_CONNECTION_TYPE                 "type"

### NM_ACTIVE_CONNECTION_SPECIFIC_OBJECT_PATH

    #define NM_ACTIVE_CONNECTION_SPECIFIC_OBJECT_PATH "specific-object-path"

### NM_ACTIVE_CONNECTION_DEVICES

    #define NM_ACTIVE_CONNECTION_DEVICES              "devices"

### NM_ACTIVE_CONNECTION_STATE

    #define NM_ACTIVE_CONNECTION_STATE                "state"

### NM_ACTIVE_CONNECTION_STATE_FLAGS

    #define NM_ACTIVE_CONNECTION_STATE_FLAGS          "state-flags"

### NM_ACTIVE_CONNECTION_DEFAULT

    #define NM_ACTIVE_CONNECTION_DEFAULT              "default"

### NM_ACTIVE_CONNECTION_IP4_CONFIG

    #define NM_ACTIVE_CONNECTION_IP4_CONFIG           "ip4-config"

### NM_ACTIVE_CONNECTION_DHCP4_CONFIG

    #define NM_ACTIVE_CONNECTION_DHCP4_CONFIG         "dhcp4-config"

### NM_ACTIVE_CONNECTION_DEFAULT6

    #define NM_ACTIVE_CONNECTION_DEFAULT6             "default6"

### NM_ACTIVE_CONNECTION_IP6_CONFIG

    #define NM_ACTIVE_CONNECTION_IP6_CONFIG           "ip6-config"

### NM_ACTIVE_CONNECTION_DHCP6_CONFIG

    #define NM_ACTIVE_CONNECTION_DHCP6_CONFIG         "dhcp6-config"

### NM_ACTIVE_CONNECTION_VPN

    #define NM_ACTIVE_CONNECTION_VPN                  "vpn"

### NM_ACTIVE_CONNECTION_MASTER

    #define NM_ACTIVE_CONNECTION_MASTER               "master"

### NMActiveConnection

    typedef struct _NMActiveConnection NMActiveConnection;

## Property Details

### The `“connection”` property

      “connection”               NMRemoteConnection *

Owner: NMActiveConnection

Flags: Read

### The `“default”` property

      “default”                  gboolean

Owner: NMActiveConnection

Flags: Read

Default value: FALSE

### The `“default6”` property

      “default6”                 gboolean

Owner: NMActiveConnection

Flags: Read

Default value: FALSE

### The `“devices”` property

      “devices”                  GPtrArray *

Owner: NMActiveConnection

Flags: Read

### The `“dhcp4-config”` property

      “dhcp4-config”             NMDhcpConfig *

Owner: NMActiveConnection

Flags: Read

### The `“dhcp6-config”` property

      “dhcp6-config”             NMDhcpConfig *

Owner: NMActiveConnection

Flags: Read

### The `“id”` property

      “id”                       char *

Owner: NMActiveConnection

Flags: Read

Default value: NULL

### The `“ip4-config”` property

      “ip4-config”               NMIPConfig *

Owner: NMActiveConnection

Flags: Read

### The `“ip6-config”` property

      “ip6-config”               NMIPConfig *

Owner: NMActiveConnection

Flags: Read

### The `“master”` property

      “master”                   NMDevice *

Owner: NMActiveConnection

Flags: Read

### The `“specific-object-path”` property

      “specific-object-path”     char *

Owner: NMActiveConnection

Flags: Read

Default value: NULL

### The `“state”` property

      “state”                    NMActiveConnectionState

Owner: NMActiveConnection

Flags: Read

Default value: NM_ACTIVE_CONNECTION_STATE_UNKNOWN

### The `“state-flags”` property

      “state-flags”              guint

Owner: NMActiveConnection

Flags: Read

Default value: 0

### The `“type”` property

      “type”                     char *

Owner: NMActiveConnection

Flags: Read

Default value: NULL

### The `“uuid”` property

      “uuid”                     char *

Owner: NMActiveConnection

Flags: Read

Default value: NULL

### The `“vpn”` property

      “vpn”                      gboolean

Owner: NMActiveConnection

Flags: Read

Default value: FALSE

## Signal Details

### The `“state-changed”` signal

    void
    user_function (NMActiveConnection *nmactiveconnection,
                   guint               arg1,
                   guint               arg2,
                   gpointer            user_data)

Flags: Run First