NMDeviceBond

NMDeviceBond

Synopsis

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

Object Hierarchy

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

Properties

  "carrier"                  gboolean              : Read
  "hw-address"               gchar*                : Read

Description

Details

NMDeviceBond

typedef struct _NMDeviceBond NMDeviceBond;


NMDeviceBondClass

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;


NM_DEVICE_BOND_CARRIER

#define NM_DEVICE_BOND_CARRIER     "carrier"


NM_DEVICE_BOND_HW_ADDRESS

#define NM_DEVICE_BOND_HW_ADDRESS  "hw-address"


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

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