From f408e27bccfacf347605a8d98649975a68f38a17 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 5 May 2015 17:48:57 +0200 Subject: Imported Upstream version 1.0.2 --- docs/libnm/html/NMDevice.html | 3151 +++++++++++++++++++++++------------------ 1 file changed, 1792 insertions(+), 1359 deletions(-) (limited to 'docs/libnm/html/NMDevice.html') diff --git a/docs/libnm/html/NMDevice.html b/docs/libnm/html/NMDevice.html index 9ac8d27a..13cae2db 100644 --- a/docs/libnm/html/NMDevice.html +++ b/docs/libnm/html/NMDevice.html @@ -2,38 +2,29 @@ -NMDevice +libnm Reference Manual: NMDevice - + - - - - - - - - - - + + + + + + +
@@ -41,1818 +32,2260 @@

NMDevice

NMDevice

- +
-
-

Synopsis

-
#define             NM_DEVICE_DEVICE_TYPE
-#define             NM_DEVICE_UDI
-#define             NM_DEVICE_INTERFACE
-#define             NM_DEVICE_IP_INTERFACE
-#define             NM_DEVICE_DRIVER
-#define             NM_DEVICE_DRIVER_VERSION
-#define             NM_DEVICE_FIRMWARE_VERSION
-#define             NM_DEVICE_CAPABILITIES
-#define             NM_DEVICE_MANAGED
-#define             NM_DEVICE_AUTOCONNECT
-#define             NM_DEVICE_FIRMWARE_MISSING
-#define             NM_DEVICE_IP4_CONFIG
-#define             NM_DEVICE_DHCP4_CONFIG
-#define             NM_DEVICE_IP6_CONFIG
-#define             NM_DEVICE_DHCP6_CONFIG
-#define             NM_DEVICE_STATE
-#define             NM_DEVICE_STATE_REASON
-#define             NM_DEVICE_ACTIVE_CONNECTION
-#define             NM_DEVICE_AVAILABLE_CONNECTIONS
-#define             NM_DEVICE_VENDOR
-#define             NM_DEVICE_PRODUCT
-#define             NM_DEVICE_PHYSICAL_PORT_ID
-#define             NM_DEVICE_MTU
-struct              NMDevice;
-                    NMDeviceClass;
-const char *        nm_device_get_iface                 (NMDevice *device);
-const char *        nm_device_get_ip_iface              (NMDevice *device);
-NMDeviceType        nm_device_get_device_type           (NMDevice *device);
-const char *        nm_device_get_udi                   (NMDevice *device);
-const char *        nm_device_get_driver                (NMDevice *device);
-const char *        nm_device_get_driver_version        (NMDevice *device);
-const char *        nm_device_get_firmware_version      (NMDevice *device);
-const char *        nm_device_get_type_description      (NMDevice *device);
-const char *        nm_device_get_hw_address            (NMDevice *device);
-NMDeviceCapabilities nm_device_get_capabilities         (NMDevice *device);
-gboolean            nm_device_get_managed               (NMDevice *device);
-gboolean            nm_device_get_autoconnect           (NMDevice *device);
-void                nm_device_set_autoconnect           (NMDevice *device,
-                                                         gboolean autoconnect);
-gboolean            nm_device_get_firmware_missing      (NMDevice *device);
-NMIPConfig *        nm_device_get_ip4_config            (NMDevice *device);
-NMDhcpConfig *      nm_device_get_dhcp4_config          (NMDevice *device);
-NMIPConfig *        nm_device_get_ip6_config            (NMDevice *device);
-NMDhcpConfig *      nm_device_get_dhcp6_config          (NMDevice *device);
-NMDeviceState       nm_device_get_state                 (NMDevice *device);
-NMDeviceStateReason nm_device_get_state_reason          (NMDevice *device);
-NMActiveConnection * nm_device_get_active_connection    (NMDevice *device);
-const GPtrArray *   nm_device_get_available_connections (NMDevice *device);
-const char *        nm_device_get_physical_port_id      (NMDevice *device);
-guint32             nm_device_get_mtu                   (NMDevice *device);
-gboolean            nm_device_is_software               (NMDevice *device);
-const char *        nm_device_get_product               (NMDevice *device);
-const char *        nm_device_get_vendor                (NMDevice *device);
-const char *        nm_device_get_description           (NMDevice *device);
-char **             nm_device_disambiguate_names        (NMDevice **devices,
-                                                         int num_devices);
-gboolean            nm_device_disconnect                (NMDevice *device,
-                                                         GCancellable *cancellable,
-                                                         GError **error);
-void                nm_device_disconnect_async          (NMDevice *device,
-                                                         GCancellable *cancellable,
-                                                         GAsyncReadyCallback callback,
-                                                         gpointer user_data);
-gboolean            nm_device_disconnect_finish         (NMDevice *device,
-                                                         GAsyncResult *result,
-                                                         GError **error);
-gboolean            nm_device_delete                    (NMDevice *device,
-                                                         GCancellable *cancellable,
-                                                         GError **error);
-void                nm_device_delete_async              (NMDevice *device,
-                                                         GCancellable *cancellable,
-                                                         GAsyncReadyCallback callback,
-                                                         gpointer user_data);
-gboolean            nm_device_delete_finish             (NMDevice *device,
-                                                         GAsyncResult *result,
-                                                         GError **error);
-GPtrArray *         nm_device_filter_connections        (NMDevice *device,
-                                                         const GPtrArray *connections);
-gboolean            nm_device_connection_valid          (NMDevice *device,
-                                                         NMConnection *connection);
-gboolean            nm_device_connection_compatible     (NMDevice *device,
-                                                         NMConnection *connection,
-                                                         GError **error);
-GType               nm_device_get_setting_type          (NMDevice *device);
-
-
-
-

Object Hierarchy

-
-  GObject
-   +----NMObject
-         +----NMDevice
-               +----NMDeviceAdsl
-               +----NMDeviceBond
-               +----NMDeviceBridge
-               +----NMDeviceBt
-               +----NMDeviceEthernet
-               +----NMDeviceGeneric
-               +----NMDeviceInfiniband
-               +----NMDeviceModem
-               +----NMDeviceOlpcMesh
-               +----NMDeviceTeam
-               +----NMDeviceVlan
-               +----NMDeviceWifi
-               +----NMDeviceWimax
-
-
-
-

Implemented Interfaces

-

-NMDevice implements - GInitable and GAsyncInitable.

-
-
-

Properties

-
-  "active-connection"        NMActiveConnection*   : Read
-  "autoconnect"              gboolean              : Read / Write
-  "available-connections"    GPtrArray*            : Read
-  "capabilities"             NMDeviceCapabilities  : Read
-  "device-type"              NMDeviceType          : Read
-  "dhcp4-config"             NMDhcpConfig*         : Read
-  "dhcp6-config"             NMDhcpConfig*         : Read
-  "driver"                   gchar*                : Read
-  "driver-version"           gchar*                : Read
-  "firmware-missing"         gboolean              : Read
-  "firmware-version"         gchar*                : Read
-  "interface"                gchar*                : Read
-  "ip-interface"             gchar*                : Read
-  "ip4-config"               NMIPConfig*           : Read
-  "ip6-config"               NMIPConfig*           : Read
-  "managed"                  gboolean              : Read
-  "mtu"                      guint                 : Read
-  "physical-port-id"         gchar*                : Read
-  "product"                  gchar*                : Read
-  "state"                    NMDeviceState         : Read
-  "state-reason"             guint                 : Read
-  "udi"                      gchar*                : Read
-  "vendor"                   gchar*                : Read
-
-
-
-

Signals

-
-  "state-changed"                                  : Run First
-
-
-
-

Description

-

-

-
-

Details

-
-

NM_DEVICE_DEVICE_TYPE

-
#define NM_DEVICE_DEVICE_TYPE "device-type"
-
-

-

-
-
-
-

NM_DEVICE_UDI

-
#define NM_DEVICE_UDI "udi"
-
-

-

-
-
-
-

NM_DEVICE_INTERFACE

-
#define NM_DEVICE_INTERFACE "interface"
-
-

-

-
-
-
-

NM_DEVICE_IP_INTERFACE

-
#define NM_DEVICE_IP_INTERFACE "ip-interface"
-
-

-

-
-
-
-

NM_DEVICE_DRIVER

-
#define NM_DEVICE_DRIVER "driver"
-
-

-

-
-
-
-

NM_DEVICE_DRIVER_VERSION

-
#define NM_DEVICE_DRIVER_VERSION "driver-version"
-
-

-

-
-
-
-

NM_DEVICE_FIRMWARE_VERSION

-
#define NM_DEVICE_FIRMWARE_VERSION "firmware-version"
-
-

-

-
-
-
-

NM_DEVICE_CAPABILITIES

-
#define NM_DEVICE_CAPABILITIES "capabilities"
-
-

-

-
-
-
-

NM_DEVICE_MANAGED

-
#define NM_DEVICE_MANAGED "managed"
-
-

-

-
-
-
-

NM_DEVICE_AUTOCONNECT

-
#define NM_DEVICE_AUTOCONNECT "autoconnect"
-
-

-

-
-
-
-

NM_DEVICE_FIRMWARE_MISSING

-
#define NM_DEVICE_FIRMWARE_MISSING "firmware-missing"
-
-

-

-
-
-
-

NM_DEVICE_IP4_CONFIG

-
#define NM_DEVICE_IP4_CONFIG "ip4-config"
-
-

-

-
-
-
-

NM_DEVICE_DHCP4_CONFIG

-
#define NM_DEVICE_DHCP4_CONFIG "dhcp4-config"
-
-

-

-
-
-
-

NM_DEVICE_IP6_CONFIG

-
#define NM_DEVICE_IP6_CONFIG "ip6-config"
-
-

-

-
-
-
-

NM_DEVICE_DHCP6_CONFIG

-
#define NM_DEVICE_DHCP6_CONFIG "dhcp6-config"
-
-

-

-
-
-
-

NM_DEVICE_STATE

-
#define NM_DEVICE_STATE "state"
-
-

-

-
-
-
-

NM_DEVICE_STATE_REASON

-
#define NM_DEVICE_STATE_REASON "state-reason"
-
-

-

-
-
-
-

NM_DEVICE_ACTIVE_CONNECTION

-
#define NM_DEVICE_ACTIVE_CONNECTION "active-connection"
-
-

-

-
-
-
-

NM_DEVICE_AVAILABLE_CONNECTIONS

-
#define NM_DEVICE_AVAILABLE_CONNECTIONS "available-connections"
-
-

-

-
-
-
-

NM_DEVICE_VENDOR

-
#define NM_DEVICE_VENDOR "vendor"
-
-

-

-
-
-
-

NM_DEVICE_PRODUCT

-
#define NM_DEVICE_PRODUCT "product"
-
-

-

-
-
-
-

NM_DEVICE_PHYSICAL_PORT_ID

-
#define NM_DEVICE_PHYSICAL_PORT_ID "physical-port-id"
-
-

-

-
-
-
-

NM_DEVICE_MTU

-
#define NM_DEVICE_MTU "mtu"
-
-

-

-
-
-
-

struct NMDevice

-
struct NMDevice;
-

-

-
-
-
-

NMDeviceClass

-
typedef struct {
-	NMObjectClass parent;
-
-	/* Signals */
-	void (*state_changed) (NMDevice *device,
-	                       NMDeviceState new_state,
-	                       NMDeviceState old_state,
-	                       NMDeviceStateReason reason);
-
-	/* Methods */
-	gboolean (*connection_compatible) (NMDevice *device,
-	                                   NMConnection *connection,
-	                                   GError **error);
-
-	const char * (*get_type_description) (NMDevice *device);
-	const char * (*get_hw_address) (NMDevice *device);
-
-	GType (*get_setting_type) (NMDevice *device);
-} NMDeviceClass;
-
-

-

-
-
-
-

nm_device_get_iface ()

-
const char *        nm_device_get_iface                 (NMDevice *device);
-

-Gets the interface name of the NMDevice. -

-
+

Functions

+
--++ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + +

device :

a NMDevice +const char * + +nm_device_get_iface () +
const char * + +nm_device_get_ip_iface () +
+NMDeviceType + +nm_device_get_device_type () +
const char * + +nm_device_get_udi () +
const char * + +nm_device_get_driver () +
const char * + +nm_device_get_driver_version () +
const char * + +nm_device_get_firmware_version () +
const char * + +nm_device_get_type_description () +
const char * + +nm_device_get_hw_address () +
+NMDeviceCapabilities + +nm_device_get_capabilities () +
+gboolean + +nm_device_get_managed () +
+gboolean + +nm_device_get_autoconnect () +
+void + +nm_device_set_autoconnect () +
+gboolean + +nm_device_get_firmware_missing () +
+NMIPConfig * + +nm_device_get_ip4_config () +
+NMDhcpConfig * + +nm_device_get_dhcp4_config () +
+NMIPConfig * + +nm_device_get_ip6_config () +
+NMDhcpConfig * + +nm_device_get_dhcp6_config () +
+NMDeviceState + +nm_device_get_state () +
+NMDeviceStateReason + +nm_device_get_state_reason () +
+NMActiveConnection * + +nm_device_get_active_connection () +
const GPtrArray * + +nm_device_get_available_connections () +
const char * + +nm_device_get_physical_port_id () +
+guint32 + +nm_device_get_mtu () +
+gboolean + +nm_device_is_software () +
const char * + +nm_device_get_product () +
const char * + +nm_device_get_vendor () +
const char * + +nm_device_get_description () +
+char ** + +nm_device_disambiguate_names () +
+gboolean + +nm_device_disconnect () +
+void + +nm_device_disconnect_async () +
+gboolean + +nm_device_disconnect_finish () +
+gboolean + +nm_device_delete () +
+void + +nm_device_delete_async () +
+gboolean + +nm_device_delete_finish () +
+GPtrArray * + +nm_device_filter_connections () +
+gboolean + +nm_device_connection_valid () +
+gboolean + +nm_device_connection_compatible ()

Returns :

the interface of the device. This is the internal string used by the -device, and must not be modified. +GType + +nm_device_get_setting_type () +
-
-
-

nm_device_get_ip_iface ()

-
const char *        nm_device_get_ip_iface              (NMDevice *device);
-

-Gets the IP interface name of the NMDevice over which IP traffic flows -when the device is in the ACTIVATED state. -

-
+
+

Properties

+
--+++ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

device :

a NMDevice - +NMActiveConnection *active-connectionRead
gbooleanautoconnectRead / Write
+GPtrArray *available-connectionsRead
NMDeviceCapabilitiescapabilitiesRead
NMDeviceTypedevice-typeRead
+NMDhcpConfig *dhcp4-configRead
+NMDhcpConfig *dhcp6-configRead
+gchar *driverRead
+gchar *driver-versionRead
gbooleanfirmware-missingRead
+gchar *firmware-versionRead
+gchar *interfaceRead
+gchar *ip-interfaceRead
+NMIPConfig *ip4-configRead

Returns :

the IP traffic interface of the device. This is the internal string -used by the device, and must not be modified. +NMIPConfig *ip6-configRead
gbooleanmanagedRead
guintmtuRead
+gchar *physical-port-idRead
+gchar *productRead
NMDeviceStatestateRead
guintstate-reasonRead
+gchar *udiRead
+gchar *vendorRead
-
-
-

nm_device_get_device_type ()

-
NMDeviceType        nm_device_get_device_type           (NMDevice *device);
-

-Returns the numeric type of the NMDevice, ie Ethernet, Wi-Fi, etc. -

-
+
+

Signals

+
+++++ + + + + + +
voidstate-changedRun First
+
+
+

Types and Values

+
--++ - - + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

device :

a NMDevice -#defineNM_DEVICE_DEVICE_TYPE
#defineNM_DEVICE_UDI
#defineNM_DEVICE_INTERFACE

Returns :

the device type#defineNM_DEVICE_IP_INTERFACE
#defineNM_DEVICE_DRIVER
#defineNM_DEVICE_DRIVER_VERSION
#defineNM_DEVICE_FIRMWARE_VERSION
#defineNM_DEVICE_CAPABILITIES
#defineNM_DEVICE_MANAGED
#defineNM_DEVICE_AUTOCONNECT
#defineNM_DEVICE_FIRMWARE_MISSING
#defineNM_DEVICE_IP4_CONFIG
#defineNM_DEVICE_DHCP4_CONFIG
#defineNM_DEVICE_IP6_CONFIG
#defineNM_DEVICE_DHCP6_CONFIG
#defineNM_DEVICE_STATE
#defineNM_DEVICE_STATE_REASON
#defineNM_DEVICE_ACTIVE_CONNECTION
#defineNM_DEVICE_AVAILABLE_CONNECTIONS
#defineNM_DEVICE_VENDOR
#defineNM_DEVICE_PRODUCT
#defineNM_DEVICE_PHYSICAL_PORT_ID
#defineNM_DEVICE_MTU
-
-
-

nm_device_get_udi ()

-
const char *        nm_device_get_udi                   (NMDevice *device);
+
+

Object Hierarchy

+
    GObject
+    ╰── NMObject
+        ╰── NMDevice
+            ├── NMDeviceAdsl
+            ├── NMDeviceBond
+            ├── NMDeviceBridge
+            ├── NMDeviceBt
+            ├── NMDeviceEthernet
+            ├── NMDeviceGeneric
+            ├── NMDeviceInfiniband
+            ├── NMDeviceModem
+            ├── NMDeviceOlpcMesh
+            ├── NMDeviceTeam
+            ├── NMDeviceVlan
+            ├── NMDeviceWifi
+            ╰── NMDeviceWimax
+
+
+
+

Description

-Gets the Unique Device Identifier of the NMDevice.

-
+ +
+

Functions

+
+

nm_device_get_iface ()

+
const char *
+nm_device_get_iface (NMDevice *device);
+

Gets the interface name of the NMDevice.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the Unique Device Identifier of the device. This identifier may be -used to gather more information about the device from various operating -system services like udev or sysfs.

device

a NMDevice

 
+
+

Returns

+

the interface of the device. This is the internal string used by the +device, and must not be modified.

+

+
+

-

nm_device_get_driver ()

-
const char *        nm_device_get_driver                (NMDevice *device);
-

-Gets the driver of the NMDevice. -

-
+

nm_device_get_ip_iface ()

+
const char *
+nm_device_get_ip_iface (NMDevice *device);
+

Gets the IP interface name of the NMDevice over which IP traffic flows +when the device is in the ACTIVATED state.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the driver of the device. This is the internal string used by the -device, and must not be modified.

device

a NMDevice

 
+
+

Returns

+

the IP traffic interface of the device. This is the internal string +used by the device, and must not be modified.

+

+
+

-

nm_device_get_driver_version ()

-
const char *        nm_device_get_driver_version        (NMDevice *device);
-

-Gets the driver version of the NMDevice. -

-
+

nm_device_get_device_type ()

+
NMDeviceType
+nm_device_get_device_type (NMDevice *device);
+

Returns the numeric type of the NMDevice, ie Ethernet, Wi-Fi, etc.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the version of the device driver. This is the internal string used by the -device, and must not be modified.

device

a NMDevice

 
+
+

Returns

+

the device type

+

+
+

-

nm_device_get_firmware_version ()

-
const char *        nm_device_get_firmware_version      (NMDevice *device);
-

-Gets the firmware version of the NMDevice. -

-
+

nm_device_get_udi ()

+
const char *
+nm_device_get_udi (NMDevice *device);
+

Gets the Unique Device Identifier of the NMDevice.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the firmware version of the device. This is the internal string used by the -device, and must not be modified.

device

a NMDevice

 
+
+

Returns

+

the Unique Device Identifier of the device. This identifier may be +used to gather more information about the device from various operating +system services like udev or sysfs.

+

+
+
-

nm_device_get_type_description ()

-
const char *        nm_device_get_type_description      (NMDevice *device);
-

-Gets a (non-localized) description of the type of device that -device is. -

-
+

nm_device_get_driver ()

+
const char *
+nm_device_get_driver (NMDevice *device);
+

Gets the driver of the NMDevice.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the type description of the device. This is the internal -string used by the device, and must not be modified.

device

a NMDevice

 
+
+

Returns

+

the driver of the device. This is the internal string used by the +device, and must not be modified.

+

+
+
-

nm_device_get_hw_address ()

-
const char *        nm_device_get_hw_address            (NMDevice *device);
-

-Gets the current a hardware address (MAC) for the device. -

-
+

nm_device_get_driver_version ()

+
const char *
+nm_device_get_driver_version (NMDevice *device);
+

Gets the driver version of the NMDevice.

+
+

Parameters

+
+++++ + + + + + +

device

a NMDevice

 
+
+
+

Returns

+

the version of the device driver. This is the internal string used by the +device, and must not be modified.

+

+
+ +
+
+

nm_device_get_firmware_version ()

+
const char *
+nm_device_get_firmware_version (NMDevice *device);
+

Gets the firmware version of the NMDevice.

+
+

Parameters

+
+++++ + + + + + +

device

a NMDevice

 
+
+
+

Returns

+

the firmware version of the device. This is the internal string used by the +device, and must not be modified.

+

+
+
+
+
+

nm_device_get_type_description ()

+
const char *
+nm_device_get_type_description (NMDevice *device);
+

Gets a (non-localized) description of the type of device that +device + is.

+
+

Parameters

+
+++++ + + + + + +

device

a NMDevice

 
+
+
+

Returns

+

the type description of the device. This is the internal +string used by the device, and must not be modified.

+

+
+
+
+
+

nm_device_get_hw_address ()

+
const char *
+nm_device_get_hw_address (NMDevice *device);
+

Gets the current a hardware address (MAC) for the device +.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the current MAC of the device, or NULL. -This is the internal string used by the device, and must not be modified.

device

a NMDevice

 
+
+

Returns

+

the current MAC of the device, or NULL. +This is the internal string used by the device, and must not be modified.

+

+
+

-

nm_device_get_capabilities ()

-
NMDeviceCapabilities nm_device_get_capabilities         (NMDevice *device);
-

-Gets the device' capabilities. -

-
+

nm_device_get_capabilities ()

+
NMDeviceCapabilities
+nm_device_get_capabilities (NMDevice *device);
+

Gets the device' capabilities.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the capabilities

device

a NMDevice

 
+
+

Returns

+

the capabilities

+

+
+
-

nm_device_get_managed ()

-
gboolean            nm_device_get_managed               (NMDevice *device);
-

-Whether the NMDevice is managed by NetworkManager. -

-
+

nm_device_get_managed ()

+
gboolean
+nm_device_get_managed (NMDevice *device);
+

Whether the NMDevice is managed by NetworkManager.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

-TRUE if the device is managed by NetworkManager

device

a NMDevice

 
+
+

Returns

+

TRUE if the device is managed by NetworkManager

+

+
+
-

nm_device_get_autoconnect ()

-
gboolean            nm_device_get_autoconnect           (NMDevice *device);
-

-Whether the NMDevice can be autoconnected. -

-
+

nm_device_get_autoconnect ()

+
gboolean
+nm_device_get_autoconnect (NMDevice *device);
+

Whether the NMDevice can be autoconnected.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

-TRUE if the device is allowed to be autoconnected

device

a NMDevice

 
+
+

Returns

+

TRUE if the device is allowed to be autoconnected

+

+
+
-

nm_device_set_autoconnect ()

-
void                nm_device_set_autoconnect           (NMDevice *device,
-                                                         gboolean autoconnect);
-

-Enables or disables automatic activation of the NMDevice. -

-
+

nm_device_set_autoconnect ()

+
void
+nm_device_set_autoconnect (NMDevice *device,
+                           gboolean autoconnect);
+

Enables or disables automatic activation of the NMDevice.

+
+

Parameters

+
--+++ - - + + + - - + + +

device :

a NMDevice -

device

a NMDevice

 

autoconnect :

-TRUE to enable autoconnecting

autoconnect

TRUE to enable autoconnecting

 
+
-

nm_device_get_firmware_missing ()

-
gboolean            nm_device_get_firmware_missing      (NMDevice *device);
-

-Indicates that firmware required for the device's operation is likely -to be missing. -

-
+

nm_device_get_firmware_missing ()

+
gboolean
+nm_device_get_firmware_missing (NMDevice *device);
+

Indicates that firmware required for the device's operation is likely +to be missing.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

-TRUE if firmware required for the device's operation is likely -to be missing.

device

a NMDevice

 
+
+

Returns

+

TRUE if firmware required for the device's operation is likely +to be missing.

+

+
+
-

nm_device_get_ip4_config ()

-
NMIPConfig *        nm_device_get_ip4_config            (NMDevice *device);
-

-Gets the current IPv4 NMIPConfig associated with the NMDevice. -

-

-You can alternatively use nm_active_connection_get_ip4_config(), which also -works with VPN connections. -

-
+

nm_device_get_ip4_config ()

+
NMIPConfig *
+nm_device_get_ip4_config (NMDevice *device);
+

Gets the current IPv4 NMIPConfig associated with the NMDevice.

+

You can alternatively use nm_active_connection_get_ip4_config(), which also +works with VPN connections.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the IPv4 NMIPConfig, or NULL if the device is not -activated. [transfer none] -

device

a NMDevice

 
+
+

Returns

+

the IPv4 NMIPConfig, or NULL if the device is not +activated.

+

[transfer none]

+
+
-

nm_device_get_dhcp4_config ()

-
NMDhcpConfig *      nm_device_get_dhcp4_config          (NMDevice *device);
-

-Gets the current IPv4 NMDhcpConfig associated with the NMDevice. -

-

-You can alternatively use nm_active_connection_get_dhcp4_config(), which also -works with VPN connections. -

-
+

nm_device_get_dhcp4_config ()

+
NMDhcpConfig *
+nm_device_get_dhcp4_config (NMDevice *device);
+

Gets the current IPv4 NMDhcpConfig associated with the NMDevice.

+

You can alternatively use nm_active_connection_get_dhcp4_config(), which also +works with VPN connections.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the IPv4 NMDhcpConfig, or NULL if the device is -not activated or not using DHCP. [transfer none] -

device

a NMDevice

 
+
+

Returns

+

the IPv4 NMDhcpConfig, or NULL if the device is +not activated or not using DHCP.

+

[transfer none]

+
+
-

nm_device_get_ip6_config ()

-
NMIPConfig *        nm_device_get_ip6_config            (NMDevice *device);
-

-Gets the current IPv6 NMIPConfig associated with the NMDevice. -

-

-You can alternatively use nm_active_connection_get_ip6_config(), which also -works with VPN connections. -

-
+

nm_device_get_ip6_config ()

+
NMIPConfig *
+nm_device_get_ip6_config (NMDevice *device);
+

Gets the current IPv6 NMIPConfig associated with the NMDevice.

+

You can alternatively use nm_active_connection_get_ip6_config(), which also +works with VPN connections.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the IPv6 NMIPConfig or NULL if the device is not activated. [transfer none] -

device

a NMDevice

 
+
+

Returns

+

the IPv6 NMIPConfig or NULL if the device is not activated.

+

[transfer none]

+
+
-

nm_device_get_dhcp6_config ()

-
NMDhcpConfig *      nm_device_get_dhcp6_config          (NMDevice *device);
-

-Gets the current IPv6 NMDhcpConfig associated with the NMDevice. -

-

-You can alternatively use nm_active_connection_get_dhcp6_config(), which also -works with VPN connections. -

-
+

nm_device_get_dhcp6_config ()

+
NMDhcpConfig *
+nm_device_get_dhcp6_config (NMDevice *device);
+

Gets the current IPv6 NMDhcpConfig associated with the NMDevice.

+

You can alternatively use nm_active_connection_get_dhcp6_config(), which also +works with VPN connections.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the IPv6 NMDhcpConfig, or NULL if the device is -not activated or not using DHCPv6. [transfer none] -

device

a NMDevice

 
+
+

Returns

+

the IPv6 NMDhcpConfig, or NULL if the device is +not activated or not using DHCPv6.

+

[transfer none]

+
+
-

nm_device_get_state ()

-
NMDeviceState       nm_device_get_state                 (NMDevice *device);
-

-Gets the current NMDevice state. -

-
+

nm_device_get_state ()

+
NMDeviceState
+nm_device_get_state (NMDevice *device);
+

Gets the current NMDevice state.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the current device state

device

a NMDevice

 
+
+

Returns

+

the current device state

+

+
+
-

nm_device_get_state_reason ()

-
NMDeviceStateReason nm_device_get_state_reason          (NMDevice *device);
-

-Gets the reason for entering the current NMDevice state. -

-
+

nm_device_get_state_reason ()

+
NMDeviceStateReason
+nm_device_get_state_reason (NMDevice *device);
+

Gets the reason for entering the current NMDevice state.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the reason for entering the current device state

device

a NMDevice

 
+
+

Returns

+

the reason for entering the current device state

+

+
+
-

nm_device_get_active_connection ()

-
NMActiveConnection * nm_device_get_active_connection    (NMDevice *device);
-

-Gets the NMActiveConnection object which owns this device during activation. -

-
+

nm_device_get_active_connection ()

+
NMActiveConnection *
+nm_device_get_active_connection (NMDevice *device);
+

Gets the NMActiveConnection object which owns this device during activation.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the NMActiveConnection or NULL if the device is -not part of an active connection. [transfer none] -

device

a NMDevice

 
+
+

Returns

+

the NMActiveConnection or NULL if the device is +not part of an active connection.

+

[transfer none]

+
+
-

nm_device_get_available_connections ()

-
const GPtrArray *   nm_device_get_available_connections (NMDevice *device);
-

-Gets the NMRemoteConnections currently known to the daemon that could -be activated on device. -

-
+

nm_device_get_available_connections ()

+
const GPtrArray *
+nm_device_get_available_connections (NMDevice *device);
+

Gets the NMRemoteConnections currently known to the daemon that could +be activated on device +.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the GPtrArray -containing NMRemoteConnections. This is the internal copy used by -the connection, and must not be modified. [element-type NMRemoteConnection] -

device

a NMDevice

 
+
+

Returns

+

the GPtrArray +containing NMRemoteConnections. This is the internal copy used by +the connection, and must not be modified.

+

[element-type NMRemoteConnection]

+
+
-

nm_device_get_physical_port_id ()

-
const char *        nm_device_get_physical_port_id      (NMDevice *device);
-

-Gets the physical port ID of the NMDevice. If non-NULL, this is +

nm_device_get_physical_port_id ()

+
const char *
+nm_device_get_physical_port_id (NMDevice *device);
+

Gets the physical port ID of the NMDevice. If non-NULL, this is an opaque string that can be used to recognize when seemingly-unrelated NMDevices are actually just different virtual -ports on a single physical port. (Eg, NPAR / SR-IOV.) -

-
+ports on a single physical port. (Eg, NPAR / SR-IOV.)

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the physical port ID of the device, or NULL if the port -ID is unknown. This is the internal string used by the device and -must not be modified.

device

a NMDevice

 
+
+

Returns

+

the physical port ID of the device, or NULL if the port +ID is unknown. This is the internal string used by the device and +must not be modified.

+

+
+
-

nm_device_get_mtu ()

-
guint32             nm_device_get_mtu                   (NMDevice *device);
-

-Gets the MTU of the NMDevice. -

-
+

nm_device_get_mtu ()

+
guint32
+nm_device_get_mtu (NMDevice *device);
+

Gets the MTU of the NMDevice.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the MTU of the device.

device

a NMDevice

 
+
+

Returns

+

the MTU of the device.

+

+
+
-

nm_device_is_software ()

-
gboolean            nm_device_is_software               (NMDevice *device);
-

-Whether the device is a software device. -

-
+

nm_device_is_software ()

+
gboolean
+nm_device_is_software (NMDevice *device);
+

Whether the device is a software device.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

-TRUE if device is a software device, FALSE if it is a hardware device.

device

a NMDevice

 
+
+

Returns

+

TRUE if device +is a software device, FALSE if it is a hardware device.

+

+
+
-

nm_device_get_product ()

-
const char *        nm_device_get_product               (NMDevice *device);
-

-Gets the product string of the NMDevice. -

-
+

nm_device_get_product ()

+
const char *
+nm_device_get_product (NMDevice *device);
+

Gets the product string of the NMDevice.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the product name of the device. This is the internal string used by the -device, and must not be modified.

device

a NMDevice

 
+
+

Returns

+

the product name of the device. This is the internal string used by the +device, and must not be modified.

+

+
+
-

nm_device_get_vendor ()

-
const char *        nm_device_get_vendor                (NMDevice *device);
-

-Gets the vendor string of the NMDevice. -

-
+

nm_device_get_vendor ()

+
const char *
+nm_device_get_vendor (NMDevice *device);
+

Gets the vendor string of the NMDevice.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

a NMDevice -

Returns :

the vendor name of the device. This is the internal string used by the -device, and must not be modified.

device

a NMDevice

 
+
+

Returns

+

the vendor name of the device. This is the internal string used by the +device, and must not be modified.

+

+
+
-

nm_device_get_description ()

-
const char *        nm_device_get_description           (NMDevice *device);
-

-Gets a description of device, based on its vendor and product names. -

-
+

nm_device_get_description ()

+
const char *
+nm_device_get_description (NMDevice *device);
+

Gets a description of device +, based on its vendor and product names.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

an NMDevice -

Returns :

a description of device. If either the vendor or the -product name is unknown, this returns the interface name.

device

an NMDevice

 
+
+

Returns

+

a description of device +. If either the vendor or the +product name is unknown, this returns the interface name.

+

+
+
-

nm_device_disambiguate_names ()

-
char **             nm_device_disambiguate_names        (NMDevice **devices,
-                                                         int num_devices);
-

-Generates a list of short-ish unique presentation names for the -devices in devices. -

-
+

nm_device_disambiguate_names ()

+
char **
+nm_device_disambiguate_names (NMDevice **devices,
+                              int num_devices);
+

Generates a list of short-ish unique presentation names for the +devices in devices +.

+
+

Parameters

+
--+++ - - - - - - + + + - - + + +

devices :

an array of NMDevice. [array length=num_devices] -

num_devices :

length of devices -

devices

an array of NMDevice.

[array length=num_devices]

Returns :

the device names. [transfer full][array zero-terminated=1] -

num_devices

length of devices +

 
+
+

Returns

+

the device names.

+

[transfer full][array zero-terminated=1]

+
+
-

nm_device_disconnect ()

-
gboolean            nm_device_disconnect                (NMDevice *device,
-                                                         GCancellable *cancellable,
-                                                         GError **error);
-

-Disconnects the device if currently connected, and prevents the device from +

nm_device_disconnect ()

+
gboolean
+nm_device_disconnect (NMDevice *device,
+                      GCancellable *cancellable,
+                      GError **error);
+

Disconnects the device if currently connected, and prevents the device from automatically connecting to networks until the next manual network connection -request. -

-
+request.

+
+

Parameters

+
--+++ - - - - - - + + + - - + + + - - + + +

device :

a NMDevice -

cancellable :

a GCancellable, or NULL -

device

a NMDevice

 

error :

location for a GError, or NULL -

cancellable

a GCancellable, or NULL

 

Returns :

-TRUE on success, FALSE on error, in which case error will be set.

error

location for a GError, or NULL

 
+
+

Returns

+

TRUE on success, FALSE on error, in which case error +will be set.

+

+
+
-

nm_device_disconnect_async ()

-
void                nm_device_disconnect_async          (NMDevice *device,
-                                                         GCancellable *cancellable,
-                                                         GAsyncReadyCallback callback,
-                                                         gpointer user_data);
-

-Asynchronously begins disconnecting the device if currently connected, and +

nm_device_disconnect_async ()

+
void
+nm_device_disconnect_async (NMDevice *device,
+                            GCancellable *cancellable,
+                            GAsyncReadyCallback callback,
+                            gpointer user_data);
+

Asynchronously begins disconnecting the device if currently connected, and prevents the device from automatically connecting to networks until the next -manual network connection request. -

-
+manual network connection request.

+
+

Parameters

+
--+++ - - + + + - - + + + - - + + + - - + + +

device :

a NMDevice -

device

a NMDevice

 

cancellable :

a GCancellable, or NULL -

cancellable

a GCancellable, or NULL

 

callback :

callback to be called when the disconnect operation completes

callback

callback to be called when the disconnect operation completes

 

user_data :

caller-specific data passed to callback -

user_data

caller-specific data passed to callback +

 
+
-

nm_device_disconnect_finish ()

-
gboolean            nm_device_disconnect_finish         (NMDevice *device,
-                                                         GAsyncResult *result,
-                                                         GError **error);
-

-Gets the result of a call to nm_device_disconnect_async(). -

-
+

nm_device_disconnect_finish ()

+
gboolean
+nm_device_disconnect_finish (NMDevice *device,
+                             GAsyncResult *result,
+                             GError **error);
+

Gets the result of a call to nm_device_disconnect_async().

+
+

Parameters

+
--+++ - - - - - - + + + - - + + + - - + + +

device :

a NMDevice -

result :

the result passed to the GAsyncReadyCallback -

device

a NMDevice

 

error :

location for a GError, or NULL -

result

the result passed to the GAsyncReadyCallback

 

Returns :

-TRUE on success, FALSE on error, in which case error -will be set.

error

location for a GError, or NULL

 
+
+

Returns

+

TRUE on success, FALSE on error, in which case error +will be set.

+

+
+
-

nm_device_delete ()

-
gboolean            nm_device_delete                    (NMDevice *device,
-                                                         GCancellable *cancellable,
-                                                         GError **error);
-

-Deletes the software device. Hardware devices can't be deleted. -

-
+

nm_device_delete ()

+
gboolean
+nm_device_delete (NMDevice *device,
+                  GCancellable *cancellable,
+                  GError **error);
+

Deletes the software device. Hardware devices can't be deleted.

+
+

Parameters

+
--+++ - - - - - - + + + - - + + + - - + + +

device :

a NMDevice -

cancellable :

a GCancellable, or NULL -

device

a NMDevice

 

error :

location for a GError, or NULL -

cancellable

a GCancellable, or NULL

 

Returns :

-TRUE on success, FALSE on error, in which case error -will be set.

error

location for a GError, or NULL

 
+
+

Returns

+

TRUE on success, FALSE on error, in which case error +will be set.

+

+
+
-

nm_device_delete_async ()

-
void                nm_device_delete_async              (NMDevice *device,
-                                                         GCancellable *cancellable,
-                                                         GAsyncReadyCallback callback,
-                                                         gpointer user_data);
-

-Asynchronously begins deleteing the software device. Hardware devices can't -be deleted. -

-
+

nm_device_delete_async ()

+
void
+nm_device_delete_async (NMDevice *device,
+                        GCancellable *cancellable,
+                        GAsyncReadyCallback callback,
+                        gpointer user_data);
+

Asynchronously begins deleteing the software device. Hardware devices can't +be deleted.

+
+

Parameters

+
--+++ - - + + + - - + + + - - + + + - - + + +

device :

a NMDevice -

device

a NMDevice

 

cancellable :

a GCancellable, or NULL -

cancellable

a GCancellable, or NULL

 

callback :

callback to be called when delete operation completes

callback

callback to be called when delete operation completes

 

user_data :

caller-specific data passed to callback -

user_data

caller-specific data passed to callback +

 
+
-

nm_device_delete_finish ()

-
gboolean            nm_device_delete_finish             (NMDevice *device,
-                                                         GAsyncResult *result,
-                                                         GError **error);
-

-Gets the result of a call to nm_device_delete_async(). -

-
+

nm_device_delete_finish ()

+
gboolean
+nm_device_delete_finish (NMDevice *device,
+                         GAsyncResult *result,
+                         GError **error);
+

Gets the result of a call to nm_device_delete_async().

+
+

Parameters

+
--+++ - - - - - - + + + - - + + + - - + + +

device :

a NMDevice -

result :

the result passed to the GAsyncReadyCallback -

device

a NMDevice

 

error :

location for a GError, or NULL -

result

the result passed to the GAsyncReadyCallback

 

Returns :

-TRUE on success, FALSE on error, in which case error -will be set.

error

location for a GError, or NULL

 
+
+

Returns

+

TRUE on success, FALSE on error, in which case error +will be set.

+

+
+
-

nm_device_filter_connections ()

-
GPtrArray *         nm_device_filter_connections        (NMDevice *device,
-                                                         const GPtrArray *connections);
-

-Filters a given array of connections for a given NMDevice object and returns +

nm_device_filter_connections ()

+
GPtrArray *
+nm_device_filter_connections (NMDevice *device,
+                              const GPtrArray *connections);
+

Filters a given array of connections for a given NMDevice object and returns connections which may be activated with the device. For example if device + is a Wi-Fi device that supports only WEP encryption, the returned array will -contain any Wi-Fi connections in connections that allow connection to +contain any Wi-Fi connections in connections + that allow connection to unencrypted or WEP-enabled SSIDs. The returned array will not contain Ethernet, Bluetooth, Wi-Fi WPA connections, or any other connection that is incompatible with the device. To get the full list of connections see -nm_client_get_connections(). -

-
+nm_client_get_connections().

+
+

Parameters

+
--+++ - - - - - - + + + - - + + +

device :

an NMDevice to filter connections for

connections :

an array of NMConnections to filter. [element-type NMConnection] -

device

an NMDevice to filter connections for

 

Returns :

an array of -NMConnections that could be activated with the given device. The array -should be freed with g_ptr_array_unref() when it is no longer required. [transfer container][element-type NMConnection] -

connections

an array of NMConnections to filter.

[element-type NMConnection]
+
+

Returns

+

an array of +NMConnections that could be activated with the given device +. The array +should be freed with g_ptr_array_unref() when it is no longer required.

+

[transfer container][element-type NMConnection]

+
+
-

nm_device_connection_valid ()

-
gboolean            nm_device_connection_valid          (NMDevice *device,
-                                                         NMConnection *connection);
-

-Validates a given connection for a given NMDevice object and returns +

nm_device_connection_valid ()

+
gboolean
+nm_device_connection_valid (NMDevice *device,
+                            NMConnection *connection);
+

Validates a given connection for a given NMDevice object and returns whether the connection may be activated with the device. For example if -device is a Wi-Fi device that supports only WEP encryption, the connection +device + is a Wi-Fi device that supports only WEP encryption, the connection will only be valid if it is a Wi-Fi connection which describes a WEP or open network, and will not be valid if it describes a WPA network, or if it is an Ethernet, Bluetooth, WWAN, etc connection that is incompatible with the -device. -

-
+device.

+
+

Parameters

+
--+++ - - - - - - + + + - - + + +

device :

an NMDevice to validate connection against

connection :

an NMConnection to validate against device -

device

an NMDevice to validate connection +against

 

Returns :

-TRUE if the connection may be activated with this device, FALSE -if is incompatible with the device's capabilities and characteristics.

connection

an NMConnection to validate against device +

 
+
+

Returns

+

TRUE if the connection may be activated with this device, FALSE +if is incompatible with the device's capabilities and characteristics.

+

+
+
-

nm_device_connection_compatible ()

-
gboolean            nm_device_connection_compatible     (NMDevice *device,
-                                                         NMConnection *connection,
-                                                         GError **error);
-

-Validates a given connection for a given NMDevice object and returns +

nm_device_connection_compatible ()

+
gboolean
+nm_device_connection_compatible (NMDevice *device,
+                                 NMConnection *connection,
+                                 GError **error);
+

Validates a given connection for a given NMDevice object and returns whether the connection may be activated with the device. For example if -device is a Wi-Fi device that supports only WEP encryption, the connection +device + is a Wi-Fi device that supports only WEP encryption, the connection will only be valid if it is a Wi-Fi connection which describes a WEP or open network, and will not be valid if it describes a WPA network, or if it is an Ethernet, Bluetooth, WWAN, etc connection that is incompatible with the -device. -

-

-This function does the same as nm_device_connection_valid(), i.e. checking +device.

+

This function does the same as nm_device_connection_valid(), i.e. checking compatibility of the given device and connection. But, in addition, it sets -GError when FALSE is returned. -

-
+GError when FALSE is returned.

+
+

Parameters

+
--+++ - - - - - - + + + - - + + + - - + + +

device :

an NMDevice to validate connection against

connection :

an NMConnection to validate against device -

device

an NMDevice to validate connection +against

 

error :

return location for a GError, or NULL -

connection

an NMConnection to validate against device +

 

Returns :

-TRUE if the connection may be activated with this device, FALSE -if is incompatible with the device's capabilities and characteristics.

error

return location for a GError, or NULL

 
+
+

Returns

+

TRUE if the connection may be activated with this device, FALSE +if is incompatible with the device's capabilities and characteristics.

+

+
+
-

nm_device_get_setting_type ()

-
GType               nm_device_get_setting_type          (NMDevice *device);
-

-Gets the (primary) NMSetting subtype associated with connections -that can be used on device. -

-
+

nm_device_get_setting_type ()

+
GType
+nm_device_get_setting_type (NMDevice *device);
+

Gets the (primary) NMSetting subtype associated with connections +that can be used on device +.

+
+

Parameters

+
--+++ - - - - - - - - - - + + + + +

device :

an NMDevice -

Returns :

-device's associated NMSetting type

device

an NMDevice

 
+
+

Returns

+

device +'s associated NMSetting type

+

+
+
-

Property Details

+

Types and Values

-

The "active-connection" property

-
  "active-connection"        NMActiveConnection*   : Read
+

NM_DEVICE_DEVICE_TYPE

+
#define NM_DEVICE_DEVICE_TYPE "device-type"
+

-The NMActiveConnection object that "owns" this device during activation.


-

The "autoconnect" property

-
  "autoconnect"              gboolean              : Read / Write
+

NM_DEVICE_UDI

+
#define NM_DEVICE_UDI "udi"
+

-Whether the device can auto-activate a connection.

-

Default value: TRUE


-

The "available-connections" property

-
  "available-connections"    GPtrArray*            : Read
+

NM_DEVICE_INTERFACE

+
#define NM_DEVICE_INTERFACE "interface"
+

-The available connections of the device

+
+
+
+

NM_DEVICE_IP_INTERFACE

+
#define NM_DEVICE_IP_INTERFACE "ip-interface"
+

-Element-type: NMRemoteConnection


-

The "capabilities" property

-
  "capabilities"             NMDeviceCapabilities  : Read
+

NM_DEVICE_DRIVER

+
#define NM_DEVICE_DRIVER "driver"
+

-The capabilities of the device.


-

The "device-type" property

-
  "device-type"              NMDeviceType          : Read
+

NM_DEVICE_DRIVER_VERSION

+
#define NM_DEVICE_DRIVER_VERSION "driver-version"
+

-The numeric type of the device.

-

Default value: NM_DEVICE_TYPE_UNKNOWN


-

The "dhcp4-config" property

-
  "dhcp4-config"             NMDhcpConfig*         : Read
+

NM_DEVICE_FIRMWARE_VERSION

+
#define NM_DEVICE_FIRMWARE_VERSION "firmware-version"
+

-The IPv4 NMDhcpConfig of the device.


-

The "dhcp6-config" property

-
  "dhcp6-config"             NMDhcpConfig*         : Read
+

NM_DEVICE_CAPABILITIES

+
#define NM_DEVICE_CAPABILITIES "capabilities"
+

-The IPv6 NMDhcpConfig of the device.


-

The "driver" property

-
  "driver"                   gchar*                : Read
+

NM_DEVICE_MANAGED

+
#define NM_DEVICE_MANAGED "managed"
+

-The driver of the device.

-

Default value: NULL


-

The "driver-version" property

-
  "driver-version"           gchar*                : Read
+

NM_DEVICE_AUTOCONNECT

+
#define NM_DEVICE_AUTOCONNECT "autoconnect"
+

-The version of the device driver.

-

Default value: NULL


-

The "firmware-missing" property

-
  "firmware-missing"         gboolean              : Read
+

NM_DEVICE_FIRMWARE_MISSING

+
#define NM_DEVICE_FIRMWARE_MISSING "firmware-missing"
+

-When TRUE indicates the device is likely missing firmware required -for its operation.

-

Default value: FALSE


-

The "firmware-version" property

-
  "firmware-version"         gchar*                : Read
+

NM_DEVICE_IP4_CONFIG

+
#define NM_DEVICE_IP4_CONFIG "ip4-config"
+

-The firmware version of the device.

-

Default value: NULL


-

The "interface" property

-
  "interface"                gchar*                : Read
+

NM_DEVICE_DHCP4_CONFIG

+
#define NM_DEVICE_DHCP4_CONFIG "dhcp4-config"
+

-The interface of the device.

-

Default value: NULL


-

The "ip-interface" property

-
  "ip-interface"             gchar*                : Read
+

NM_DEVICE_IP6_CONFIG

+
#define NM_DEVICE_IP6_CONFIG "ip6-config"
+

-The IP interface of the device which should be used for all IP-related -operations like addressing and routing.

-

Default value: NULL


-

The "ip4-config" property

-
  "ip4-config"               NMIPConfig*           : Read
+

NM_DEVICE_DHCP6_CONFIG

+
#define NM_DEVICE_DHCP6_CONFIG "dhcp6-config"
+

-The NMIP4Config of the device.


-

The "ip6-config" property

-
  "ip6-config"               NMIPConfig*           : Read
+

NM_DEVICE_STATE

+
#define NM_DEVICE_STATE "state"
+

-The IPv6 NMIPConfig of the device.


-

The "managed" property

-
  "managed"                  gboolean              : Read
+

NM_DEVICE_STATE_REASON

+
#define NM_DEVICE_STATE_REASON "state-reason"
+

-Whether the device is managed by NetworkManager.

-

Default value: FALSE


-

The "mtu" property

-
  "mtu"                      guint                 : Read
+

NM_DEVICE_ACTIVE_CONNECTION

+
#define NM_DEVICE_ACTIVE_CONNECTION "active-connection"
+

-The MTU of the device.

-

Default value: 1500


-

The "physical-port-id" property

-
  "physical-port-id"         gchar*                : Read
+

NM_DEVICE_AVAILABLE_CONNECTIONS

+
#define NM_DEVICE_AVAILABLE_CONNECTIONS "available-connections"
+

-The physical port ID of the device. (See -nm_device_get_physical_port_id().)

-

Default value: NULL


-

The "product" property

-
  "product"                  gchar*                : Read
+

NM_DEVICE_VENDOR

+
#define NM_DEVICE_VENDOR "vendor"
+

-The product string of the device.

-

Default value: NULL


-

The "state" property

-
  "state"                    NMDeviceState         : Read
+

NM_DEVICE_PRODUCT

+
#define NM_DEVICE_PRODUCT "product"
+

-The state of the device.

-

Default value: NM_DEVICE_STATE_UNKNOWN


-

The "state-reason" property

-
  "state-reason"             guint                 : Read
+

NM_DEVICE_PHYSICAL_PORT_ID

+
#define NM_DEVICE_PHYSICAL_PORT_ID "physical-port-id"
+

-The reason for the device state.

-

Default value: 0


-

The "udi" property

-
  "udi"                      gchar*                : Read
+

NM_DEVICE_MTU

+
#define NM_DEVICE_MTU "mtu"
+

-An operating-system specific device hardware identifier; this is not -unique to a specific hardware device across reboots or hotplugs. It -is an opaque string which for some device types (Bluetooth, Modem) -contains an identifier provided by the underlying hardware service daemon -such as Bluez or ModemManager, and clients can use this property to -request more information about the device from those services.

+
+
+
+

Property Details

+
+

The “active-connection” property

+
  “active-connection”        NMActiveConnection *
+

+

Flags: Read

+
+
+
+

The “autoconnect” property

+
  “autoconnect”              gboolean
+

+

Flags: Read / Write

+

Default value: TRUE

+
+
+
+

The “available-connections” property

+
  “available-connections”    GPtrArray *
+

+

Flags: Read

+
+
+
+

The “capabilities” property

+
  “capabilities”             NMDeviceCapabilities
+

+

Flags: Read

+
+
+
+

The “device-type” property

+
  “device-type”              NMDeviceType
+

+

Flags: Read

+

Default value: NM_DEVICE_TYPE_UNKNOWN

+
+
+
+

The “dhcp4-config” property

+
  “dhcp4-config”             NMDhcpConfig *
+

+

Flags: Read

+
+
+
+

The “dhcp6-config” property

+
  “dhcp6-config”             NMDhcpConfig *
+

+

Flags: Read

+
+
+
+

The “driver” property

+
  “driver”                   gchar *
+

+

Flags: Read

Default value: NULL


-

The "vendor" property

-
  "vendor"                   gchar*                : Read
-

-The vendor string of the device. -

+

The “driver-version” property

+
  “driver-version”           gchar *
+

+

Flags: Read

+

Default value: NULL

+
+
+
+

The “firmware-missing” property

+
  “firmware-missing”         gboolean
+

+

Flags: Read

+

Default value: FALSE

+
+
+
+

The “firmware-version” property

+
  “firmware-version”         gchar *
+

+

Flags: Read

+

Default value: NULL

+
+
+
+

The “interface” property

+
  “interface”                gchar *
+

+

Flags: Read

+

Default value: NULL

+
+
+
+

The “ip-interface” property

+
  “ip-interface”             gchar *
+

+

Flags: Read

+

Default value: NULL

+
+
+
+

The “ip4-config” property

+
  “ip4-config”               NMIPConfig *
+

+

Flags: Read

+
+
+
+

The “ip6-config” property

+
  “ip6-config”               NMIPConfig *
+

+

Flags: Read

+
+
+
+

The “managed” property

+
  “managed”                  gboolean
+

+

Flags: Read

+

Default value: FALSE

+
+
+
+

The “mtu” property

+
  “mtu”                      guint
+

+

Flags: Read

+

Default value: 1500

+
+
+
+

The “physical-port-id” property

+
  “physical-port-id”         gchar *
+

+

Flags: Read

+

Default value: NULL

+
+
+
+

The “product” property

+
  “product”                  gchar *
+

+

Flags: Read

+

Default value: NULL

+
+
+
+

The “state” property

+
  “state”                    NMDeviceState
+

+

Flags: Read

+

Default value: NM_DEVICE_STATE_UNKNOWN

+
+
+
+

The “state-reason” property

+
  “state-reason”             guint
+

+

Flags: Read

+

Default value: 0

+
+
+
+

The “udi” property

+
  “udi”                      gchar *
+

+

Flags: Read

+

Default value: NULL

+
+
+
+

The “vendor” property

+
  “vendor”                   gchar *
+

+

Flags: Read

Default value: NULL

Signal Details

-

The "state-changed" signal

-
void                user_function                      (NMDevice *device,
-                                                        guint     new_state,
-                                                        guint     old_state,
-                                                        guint     reason,
-                                                        gpointer  user_data)      : Run First
-

-Notifies the state change of a NMDevice. -

-
---- - - - - - - - - - - - - - - - - - - - - - - -

device :

the device object that received the signal

new_state :

the new state of the device

old_state :

the previous state of the device

reason :

the reason describing the state change

user_data :

user data set when the signal handler was connected.
+

The “state-changed” signal

+
void
+user_function (NMDevice *device,
+               guint     new_state,
+               guint     old_state,
+               guint     reason,
+               gpointer  user_data)
+

Flags: Run First

+ Generated by GTK-Doc V1.21 \ No newline at end of file -- cgit 1.3.0-6-gf8a5