|  |  |  | libnm-glib Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
enum NMDeviceBridgeError; #define NM_DEVICE_BRIDGE_ERROR GQuark nm_device_bridge_error_quark (void); #define NM_DEVICE_BRIDGE_HW_ADDRESS #define NM_DEVICE_BRIDGE_CARRIER #define NM_DEVICE_BRIDGE_SLAVES NMDeviceBridge; NMDeviceBridgeClass; GObject * nm_device_bridge_new (DBusGConnection *connection,const char *path); const char * nm_device_bridge_get_hw_address (NMDeviceBridge *device); gboolean nm_device_bridge_get_carrier (NMDeviceBridge *device); const GPtrArray * nm_device_bridge_get_slaves (NMDeviceBridge *device);
typedef enum {
	NM_DEVICE_BRIDGE_ERROR_UNKNOWN = 0,               /*< nick=UnknownError >*/
	NM_DEVICE_BRIDGE_ERROR_NOT_BRIDGE_CONNECTION,     /*< nick=NotBridgeConnection >*/
	NM_DEVICE_BRIDGE_ERROR_INVALID_BRIDGE_CONNECTION, /*< nick=InvalidBridgeConnection >*/
	NM_DEVICE_BRIDGE_ERROR_INTERFACE_MISMATCH,        /*< nick=InterfaceMismatch >*/
} NMDeviceBridgeError;
| 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
GQuark              nm_device_bridge_error_quark        (void);
Registers an error quark for NMDeviceBridge if necessary.
| Returns : | the error quark used for NMDeviceBridge errors. | 
Since 0.9.8
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);
} NMDeviceBridgeClass;
GObject * nm_device_bridge_new (DBusGConnection *connection,const char *path);
Creates a new NMDeviceBridge.
| 
 | the DBusGConnection | 
| 
 | the DBus object path of the device | 
| Returns : | a new device. [transfer full] | 
Since 0.9.8
const char *        nm_device_bridge_get_hw_address     (NMDeviceBridge *device);
Gets the hardware (MAC) address of the NMDeviceBridge
| 
 | a NMDeviceBridge | 
| Returns : | the hardware address. This is the internal string used by the device, and must not be modified. | 
Since 0.9.8
gboolean            nm_device_bridge_get_carrier        (NMDeviceBridge *device);
Whether the device has carrier.
| 
 | a NMDeviceBridge | 
| Returns : | TRUEif the device has carrier | 
Since 0.9.8
const GPtrArray *   nm_device_bridge_get_slaves         (NMDeviceBridge *device);
Gets the devices currently slaved to device.
| 
 | a NMDeviceBridge | 
| 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 NMClient.Device] | 
Since 0.9.8
"carrier" property"carrier" gboolean : Read
Whether the device has carrier.
Default value: FALSE
Since 0.9.8
"hw-address" property"hw-address" gchar* : Read
The hardware (MAC) address of the device.
Default value: NULL
Since 0.9.8
"slaves" property  "slaves"                   NMObjectArray*        : Read
The devices (NMDevice) slaved to the bridge device.
Since 0.9.8