Top | ![]() |
![]() |
![]() |
![]() |
GQuark | nm_device_wifi_error_quark () |
GObject * | nm_device_wifi_new () |
const char * | nm_device_wifi_get_hw_address () |
const char * | nm_device_wifi_get_permanent_hw_address () |
NM80211Mode | nm_device_wifi_get_mode () |
guint32 | nm_device_wifi_get_bitrate () |
NMDeviceWifiCapabilities | nm_device_wifi_get_capabilities () |
NMAccessPoint * | nm_device_wifi_get_active_access_point () |
NMAccessPoint * | nm_device_wifi_get_access_point_by_path () |
const GPtrArray * | nm_device_wifi_get_access_points () |
void | (*NMDeviceWifiRequestScanFn) () |
void | nm_device_wifi_request_scan_simple () |
NMObjectArray * | access-points | Read |
NMAccessPoint * | active-access-point | Read |
guint | bitrate | Read |
gchar * | hw-address | Read |
guint | mode | Read |
gchar * | perm-hw-address | Read |
guint | wireless-capabilities | Read |
enum | NMDeviceWifiError |
#define | NM_DEVICE_WIFI_ERROR |
#define | NM_DEVICE_WIFI_HW_ADDRESS |
#define | NM_DEVICE_WIFI_PERMANENT_HW_ADDRESS |
#define | NM_DEVICE_WIFI_MODE |
#define | NM_DEVICE_WIFI_BITRATE |
#define | NM_DEVICE_WIFI_ACTIVE_ACCESS_POINT |
#define | NM_DEVICE_WIFI_CAPABILITIES |
#define | NM_DEVICE_WIFI_ACCESS_POINTS |
GQuark
nm_device_wifi_error_quark (void
);
Registers an error quark for NMDeviceWifi if necessary.
GObject * nm_device_wifi_new (DBusGConnection *connection
,const char *path
);
Creates a new NMDeviceWifi.
const char *
nm_device_wifi_get_hw_address (NMDeviceWifi *device
);
Gets the actual hardware (MAC) address of the NMDeviceWifi
const char *
nm_device_wifi_get_permanent_hw_address
(NMDeviceWifi *device
);
Gets the permanent hardware (MAC) address of the NMDeviceWifi
NM80211Mode
nm_device_wifi_get_mode (NMDeviceWifi *device
);
Gets the NMDeviceWifi mode.
guint32
nm_device_wifi_get_bitrate (NMDeviceWifi *device
);
Gets the bit rate of the NMDeviceWifi in kbit/s.
NMDeviceWifiCapabilities
nm_device_wifi_get_capabilities (NMDeviceWifi *device
);
Gets the Wi-Fi capabilities of the NMDeviceWifi.
NMAccessPoint *
nm_device_wifi_get_active_access_point
(NMDeviceWifi *device
);
Gets the active NMAccessPoint.
NMAccessPoint * nm_device_wifi_get_access_point_by_path (NMDeviceWifi *device
,const char *path
);
Gets a NMAccessPoint by path.
const GPtrArray *
nm_device_wifi_get_access_points (NMDeviceWifi *device
);
Gets all the scanned access points of the NMDeviceWifi.
a GPtrArray containing all the scanned NMAccessPoints. The returned array is owned by the client and should not be modified.
[element-type NMAccessPoint]
void (*NMDeviceWifiRequestScanFn) (NMDeviceWifi *device
,GError *error
,gpointer user_data
);
void nm_device_wifi_request_scan_simple (NMDeviceWifi *device
,NMDeviceWifiRequestScanFn callback
,gpointer user_data
);
Request NM to scan for access points on the NMDeviceWifi. This function only
instructs NM to perform scanning. Use nm_device_wifi_get_access_points()
to get available access points.
device |
||
callback |
the function to call when the call is done. |
[scope async][allow-none] |
user_data |
user data to pass to the callback function. |
[closure] |
Since: 0.9.8
unknown or unclassified error |
||
the connection was not of Wi-Fi type |
||
the Wi-Fi connection was invalid |
||
the device's MAC was invalid |
||
the MACs of the connection and the device mismatched |
||
the device missed WPA capabilities required by the connection |
||
the device missed RSN capabilities required by the connection |
“access-points”
property “access-points” NMObjectArray *
List of all Wi-Fi access points the device can see.
Flags: Read
Since: 0.9.10
“active-access-point”
property“active-access-point” NMAccessPoint *
The active NMAccessPoint of the device.
Flags: Read
“bitrate”
property“bitrate” guint
The bit rate of the device in kbit/s.
Flags: Read
Default value: 0
“hw-address”
property“hw-address” gchar *
The hardware (MAC) address of the device.
Flags: Read
Default value: NULL
“mode”
property“mode” guint
The mode of the device.
Flags: Read
Allowed values: <= 3
Default value: 2
“perm-hw-address”
property“perm-hw-address” gchar *
The hardware (MAC) address of the device.
Flags: Read
Default value: NULL
“wireless-capabilities”
property“wireless-capabilities” guint
The wireless capabilities of the device.
Flags: Read
Default value: 0
“access-point-added”
signalvoid user_function (NMDeviceWifi *device, GObject *ap, gpointer user_data)
Notifies that a NMAccessPoint is added to the Wi-Fi device.
device |
the Wi-Fi device that received the signal |
|
ap |
the new access point |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
“access-point-removed”
signalvoid user_function (NMDeviceWifi *device, GObject *ap, gpointer user_data)
Notifies that a NMAccessPoint is removed from the Wi-Fi device.
device |
the Wi-Fi device that received the signal |
|
ap |
the removed access point |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First