## NMDeviceInfiniband

NMDeviceInfiniband

## Synopsis

    enum                NMDeviceInfinibandError;
    #define             NM_DEVICE_INFINIBAND_ERROR
    GQuark              nm_device_infiniband_error_quark    (void);
    #define             NM_DEVICE_INFINIBAND_HW_ADDRESS
    #define             NM_DEVICE_INFINIBAND_CARRIER
                        NMDeviceInfiniband;
                        NMDeviceInfinibandClass;
    GObject *           nm_device_infiniband_new            (DBusGConnection *connection,
                                                             const char *path);
    const char *        nm_device_infiniband_get_hw_address (NMDeviceInfiniband *device);
    gboolean            nm_device_infiniband_get_carrier    (NMDeviceInfiniband *device);

## Object Hierarchy

      GObject
       +----NMObject
             +----NMDevice
                   +----NMDeviceInfiniband

## Implemented Interfaces

NMDeviceInfiniband implements GInitable and GAsyncInitable.

## Properties

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

## Description

## Details

### enum NMDeviceInfinibandError

    typedef enum {
    	NM_DEVICE_INFINIBAND_ERROR_UNKNOWN = 0,                   /*< nick=UnknownError >*/
    	NM_DEVICE_INFINIBAND_ERROR_NOT_INFINIBAND_CONNECTION,     /*< nick=NotInfinibandConnection >*/
    	NM_DEVICE_INFINIBAND_ERROR_INVALID_INFINIBAND_CONNECTION, /*< nick=InvalidInfinibandConnection >*/
    	NM_DEVICE_INFINIBAND_ERROR_INVALID_DEVICE_MAC,            /*< nick=InvalidDeviceMac >*/
    	NM_DEVICE_INFINIBAND_ERROR_MAC_MISMATCH,                  /*< nick=MacMismatch >*/
    } NMDeviceInfinibandError;

`NM_DEVICE_INFINIBAND_ERROR_UNKNOWN` | unknown or unclassified error
`NM_DEVICE_INFINIBAND_ERROR_NOT_INFINIBAND_CONNECTION` | the connection was not of InfiniBand type
`NM_DEVICE_INFINIBAND_ERROR_INVALID_INFINIBAND_CONNECTION` | the InfiniBand connection was invalid
`NM_DEVICE_INFINIBAND_ERROR_INVALID_DEVICE_MAC` | the device's MAC was invalid
`NM_DEVICE_INFINIBAND_ERROR_MAC_MISMATCH` | the MACs of the connection and the device mismatched

### NM_DEVICE_INFINIBAND_ERROR

    #define NM_DEVICE_INFINIBAND_ERROR nm_device_infiniband_error_quark ()

### nm_device_infiniband_error_quark ()

    GQuark              nm_device_infiniband_error_quark    (void);

Registers an error quark for NMDeviceInfiniband if necessary.

Returns : | the error quark used for NMDeviceInfiniband errors.

### NM_DEVICE_INFINIBAND_HW_ADDRESS

    #define NM_DEVICE_INFINIBAND_HW_ADDRESS  "hw-address"

### NM_DEVICE_INFINIBAND_CARRIER

    #define NM_DEVICE_INFINIBAND_CARRIER     "carrier"

### NMDeviceInfiniband

    typedef struct _NMDeviceInfiniband NMDeviceInfiniband;

### NMDeviceInfinibandClass

    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);
    } NMDeviceInfinibandClass;

### nm_device_infiniband_new ()

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

Creates a new NMDeviceInfiniband.

`connection` : | the DBusGConnection
`path` : | the DBus object path of the device
Returns : | a new device. [transfer full]

### nm_device_infiniband_get_hw_address ()

    const char *        nm_device_infiniband_get_hw_address (NMDeviceInfiniband *device);

Gets the hardware (MAC) address of the NMDeviceInfiniband

`device` : | a NMDeviceInfiniband
Returns : | the hardware address. This is the internal string used by the device, and must not be modified.

### nm_device_infiniband_get_carrier ()

    gboolean            nm_device_infiniband_get_carrier    (NMDeviceInfiniband *device);

Whether the device has carrier.

`device` : | a NMDeviceInfiniband
Returns : | `TRUE` if the device has carrier

## 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