1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2019 Red Hat, Inc.
4 */
5
6#ifndef __NM_SETTING_WIFI_P2P_H__
7#define __NM_SETTING_WIFI_P2P_H__
8
9#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
10#error "Only <NetworkManager.h> can be included directly."
11#endif
12
13#include "nm-setting.h"
14#include "nm-setting-wireless-security.h"
15
16G_BEGIN_DECLS
17
18#define NM_TYPE_SETTING_WIFI_P2P (nm_setting_wifi_p2p_get_type())
19#define NM_SETTING_WIFI_P2P(obj) \
20 (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_WIFI_P2P, NMSettingWifiP2P))
21#define NM_SETTING_WIFI_P2P_CLASS(klass) \
22 (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_WIFI_P2P, NMSettingWifiP2PClass))
23#define NM_IS_SETTING_WIFI_P2P(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_WIFI_P2P))
24#define NM_IS_SETTING_WIFI_P2P_CLASS(klass) \
25 (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_WIFI_P2P))
26#define NM_SETTING_WIFI_P2P_GET_CLASS(obj) \
27 (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_WIFI_P2P, NMSettingWifiP2PClass))
28
29#define NM_SETTING_WIFI_P2P_SETTING_NAME "wifi-p2p"
30
31/**
32 * NM_SETTING_WIFI_P2P_PEER:
33 *
34 * The mac address of the peer to connect to.
35 */
36#define NM_SETTING_WIFI_P2P_PEER "peer"
37#define NM_SETTING_WIFI_P2P_WPS_METHOD "wps-method"
38#define NM_SETTING_WIFI_P2P_WFD_IES "wfd-ies"
39
40typedef struct _NMSettingWifiP2PClass NMSettingWifiP2PClass;
41
42NM_AVAILABLE_IN_1_16
43GType nm_setting_wifi_p2p_get_type(void);
44
45NM_AVAILABLE_IN_1_16
46NMSetting *nm_setting_wifi_p2p_new(void);
47
48NM_AVAILABLE_IN_1_16
49const char *nm_setting_wifi_p2p_get_peer(NMSettingWifiP2P *setting);
50
51NM_AVAILABLE_IN_1_16
52NMSettingWirelessSecurityWpsMethod nm_setting_wifi_p2p_get_wps_method(NMSettingWifiP2P *setting);
53
54NM_AVAILABLE_IN_1_16
55GBytes *nm_setting_wifi_p2p_get_wfd_ies(NMSettingWifiP2P *setting);
56
57G_END_DECLS
58
59#endif /* __NM_SETTING_WIFI_P2P_H__ */
60

source code of include/libnm/nm-setting-wifi-p2p.h