| libnm-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#define NM_DEVICE_ETHERNET_HW_ADDRESS #define NM_DEVICE_ETHERNET_SPEED #define NM_DEVICE_ETHERNET_CARRIER NMDeviceEthernet; GObject * nm_device_ethernet_new (DBusGConnection *connection,const char *path); const char * nm_device_ethernet_get_hw_address (NMDeviceEthernet *device); guint32 nm_device_ethernet_get_speed (NMDeviceEthernet *device); gboolean nm_device_ethernet_get_carrier (NMDeviceEthernet *device);
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 |
const char * nm_device_ethernet_get_hw_address (NMDeviceEthernet *device);
Gets the hardware (MAC) address of the NMDeviceEthernet
|
a NMDeviceEthernet |
Returns : |
the 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 : |
TRUE if the device has carrier
|