![]() |
![]() |
![]() |
libnm-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
enum NMDeviceVlanError; #define NM_DEVICE_VLAN_ERROR GQuark nm_device_vlan_error_quark (void
); #define NM_DEVICE_VLAN_HW_ADDRESS #define NM_DEVICE_VLAN_CARRIER #define NM_DEVICE_VLAN_PARENT #define NM_DEVICE_VLAN_VLAN_ID GObject * nm_device_vlan_new (DBusGConnection *connection
,const char *path
); const char * nm_device_vlan_get_hw_address (NMDeviceVlan *device
); gboolean nm_device_vlan_get_carrier (NMDeviceVlan *device
); NMDevice * nm_device_vlan_get_parent (NMDeviceVlan *device
); guint nm_device_vlan_get_vlan_id (NMDeviceVlan *device
);
typedef enum { NM_DEVICE_VLAN_ERROR_UNKNOWN = 0, /*< nick=UnknownError >*/ NM_DEVICE_VLAN_ERROR_NOT_VLAN_CONNECTION, /*< nick=NotVlanConnection >*/ NM_DEVICE_VLAN_ERROR_INVALID_VLAN_CONNECTION, /*< nick=InvalidVlanConnection >*/ NM_DEVICE_VLAN_ERROR_ID_MISMATCH, /*< nick=IdMismatch >*/ NM_DEVICE_VLAN_ERROR_INTERFACE_MISMATCH, /*< nick=InterfaceMismatch >*/ NM_DEVICE_VLAN_ERROR_MAC_MISMATCH, /*< nick=MacMismatch >*/ } NMDeviceVlanError;
unknown or unclassified error | |
the connection was not of VLAN type | |
the VLAN connection was invalid | |
the VLAN identifiers of the connection and the device mismatched | |
the interfaces of the connection and the device mismatched | |
the MACs of the connection and the device mismatched |
GQuark nm_device_vlan_error_quark (void
);
Registers an error quark for NMDeviceVlan if necessary.
Returns : |
the error quark used for NMDeviceVlan errors. |
GObject * nm_device_vlan_new (DBusGConnection *connection
,const char *path
);
Creates a new NMDeviceVlan.
|
the DBusGConnection |
|
the DBus object path of the device |
Returns : |
a new device. [transfer full] |
const char * nm_device_vlan_get_hw_address (NMDeviceVlan *device
);
Gets the hardware (MAC) address of the NMDeviceVlan
|
a NMDeviceVlan |
Returns : |
the hardware address. This is the internal string used by the device, and must not be modified. |
gboolean nm_device_vlan_get_carrier (NMDeviceVlan *device
);
Whether the device has carrier.
|
a NMDeviceVlan |
Returns : |
TRUE if the device has carrier |
NMDevice * nm_device_vlan_get_parent (NMDeviceVlan *device
);
|
a NMDeviceVlan |
Returns : |
the device's parent device. [transfer none] |
Since 1.0