/** * nm_device_team_get_hw_address: * @device: a #NMDeviceTeam * * Gets the hardware (MAC) address of the #NMDeviceTeam * * Returns: the hardware address. This is the internal string used by the * device, and must not be modified. **/ const char * nm_device_team_get_hw_address (NMDeviceTeam *device) { g_return_val_if_fail (NM_IS_DEVICE_TEAM (device), NULL); return nm_str_not_empty (NM_DEVICE_TEAM_GET_PRIVATE (device)->hw_address); }
/** * nm_device_bond_get_hw_address: * @device: a #NMDeviceBond * * Gets the hardware (MAC) address of the #NMDeviceBond * * Returns: the hardware address. This is the internal string used by the * device, and must not be modified. **/ const char * nm_device_bond_get_hw_address (NMDeviceBond *device) { g_return_val_if_fail (NM_IS_DEVICE_BOND (device), NULL); return nm_str_not_empty (NM_DEVICE_BOND_GET_PRIVATE (device)->hw_address); }
/** * nm_device_tun_get_mode: * @device: a #NMDeviceTun * * Returns the TUN/TAP mode for the device. * * Returns: 'tun' or 'tap' * * Since: 1.2 **/ const char * nm_device_tun_get_mode (NMDeviceTun *device) { g_return_val_if_fail (NM_IS_DEVICE_TUN (device), NULL); return nm_str_not_empty (NM_DEVICE_TUN_GET_PRIVATE (device)->mode); }
/** * nm_device_infiniband_get_hw_address: * @device: a #NMDeviceInfiniband * * Gets the hardware (MAC) address of the #NMDeviceInfiniband * * Returns: the hardware address. This is the internal string used by the * device, and must not be modified. **/ const char * nm_device_infiniband_get_hw_address (NMDeviceInfiniband *device) { g_return_val_if_fail (NM_IS_DEVICE_INFINIBAND (device), NULL); return nm_str_not_empty (NM_DEVICE_INFINIBAND_GET_PRIVATE (device)->hw_address); }
/** * nm_vpn_connection_get_banner: * @vpn: a #NMVpnConnection * * Gets the VPN login banner of the active #NMVpnConnection. * * Returns: the VPN login banner of the VPN connection. This is the internal * string used by the connection, and must not be modified. **/ const char * nm_vpn_connection_get_banner (NMVpnConnection *vpn) { NMVpnConnectionPrivate *priv; g_return_val_if_fail (NM_IS_VPN_CONNECTION (vpn), NULL); priv = NM_VPN_CONNECTION_GET_PRIVATE (vpn); if (priv->vpn_state != NM_VPN_CONNECTION_STATE_ACTIVATED) return NULL; return nm_str_not_empty (priv->banner); }