![]() |
![]() |
![]() |
libnm-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
NMDeviceBond; NMDeviceBondClass; enum NMDeviceBondError; #define NM_DEVICE_BOND_CARRIER #define NM_DEVICE_BOND_ERROR #define NM_DEVICE_BOND_HW_ADDRESS #define NM_DEVICE_BOND_SLAVES GQuark nm_device_bond_error_quark (void
); gboolean nm_device_bond_get_carrier (NMDeviceBond *device
); const char * nm_device_bond_get_hw_address (NMDeviceBond *device
); const GPtrArray * nm_device_bond_get_slaves (NMDeviceBond *device
); GObject * nm_device_bond_new (DBusGConnection *connection
,const char *path
);
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); } NMDeviceBondClass;
typedef enum { NM_DEVICE_BOND_ERROR_UNKNOWN = 0, /*< nick=UnknownError >*/ NM_DEVICE_BOND_ERROR_NOT_BOND_CONNECTION, /*< nick=NotBondConnection >*/ NM_DEVICE_BOND_ERROR_INVALID_BOND_CONNECTION, /*< nick=InvalidBondConnection >*/ NM_DEVICE_BOND_ERROR_INTERFACE_MISMATCH, /*< nick=InterfaceMismatch >*/ } NMDeviceBondError;
unknown or unclassified error | |
the connection was not of bond type | |
the bond connection was invalid | |
the interfaces of the connection and the device mismatched |
GQuark nm_device_bond_error_quark (void
);
Registers an error quark for NMDeviceBond if necessary.
Returns : |
the error quark used for NMDeviceBond errors. |
gboolean nm_device_bond_get_carrier (NMDeviceBond *device
);
Whether the device has carrier.
|
a NMDeviceBond |
Returns : |
TRUE if the device has carrier |
const char * nm_device_bond_get_hw_address (NMDeviceBond *device
);
Gets the hardware (MAC) address of the NMDeviceBond
|
a NMDeviceBond |
Returns : |
the hardware address. This is the internal string used by the device, and must not be modified. |
const GPtrArray * nm_device_bond_get_slaves (NMDeviceBond *device
);
Gets the devices currently slaved to device
.
|
a NMDeviceBond |
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.6.4
GObject * nm_device_bond_new (DBusGConnection *connection
,const char *path
);
Creates a new NMDeviceBond.
|
the DBusGConnection |
|
the DBus object path of the device |
Returns : |
a new device. [transfer full] |
"carrier"
property"carrier" gboolean : Read
Whether the device has carrier.
Default value: FALSE
"hw-address"
property"hw-address" gchar* : Read
The hardware (MAC) address of the device.
Default value: NULL
"slaves"
property "slaves" NMObjectArray* : Read
The devices (NMDevice) slaved to the bond device.
Since 0.9.8