|  |  |  | libnm-glib Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
enum NMDeviceEthernetError; #define NM_DEVICE_ETHERNET_ERROR GQuark nm_device_ethernet_error_quark (void); #define NM_DEVICE_ETHERNET_HW_ADDRESS #define NM_DEVICE_ETHERNET_PERMANENT_HW_ADDRESS #define NM_DEVICE_ETHERNET_SPEED #define NM_DEVICE_ETHERNET_CARRIER NMDeviceEthernet; NMDeviceEthernetClass; GObject * nm_device_ethernet_new (DBusGConnection *connection,const char *path); const char * nm_device_ethernet_get_hw_address (NMDeviceEthernet *device); const char * nm_device_ethernet_get_permanent_hw_address (NMDeviceEthernet *device); guint32 nm_device_ethernet_get_speed (NMDeviceEthernet *device); gboolean nm_device_ethernet_get_carrier (NMDeviceEthernet *device);
"carrier" gboolean : Read "hw-address" gchar* : Read "perm-hw-address" gchar* : Read "speed" guint : Read
typedef enum {
	NM_DEVICE_ETHERNET_ERROR_UNKNOWN = 0,                 /*< nick=UnknownError >*/
	NM_DEVICE_ETHERNET_ERROR_NOT_ETHERNET_CONNECTION,     /*< nick=NotEthernetConnection >*/
	NM_DEVICE_ETHERNET_ERROR_INVALID_ETHERNET_CONNECTION, /*< nick=InvalidEthernetConnection >*/
	NM_DEVICE_ETHERNET_ERROR_INVALID_DEVICE_MAC,          /*< nick=InvalidDeviceMac >*/
	NM_DEVICE_ETHERNET_ERROR_MAC_MISMATCH,                /*< nick=MacMismatch >*/
} NMDeviceEthernetError;
| unknown or unclassified error | |
| the connection was not of ethernet or PPPoE type | |
| the ethernet connection was invalid | |
| the device's MAC was invalid | |
| the MACs of the connection and the device mismatched | 
GQuark              nm_device_ethernet_error_quark      (void);
Registers an error quark for NMDeviceEthernet if necessary.
| Returns : | the error quark used for NMDeviceEthernet errors. | 
#define NM_DEVICE_ETHERNET_PERMANENT_HW_ADDRESS "perm-hw-address"
typedef struct {
	NMDeviceClass parent;
	/* Padding for future expansion */
	void (*_reserved1) (void);
	void (*_reserved2) (void);
	void (*_reserved3) (void);
	void (*_reserved4) (void);
	void (*_reserved5) (void);
	void (*_reserved6) (void);
} NMDeviceEthernetClass;
GObject * nm_device_ethernet_new (DBusGConnection *connection,const char *path);
Creates a new NMDeviceEthernet.
| 
 | the DBusGConnection | 
| 
 | the DBus object path of the device | 
| Returns : | a new device. [transfer full] | 
const char *        nm_device_ethernet_get_hw_address   (NMDeviceEthernet *device);
Gets the active hardware (MAC) address of the NMDeviceEthernet
| 
 | a NMDeviceEthernet | 
| Returns : | the active hardware address. This is the internal string used by the device, and must not be modified. | 
const char *        nm_device_ethernet_get_permanent_hw_address
                                                        (NMDeviceEthernet *device);
Gets the permanent hardware (MAC) address of the NMDeviceEthernet
| 
 | a NMDeviceEthernet | 
| Returns : | the permanent hardware address. This is the internal string used by the device, and must not be modified. | 
guint32             nm_device_ethernet_get_speed        (NMDeviceEthernet *device);
Gets the speed of the NMDeviceEthernet.
| 
 | a NMDeviceEthernet | 
| Returns : | the speed of the device | 
gboolean            nm_device_ethernet_get_carrier      (NMDeviceEthernet *device);
Whether the device has carrier.
| 
 | a NMDeviceEthernet | 
| Returns : | TRUEif the device has carrier | 
"carrier" property"carrier" gboolean : Read
Whether the device has carrier.
Default value: FALSE
"hw-address" property"hw-address" gchar* : Read
The active hardware (MAC) address of the device.
Default value: NULL
"perm-hw-address" property"perm-hw-address" gchar* : Read
The permanent hardware (MAC) address of the device.
Default value: NULL