/** * nm_device_vlan_get_parent: * @device: a #NMDeviceVlan * * Returns: (transfer none): the device's parent device **/ NMDevice * nm_device_vlan_get_parent (NMDeviceVlan *device) { g_return_val_if_fail (NM_IS_DEVICE_VLAN (device), FALSE); return NM_DEVICE_VLAN_GET_PRIVATE (device)->parent; }
/** * nm_device_vlan_get_carrier: * @device: a #NMDeviceVlan * * Whether the device has carrier. * * Returns: %TRUE if the device has carrier **/ gboolean nm_device_vlan_get_carrier (NMDeviceVlan *device) { g_return_val_if_fail (NM_IS_DEVICE_VLAN (device), FALSE); return NM_DEVICE_VLAN_GET_PRIVATE (device)->carrier; }
/** * nm_device_vlan_get_hw_address: * @device: a #NMDeviceVlan * * Gets the hardware (MAC) address of the #NMDeviceVlan * * Returns: the hardware address. This is the internal string used by the * device, and must not be modified. **/ const char * nm_device_vlan_get_hw_address (NMDeviceVlan *device) { g_return_val_if_fail (NM_IS_DEVICE_VLAN (device), NULL); return nm_str_not_empty (NM_DEVICE_VLAN_GET_PRIVATE (device)->hw_address); }
/** * nm_device_vlan_get_vlan_id: * @device: a #NMDeviceVlan * * Returns: the device's VLAN ID **/ guint nm_device_vlan_get_vlan_id (NMDeviceVlan *device) { g_return_val_if_fail (NM_IS_DEVICE_VLAN (device), FALSE); return NM_DEVICE_VLAN_GET_PRIVATE (device)->vlan_id; }
/** * nm_device_vlan_get_vlan_id: * @device: a #NMDeviceVlan * * Returns: the device's VLAN ID **/ guint nm_device_vlan_get_vlan_id (NMDeviceVlan *device) { g_return_val_if_fail (NM_IS_DEVICE_VLAN (device), FALSE); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_VLAN_GET_PRIVATE (device)->vlan_id; }
/** * nm_device_vlan_get_carrier: * @device: a #NMDeviceVlan * * Whether the device has carrier. * * Returns: %TRUE if the device has carrier **/ gboolean nm_device_vlan_get_carrier (NMDeviceVlan *device) { g_return_val_if_fail (NM_IS_DEVICE_VLAN (device), FALSE); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_VLAN_GET_PRIVATE (device)->carrier; }
/** * nm_device_vlan_get_hw_address: * @device: a #NMDeviceVlan * * Gets the hardware (MAC) address of the #NMDeviceVlan * * Returns: the hardware address. This is the internal string used by the * device, and must not be modified. **/ const char * nm_device_vlan_get_hw_address (NMDeviceVlan *device) { g_return_val_if_fail (NM_IS_DEVICE_VLAN (device), NULL); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_VLAN_GET_PRIVATE (device)->hw_address; }