NMDeviceBond

NMDeviceBond

Synopsis

#define             NM_DEVICE_BOND_HW_ADDRESS
#define             NM_DEVICE_BOND_CARRIER
#define             NM_DEVICE_BOND_SLAVES
                    NMDeviceBond;
GObject *           nm_device_bond_new                  (DBusGConnection *connection,
                                                         const char *path);
const char *        nm_device_bond_get_hw_address       (NMDeviceBond *device);
gboolean            nm_device_bond_get_carrier          (NMDeviceBond *device);
const GPtrArray *   nm_device_bond_get_slaves           (NMDeviceBond *device);

Object Hierarchy

  GObject
   +----NMObject
         +----NMDevice
               +----NMDeviceBond

Properties

  "carrier"                  gboolean              : Read
  "hw-address"               gchar*                : Read
  "slaves"                   nm-object-array*      : Read

Description

Details

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;


nm_device_bond_new ()

GObject *           nm_device_bond_new                  (DBusGConnection *connection,
                                                         const char *path);

Creates a new NMDeviceBond.

connection :

the DBusGConnection

path :

the DBus object path of the device

Returns :

a new device. transfer full.

nm_device_bond_get_hw_address ()

const char *        nm_device_bond_get_hw_address       (NMDeviceBond *device);

Gets the hardware (MAC) address of the NMDeviceBond

device :

a 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.

device :

a NMDeviceBond

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 slaved to device.

device :

a NMDeviceBond

Returns :

element-type NMClient.Device. element-type NMClient.Device.

Property Details

The "carrier" property

  "carrier"                  gboolean              : Read

Whether the device has carrier.

Default value: FALSE


The "hw-address" property

  "hw-address"               gchar*                : Read

The hardware (MAC) address of the device.

Default value: NULL


The "slaves" property

  "slaves"                   nm-object-array*      : Read

The devices (NMDevice) slaved to the bond device.