1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | /* |
3 | * Copyright (C) 2007 - 2008 Red Hat, Inc. |
4 | * Copyright (C) 2007 - 2008 Novell, Inc. |
5 | * Copyright (C) 2009 One Laptop per Child |
6 | */ |
7 | |
8 | #ifndef __NM_SETTING_OLPC_MESH_H__ |
9 | #define __NM_SETTING_OLPC_MESH_H__ |
10 | |
11 | #if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION) |
12 | #error "Only <NetworkManager.h> can be included directly." |
13 | #endif |
14 | |
15 | #include "nm-setting.h" |
16 | |
17 | G_BEGIN_DECLS |
18 | |
19 | #define NM_TYPE_SETTING_OLPC_MESH (nm_setting_olpc_mesh_get_type()) |
20 | #define NM_SETTING_OLPC_MESH(obj) \ |
21 | (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_OLPC_MESH, NMSettingOlpcMesh)) |
22 | #define NM_SETTING_OLPC_MESH_CLASS(klass) \ |
23 | (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_OLPC_MESH, NMSettingOlpcMeshClass)) |
24 | #define NM_IS_SETTING_OLPC_MESH(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_OLPC_MESH)) |
25 | #define NM_IS_SETTING_OLPC_MESH_CLASS(klass) \ |
26 | (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_OLPC_MESH)) |
27 | #define NM_SETTING_OLPC_MESH_GET_CLASS(obj) \ |
28 | (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_OLPC_MESH, NMSettingOlpcMeshClass)) |
29 | |
30 | #define NM_SETTING_OLPC_MESH_SETTING_NAME "802-11-olpc-mesh" |
31 | |
32 | #define NM_SETTING_OLPC_MESH_SSID "ssid" |
33 | #define NM_SETTING_OLPC_MESH_CHANNEL "channel" |
34 | #define NM_SETTING_OLPC_MESH_DHCP_ANYCAST_ADDRESS "dhcp-anycast-address" |
35 | |
36 | typedef struct _NMSettingOlpcMeshClass NMSettingOlpcMeshClass; |
37 | |
38 | GType nm_setting_olpc_mesh_get_type(void); |
39 | |
40 | NMSetting *nm_setting_olpc_mesh_new(void); |
41 | GBytes *nm_setting_olpc_mesh_get_ssid(NMSettingOlpcMesh *setting); |
42 | guint32 nm_setting_olpc_mesh_get_channel(NMSettingOlpcMesh *setting); |
43 | const char *nm_setting_olpc_mesh_get_dhcp_anycast_address(NMSettingOlpcMesh *setting); |
44 | |
45 | G_END_DECLS |
46 | |
47 | #endif /* __NM_SETTING_OLPC_MESH_H__ */ |
48 | |