/** * nm_device_modem_get_modem_capabilities: * @self: a #NMDeviceModem * * Returns a bitfield of the generic access technology families the modem * supports. Not all capabilities are available concurrently however; some * may require a firmware reload or reinitialization. * * Returns: the generic access technology families the modem supports **/ NMDeviceModemCapabilities nm_device_modem_get_modem_capabilities (NMDeviceModem *self) { g_return_val_if_fail (NM_IS_DEVICE_MODEM (self), NM_DEVICE_MODEM_CAPABILITY_NONE); _nm_object_ensure_inited (NM_OBJECT (self)); return NM_DEVICE_MODEM_GET_PRIVATE (self)->caps; }
/** * nm_dhcp6_config_get_options: * @config: a #NMDHCP6Config * * Gets all the options contained in the configuration. * * Returns: (transfer none) (element-type utf8 GObject.Value): the #GHashTable containing strings for keys and values. * This is the internal copy used by the configuration, and must not be modified. **/ GHashTable * nm_dhcp6_config_get_options (NMDHCP6Config *config) { g_return_val_if_fail (NM_IS_DHCP6_CONFIG (config), NULL); _nm_object_ensure_inited (NM_OBJECT (config)); return NM_DHCP6_CONFIG_GET_PRIVATE (config)->options; }
/** * nm_device_bt_get_name: * @device: a #NMDeviceBt * * Gets the name of the #NMDeviceBt. * * Returns: the name of the device **/ const char * nm_device_bt_get_name (NMDeviceBt *device) { g_return_val_if_fail (NM_IS_DEVICE_BT (device), NULL); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_BT_GET_PRIVATE (device)->name; }
/** * nm_device_adsl_get_carrier: * @device: a #NMDeviceAdsl * * Whether the device has carrier. * * Returns: %TRUE if the device has carrier **/ gboolean nm_device_adsl_get_carrier (NMDeviceAdsl *device) { g_return_val_if_fail (NM_IS_DEVICE_ADSL (device), FALSE); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_ADSL_GET_PRIVATE (device)->carrier; }
/** * nm_ip4_config_get_wins_servers: * @config: a #NMIP4Config * * Gets the Windows Internet Name Service servers (WINS). * * Returns: (element-type guint32): the #GArray containing %guint32<!-- -->s. * This is the internal copy used by the configuration and must not be modified. **/ const GArray * nm_ip4_config_get_wins_servers (NMIP4Config *config) { g_return_val_if_fail (NM_IS_IP4_CONFIG (config), NULL); _nm_object_ensure_inited (NM_OBJECT (config)); return NM_IP4_CONFIG_GET_PRIVATE (config)->wins; }
/** * nm_device_ethernet_get_carrier: * @device: a #NMDeviceEthernet * * Whether the device has carrier. * * Returns: %TRUE if the device has carrier **/ gboolean nm_device_ethernet_get_carrier (NMDeviceEthernet *device) { g_return_val_if_fail (NM_IS_DEVICE_ETHERNET (device), FALSE); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_ETHERNET_GET_PRIVATE (device)->carrier; }
/** * nm_device_olpc_mesh_get_companion: * @device: a #NMDeviceOlpcMesh * * Gets the companion device of the #NMDeviceOlpcMesh. * * Returns: (transfer none): the companion of the device of %NULL **/ NMDeviceWifi * nm_device_olpc_mesh_get_companion (NMDeviceOlpcMesh *device) { g_return_val_if_fail (NM_IS_DEVICE_OLPC_MESH (device), NULL); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_OLPC_MESH_GET_PRIVATE (device)->companion; }
/** * nm_access_point_get_rsn_flags: * @ap: a #NMAccessPoint * * Gets the RSN (Robust Secure Network, ie WPA version 2) flags of the access * point. * * Returns: the RSN flags **/ NM80211ApSecurityFlags nm_access_point_get_rsn_flags (NMAccessPoint *ap) { g_return_val_if_fail (NM_IS_ACCESS_POINT (ap), NM_802_11_AP_SEC_NONE); _nm_object_ensure_inited (NM_OBJECT (ap)); return NM_ACCESS_POINT_GET_PRIVATE (ap)->rsn_flags; }
/** * nm_access_point_get_bssid: * @ap: a #NMAccessPoint * * Gets the Basic Service Set ID (BSSID) of the Wi-Fi access point. * * Returns: the BSSID of the access point. This is an internal string and must * not be modified or freed. **/ const char * nm_access_point_get_bssid (NMAccessPoint *ap) { g_return_val_if_fail (NM_IS_ACCESS_POINT (ap), NULL); _nm_object_ensure_inited (NM_OBJECT (ap)); return NM_ACCESS_POINT_GET_PRIVATE (ap)->bssid; }
/** * 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; }
static const char * get_type_description (NMDevice *device) { NMDeviceGenericPrivate *priv = NM_DEVICE_GENERIC_GET_PRIVATE (device); _nm_object_ensure_inited (NM_OBJECT (device)); return priv->type_description; }
/** * nm_wimax_nsp_get_signal_quality: * @nsp: a #NMWimaxNsp * * Gets the WPA signal quality of the wimax NSP. * * Returns: the signal quality **/ guint32 nm_wimax_nsp_get_signal_quality (NMWimaxNsp *nsp) { g_return_val_if_fail (NM_IS_WIMAX_NSP (nsp), 0); _nm_object_ensure_inited (NM_OBJECT (nsp)); return NM_WIMAX_NSP_GET_PRIVATE (nsp)->signal_quality; }
/** * nm_wimax_nsp_get_name: * @nsp: a #NMWimaxNsp * * Gets the name of the wimax NSP * * Returns: the name **/ const char * nm_wimax_nsp_get_name (NMWimaxNsp *nsp) { g_return_val_if_fail (NM_IS_WIMAX_NSP (nsp), NULL); _nm_object_ensure_inited (NM_OBJECT (nsp)); return NM_WIMAX_NSP_GET_PRIVATE (nsp)->name; }
/** * nm_wimax_nsp_get_network_type: * @nsp: a #NMWimaxNsp * * Gets the network type of the wimax NSP. * * Returns: the network type **/ NMWimaxNspNetworkType nm_wimax_nsp_get_network_type (NMWimaxNsp *nsp) { g_return_val_if_fail (NM_IS_WIMAX_NSP (nsp), NM_WIMAX_NSP_NETWORK_TYPE_UNKNOWN); _nm_object_ensure_inited (NM_OBJECT (nsp)); return NM_WIMAX_NSP_GET_PRIVATE (nsp)->network_type; }
/** * nm_device_ethernet_get_permanent_hw_address: * @device: a #NMDeviceEthernet * * Gets the permanent hardware (MAC) address of the #NMDeviceEthernet * * Returns: the permanent hardware address. This is the internal string used by the * device, and must not be modified. **/ const char * nm_device_ethernet_get_permanent_hw_address (NMDeviceEthernet *device) { g_return_val_if_fail (NM_IS_DEVICE_ETHERNET (device), NULL); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_ETHERNET_GET_PRIVATE (device)->perm_hw_address; }
/** * nm_access_point_get_mode: * @ap: a #NMAccessPoint * * Gets the mode of the access point. * * Returns: the mode **/ NM80211Mode nm_access_point_get_mode (NMAccessPoint *ap) { g_return_val_if_fail (NM_IS_ACCESS_POINT (ap), 0); _nm_object_ensure_inited (NM_OBJECT (ap)); return NM_ACCESS_POINT_GET_PRIVATE (ap)->mode; }
/** * nm_device_ethernet_get_speed: * @device: a #NMDeviceEthernet * * Gets the speed of the #NMDeviceEthernet. * * Returns: the speed of the device **/ guint32 nm_device_ethernet_get_speed (NMDeviceEthernet *device) { g_return_val_if_fail (NM_IS_DEVICE_ETHERNET (device), 0); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_ETHERNET_GET_PRIVATE (device)->speed; }
/** * nm_access_point_get_max_bitrate: * @ap: a #NMAccessPoint * * Gets the maximum bit rate of the access point in kbit/s. * * Returns: the maximum bit rate (kbit/s) **/ guint32 nm_access_point_get_max_bitrate (NMAccessPoint *ap) { g_return_val_if_fail (NM_IS_ACCESS_POINT (ap), 0); _nm_object_ensure_inited (NM_OBJECT (ap)); return NM_ACCESS_POINT_GET_PRIVATE (ap)->max_bitrate; }
/** * nm_device_olpc_mesh_get_hw_address: * @device: a #NMDeviceOlpcMesh * * Gets the hardware (MAC) address of the #NMDeviceOlpcMesh * * Returns: the hardware address. This is the internal string used by the * device, and must not be modified. **/ const char * nm_device_olpc_mesh_get_hw_address (NMDeviceOlpcMesh *device) { g_return_val_if_fail (NM_IS_DEVICE_OLPC_MESH (device), NULL); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_OLPC_MESH_GET_PRIVATE (device)->hw_address; }
/** * nm_access_point_get_strength: * @ap: a #NMAccessPoint * * Gets the current signal strength of the access point. * * Returns: the signal strength **/ guint8 nm_access_point_get_strength (NMAccessPoint *ap) { g_return_val_if_fail (NM_IS_ACCESS_POINT (ap), 0); _nm_object_ensure_inited (NM_OBJECT (ap)); return NM_ACCESS_POINT_GET_PRIVATE (ap)->strength; }
/** * nm_device_olpc_mesh_get_active_channel: * @device: a #NMDeviceOlpcMesh * * Returns the active channel of the #NMDeviceOlpcMesh device. * * Returns: active channel of the device **/ guint32 nm_device_olpc_mesh_get_active_channel (NMDeviceOlpcMesh *device) { g_return_val_if_fail (NM_IS_DEVICE_OLPC_MESH (device), 0); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_OLPC_MESH_GET_PRIVATE (device)->active_channel; }
/** * nm_access_point_get_last_seen: * @ap: a #NMAccessPoint * * Returns the timestamp (in CLOCK_BOOTTIME seconds) for the last time the * access point was found in scan results. A value of -1 means the access * point has not been found in a scan. * * Returns: the last seen time in seconds * * Since: 1.2 **/ gint nm_access_point_get_last_seen (NMAccessPoint *ap) { g_return_val_if_fail (NM_IS_ACCESS_POINT (ap), -1); _nm_object_ensure_inited (NM_OBJECT (ap)); return NM_ACCESS_POINT_GET_PRIVATE (ap)->last_seen; }
/** * nm_ip4_config_get_domains: * @config: a #NMIP4Config * * Gets the domain names. * * Returns: (element-type utf8): the #GPtrArray containing domains as strings. This is the * internal copy used by the configuration, and must not be modified. **/ const GPtrArray * nm_ip4_config_get_domains (NMIP4Config *config) { g_return_val_if_fail (NM_IS_IP4_CONFIG (config), NULL); _nm_object_ensure_inited (NM_OBJECT (config)); return handle_ptr_array_return (NM_IP4_CONFIG_GET_PRIVATE (config)->domains); }
/** * 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. * * Since: 0.9.10 **/ const char * nm_device_team_get_hw_address (NMDeviceTeam *device) { g_return_val_if_fail (NM_IS_DEVICE_TEAM (device), NULL); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_TEAM_GET_PRIVATE (device)->hw_address; }
/** * nm_ip4_config_get_routes: * @config: a #NMIP4Config * * Gets the routes. * * Returns: (element-type NetworkManager.IP4Route): the #GSList containing * #NMIP4Route<!-- -->s. This is the internal copy used by the configuration, * and must not be modified. **/ const GSList * nm_ip4_config_get_routes (NMIP4Config *config) { g_return_val_if_fail (NM_IS_IP4_CONFIG (config), NULL); _nm_object_ensure_inited (NM_OBJECT (config)); return NM_IP4_CONFIG_GET_PRIVATE (config)->routes; }
/** * nm_device_team_get_carrier: * @device: a #NMDeviceTeam * * Whether the device has carrier. * * Returns: %TRUE if the device has carrier * * Since: 0.9.10 **/ gboolean nm_device_team_get_carrier (NMDeviceTeam *device) { g_return_val_if_fail (NM_IS_DEVICE_TEAM (device), FALSE); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_TEAM_GET_PRIVATE (device)->carrier; }
/** * nm_vpn_connection_get_vpn_state: * @vpn: a #NMVPNConnection * * Gets the current #NMVPNConnection state. * * Returns: the VPN state of the active VPN connection. **/ NMVPNConnectionState nm_vpn_connection_get_vpn_state (NMVPNConnection *vpn) { g_return_val_if_fail (NM_IS_VPN_CONNECTION (vpn), NM_VPN_CONNECTION_STATE_UNKNOWN); _nm_object_ensure_inited (NM_OBJECT (vpn)); return NM_VPN_CONNECTION_GET_PRIVATE (vpn)->vpn_state; }
/** * nm_device_team_get_slaves: * @device: a #NMDeviceTeam * * Gets the devices currently enslaved to @device. * * Returns: (element-type NMDevice): the #GPtrArray containing * #NMDevices that are slaves of @device. This is the internal * copy used by the device, and must not be modified. * * Since: 0.9.10 **/ const GPtrArray * nm_device_team_get_slaves (NMDeviceTeam *device) { g_return_val_if_fail (NM_IS_DEVICE_TEAM (device), FALSE); _nm_object_ensure_inited (NM_OBJECT (device)); return handle_ptr_array_return (NM_DEVICE_TEAM_GET_PRIVATE (device)->slaves); }
/** * nm_device_bt_get_capabilities: * @device: a #NMDeviceBt * * Returns the Bluetooth device's usable capabilities. * * Returns: a combination of #NMBluetoothCapabilities **/ NMBluetoothCapabilities nm_device_bt_get_capabilities (NMDeviceBt *device) { g_return_val_if_fail (NM_IS_DEVICE_BT (device), NM_BT_CAPABILITY_NONE); _nm_object_ensure_inited (NM_OBJECT (device)); return NM_DEVICE_BT_GET_PRIVATE (device)->bt_capabilities; }
/** * nm_device_wimax_get_bsid: * @self: a #NMDeviceWimax * * Gets the ID of the serving Base Station when the device is connected. * * Returns: the ID of the serving Base Station, or %NULL * * Deprecated: 1.2: WiMAX is no longer supported. **/ const char * nm_device_wimax_get_bsid (NMDeviceWimax *self) { g_return_val_if_fail (NM_IS_DEVICE_WIMAX (self), NULL); _nm_object_ensure_inited (NM_OBJECT (self)); return NM_DEVICE_WIMAX_GET_PRIVATE (self)->bsid; }