NMDeviceBond
NMDeviceBond
|
|
Implemented Interfaces
NMDeviceBond implements
GInitable and GAsyncInitable.
Functions
nm_device_bond_get_hw_address ()
const char *
nm_device_bond_get_hw_address (NMDeviceBond *device
);
Gets the hardware (MAC) address of the NMDeviceBond
Returns
the hardware address. This is the internal string used by the
device, and must not be modified.
nm_device_bond_get_carrier ()
gboolean
nm_device_bond_get_carrier (NMDeviceBond *device
);
Whether the device has carrier.
Returns
TRUE
if the device has carrier
nm_device_bond_get_slaves ()
const GPtrArray *
nm_device_bond_get_slaves (NMDeviceBond *device
);
Gets the devices currently enslaved to device
.
Returns
the GPtrArray containing
NMDevices that are slaves of device
. This is the internal
copy used by the device, and must not be modified.
[element-type NMDevice]
Types and Values
NM_DEVICE_BOND_HW_ADDRESS
#define NM_DEVICE_BOND_HW_ADDRESS "hw-address"
NM_DEVICE_BOND_CARRIER
#define NM_DEVICE_BOND_CARRIER "carrier"
NM_DEVICE_BOND_SLAVES
#define NM_DEVICE_BOND_SLAVES "slaves"
NMDeviceBond
typedef struct _NMDeviceBond NMDeviceBond;
Property Details
The “carrier”
property
“carrier” gboolean
Whether the device has carrier.
Owner: NMDeviceBond
Flags: Read
Default value: FALSE
The “hw-address”
property
“hw-address” char *
The hardware (MAC) address of the device.
Owner: NMDeviceBond
Flags: Read
Default value: NULL
The “slaves”
property
“slaves” GPtrArray *
The devices enslaved to the bond device.
[type GPtrArray(NMDevice)]
Owner: NMDeviceBond
Flags: Read