1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | /* |
3 | * Copyright (C) 2007 - 2011 Red Hat, Inc. |
4 | * Copyright (C) 2007 - 2008 Novell, Inc. |
5 | */ |
6 | |
7 | #ifndef __NM_SETTING_PPPOE_H__ |
8 | #define __NM_SETTING_PPPOE_H__ |
9 | |
10 | #if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION) |
11 | #error "Only <NetworkManager.h> can be included directly." |
12 | #endif |
13 | |
14 | #include "nm-setting.h" |
15 | |
16 | G_BEGIN_DECLS |
17 | |
18 | #define NM_TYPE_SETTING_PPPOE (nm_setting_pppoe_get_type()) |
19 | #define NM_SETTING_PPPOE(obj) \ |
20 | (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_PPPOE, NMSettingPppoe)) |
21 | #define NM_SETTING_PPPOE_CLASS(klass) \ |
22 | (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_PPPOE, NMSettingPppoeClass)) |
23 | #define NM_IS_SETTING_PPPOE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_PPPOE)) |
24 | #define NM_IS_SETTING_PPPOE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_PPPOE)) |
25 | #define NM_SETTING_PPPOE_GET_CLASS(obj) \ |
26 | (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_PPPOE, NMSettingPppoeClass)) |
27 | |
28 | #define NM_SETTING_PPPOE_SETTING_NAME "pppoe" |
29 | |
30 | #define NM_SETTING_PPPOE_PARENT "parent" |
31 | #define NM_SETTING_PPPOE_SERVICE "service" |
32 | #define NM_SETTING_PPPOE_USERNAME "username" |
33 | #define NM_SETTING_PPPOE_PASSWORD "password" |
34 | #define NM_SETTING_PPPOE_PASSWORD_FLAGS "password-flags" |
35 | |
36 | typedef struct _NMSettingPppoeClass NMSettingPppoeClass; |
37 | |
38 | GType nm_setting_pppoe_get_type(void); |
39 | |
40 | NMSetting *nm_setting_pppoe_new(void); |
41 | NM_AVAILABLE_IN_1_10 |
42 | const char *nm_setting_pppoe_get_parent(NMSettingPppoe *setting); |
43 | const char *nm_setting_pppoe_get_service(NMSettingPppoe *setting); |
44 | const char *nm_setting_pppoe_get_username(NMSettingPppoe *setting); |
45 | const char *nm_setting_pppoe_get_password(NMSettingPppoe *setting); |
46 | NMSettingSecretFlags nm_setting_pppoe_get_password_flags(NMSettingPppoe *setting); |
47 | |
48 | G_END_DECLS |
49 | |
50 | #endif /* __NM_SETTING_PPPOE_H__ */ |
51 | |