/** * nm_device_generic_get_hw_address: * @device: a #NMDeviceGeneric * * Gets the hardware address of the #NMDeviceGeneric * * Returns: the hardware address. This is the internal string used by the * device, and must not be modified. **/ const char * nm_device_generic_get_hw_address (NMDeviceGeneric *device) { g_return_val_if_fail (NM_IS_DEVICE_GENERIC (device), NULL); return nm_str_not_empty (NM_DEVICE_GENERIC_GET_PRIVATE (device)->hw_address); }
/** * nm_device_generic_get_hw_address: * @device: a #NMDeviceGeneric * * Gets the hardware address of the #NMDeviceGeneric * * Returns: the hardware address. This is the internal string used by the * device, and must not be modified. * * Since: 0.9.10 **/ const char * nm_device_generic_get_hw_address (NMDeviceGeneric *device) { g_return_val_if_fail (NM_IS_DEVICE_GENERIC (device), NULL); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_GENERIC_GET_PRIVATE (device)->hw_address; }