Top |
#define | NM_DEVICE_WIFI_P2P_HW_ADDRESS |
#define | NM_DEVICE_WIFI_P2P_PEERS |
#define | NM_DEVICE_WIFI_P2P_WFDIES |
4
NM_DEPRECATED_IN_1_24_FOR ();
NM_DEPRECATED_IN_1_24_FOR
is deprecated and should not be used in newly-written code.
NMWifiP2PPeer * nm_device_wifi_p2p_get_peer_by_path (NMDeviceWifiP2P *device
,const char *path
);
Gets a NMWifiP2PPeer by path.
Since: 1.16
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. |
[allow-none] |
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