Top |
const char * | nm_device_wifi_p2p_get_hw_address () |
NMWifiP2PPeer * | nm_device_wifi_p2p_get_peer_by_path () |
const GPtrArray * | nm_device_wifi_p2p_get_peers () |
void | nm_device_wifi_p2p_start_find () |
gboolean | nm_device_wifi_p2p_start_find_finish () |
void | nm_device_wifi_p2p_stop_find () |
gboolean | nm_device_wifi_p2p_stop_find_finish () |
#define | NM_DEVICE_WIFI_P2P_HW_ADDRESS |
#define | NM_DEVICE_WIFI_P2P_PEERS |
#define | NM_DEVICE_WIFI_P2P_WFDIES |
NMDeviceWifiP2P |
const char *
nm_device_wifi_p2p_get_hw_address (NMDeviceWifiP2P *device
);
nm_device_wifi_p2p_get_hw_address
has been deprecated since version 1.24 and should not be used in newly-written code.
Use nm_device_get_hw_address()
instead.
Gets the actual hardware (MAC) address of the NMDeviceWifiP2P
[skip]
the actual hardware address. This is the internal string used by the device, and must not be modified.
Since: 1.16
NMWifiP2PPeer * nm_device_wifi_p2p_get_peer_by_path (NMDeviceWifiP2P *device
,const char *path
);
Gets a NMWifiP2PPeer by path.
Since: 1.42
const GPtrArray *
nm_device_wifi_p2p_get_peers (NMDeviceWifiP2P *device
);
Gets all the found peers of the NMDeviceWifiP2P.
a GPtrArray containing all the found NMWifiP2PPeers. The returned array is owned by the client and should not be modified.
[element-type NMWifiP2PPeer]
Since: 1.16
void nm_device_wifi_p2p_start_find (NMDeviceWifiP2P *device
,GVariant *options
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Request NM to search for Wi-Fi P2P peers on device
. Note that the call
returns immediately after requesting the find, and it may take some time
after that for peers to be found.
The find operation will run for 30s by default. You can stop it earlier
using nm_device_p2p_wifi_stop_find()
.
device |
||
options |
optional options passed to StartFind. |
[nullable] |
cancellable |
a GCancellable, or |
|
callback |
a GAsyncReadyCallback, or |
|
user_data |
user_data for |
Since: 1.16
gboolean nm_device_wifi_p2p_start_find_finish (NMDeviceWifiP2P *device
,GAsyncResult *result
,GError **error
);
Finish an operation started by nm_device_wifi_p2p_start_find()
.
Since: 1.16
void nm_device_wifi_p2p_stop_find (NMDeviceWifiP2P *device
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Request NM to stop any ongoing find operation for Wi-Fi P2P peers on device
.
device |
||
cancellable |
a GCancellable, or |
|
callback |
a GAsyncReadyCallback, or |
|
user_data |
user_data for |
Since: 1.16
gboolean nm_device_wifi_p2p_stop_find_finish (NMDeviceWifiP2P *device
,GAsyncResult *result
,GError **error
);
Finish an operation started by nm_device_wifi_p2p_stop_find()
.
Since: 1.16
“peer-added”
signalvoid user_function (NMDeviceWifiP2P *device, GObject *peer, gpointer user_data)
Notifies that a NMWifiP2PPeer is added to the Wi-Fi P2P device.
device |
the Wi-Fi P2P device that received the signal |
|
peer |
the new access point |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 1.16
“peer-removed”
signalvoid user_function (NMDeviceWifiP2P *device, GObject *peer, gpointer user_data)
Notifies that a NMWifiP2PPeer is removed from the Wi-Fi P2P device.
device |
the Wi-Fi P2P device that received the signal |
|
peer |
the removed access point |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 1.16