![]() |
![]() |
![]() |
libnm-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define NM_ACTIVE_CONNECTION_SERVICE_NAME #define NM_ACTIVE_CONNECTION_CONNECTION #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_DEFAULT6 NMActiveConnection; NMActiveConnectionClass; GObject * nm_active_connection_new (DBusGConnection *connection
,const char *path
); const char * nm_active_connection_get_service_name (NMActiveConnection *connection
); NMConnectionScope nm_active_connection_get_scope (NMActiveConnection *connection
); const char * nm_active_connection_get_connection (NMActiveConnection *connection
); const char * nm_active_connection_get_specific_object (NMActiveConnection *connection
); const GPtrArray * nm_active_connection_get_devices (NMActiveConnection *connection
); NMActiveConnectionState nm_active_connection_get_state (NMActiveConnection *connection
); gboolean nm_active_connection_get_default (NMActiveConnection *connection
); gboolean nm_active_connection_get_default6 (NMActiveConnection *connection
);
"connection" gchar* : Read "default" gboolean : Read "default6" gboolean : Read "devices" nm-object-array* : Read "service-name" gchar* : Read "specific-object" gchar* : Read "state" guint : Read
typedef struct { NMObjectClass parent; /* Padding for future expansion */ void (*_reserved1) (void); void (*_reserved2) (void); void (*_reserved3) (void); void (*_reserved4) (void); void (*_reserved5) (void); void (*_reserved6) (void); } NMActiveConnectionClass;
GObject * nm_active_connection_new (DBusGConnection *connection
,const char *path
);
Creates a new NMActiveConnection.
|
the DBusGConnection |
|
the DBus object path of the device |
Returns : |
a new active connection |
const char * nm_active_connection_get_service_name
(NMActiveConnection *connection
);
Gets the service name of the active connection.
|
a NMActiveConnection |
Returns : |
the service name. This is the internal string used by the connection, and must not be modified. |
NMConnectionScope nm_active_connection_get_scope (NMActiveConnection *connection
);
Gets the scope of the active connection.
|
a NMActiveConnection |
Returns : |
the connection's scope |
const char * nm_active_connection_get_connection (NMActiveConnection *connection
);
Gets the NMConnection's DBus object path.
|
a NMActiveConnection |
Returns : |
the object path of the NMConnection inside of NMActiveConnection. This is the internal string used by the connection, and must not be modified. |
const char * nm_active_connection_get_specific_object
(NMActiveConnection *connection
);
Gets the "specific object" used at the activation.
|
a NMActiveConnection |
Returns : |
the specific object's DBus path. This is the internal string used by the connection, and must not be modified. |
const GPtrArray * nm_active_connection_get_devices (NMActiveConnection *connection
);
Gets the NMDevices used for the active connections.
|
a NMActiveConnection |
Returns : |
the GPtrArray containing NMDevices. This is the internal copy used by the connection, and must not be modified. |
NMActiveConnectionState nm_active_connection_get_state (NMActiveConnection *connection
);
Gets the active connection's state.
|
a NMActiveConnection |
Returns : |
the state |
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).
|
a NMActiveConnection |
Returns : |
TRUE if the active connection is the default IPv4 connection
|
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).
|
a NMActiveConnection |
Returns : |
TRUE if the active connection is the default IPv6 connection
|
"connection"
property"connection" gchar* : Read
The connection's path of the active connection.
Default value: NULL
"default"
property"default" gboolean : Read
Whether the active connection is the default IPv4 one.
Default value: FALSE
"default6"
property"default6" gboolean : Read
Whether the active connection is the default IPv6 one.
Default value: FALSE
"service-name"
property"service-name" gchar* : Read
The service name of the active connection.
Default value: NULL
"specific-object"
property"specific-object" gchar* : Read
The specific object's path of the active connection.
Default value: NULL
"state"
property"state" guint : Read
The state of the active connection.
Allowed values: <= 2
Default value: 0