Top |
Functions
GQuark | nm_device_bridge_error_quark () |
GObject * | nm_device_bridge_new () |
const char * | nm_device_bridge_get_hw_address () |
gboolean | nm_device_bridge_get_carrier () |
const GPtrArray * | nm_device_bridge_get_slaves () |
Types and Values
enum | NMDeviceBridgeError |
#define | NM_DEVICE_BRIDGE_ERROR |
#define | NM_DEVICE_BRIDGE_HW_ADDRESS |
#define | NM_DEVICE_BRIDGE_CARRIER |
#define | NM_DEVICE_BRIDGE_SLAVES |
Functions
nm_device_bridge_error_quark ()
GQuark
nm_device_bridge_error_quark (void
);
Registers an error quark for NMDeviceBridge if necessary.
Since: 0.9.8
nm_device_bridge_new ()
GObject * nm_device_bridge_new (DBusGConnection *connection
,const char *path
);
Creates a new NMDeviceBridge.
Since: 0.9.8
nm_device_bridge_get_hw_address ()
const char *
nm_device_bridge_get_hw_address (NMDeviceBridge *device
);
Gets the hardware (MAC) address of the NMDeviceBridge
Returns
the hardware address. This is the internal string used by the device, and must not be modified.
Since: 0.9.8
nm_device_bridge_get_carrier ()
gboolean
nm_device_bridge_get_carrier (NMDeviceBridge *device
);
Whether the device has carrier.
Since: 0.9.8
nm_device_bridge_get_slaves ()
const GPtrArray *
nm_device_bridge_get_slaves (NMDeviceBridge *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]
Since: 0.9.8
Types and Values
enum NMDeviceBridgeError
Members
unknown or unclassified error |
||
the connection was not of bridge type |
||
the bridge connection was invalid |
||
the interfaces of the connection and the device mismatched |
Since: 0.9.8
Property Details
The “carrier”
property
“carrier” gboolean
Whether the device has carrier.
Owner: NMDeviceBridge
Flags: Read
Default value: FALSE
Since: 0.9.8
The “hw-address”
property
“hw-address” gchar *
The hardware (MAC) address of the device.
Owner: NMDeviceBridge
Flags: Read
Default value: NULL
Since: 0.9.8
The “slaves”
property
“slaves” NMObjectArray *
The devices (NMDevice) enslaved to the bridge device.
Owner: NMDeviceBridge
Flags: Read
Since: 0.9.8