1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | /* |
3 | * Copyright (C) 2007 - 2008 Red Hat, Inc. |
4 | */ |
5 | |
6 | #ifndef __NM_SETTING_ADSL_H__ |
7 | #define __NM_SETTING_ADSL_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 | |
15 | G_BEGIN_DECLS |
16 | |
17 | #define NM_TYPE_SETTING_ADSL (nm_setting_adsl_get_type()) |
18 | #define NM_SETTING_ADSL(obj) \ |
19 | (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_ADSL, NMSettingAdsl)) |
20 | #define NM_SETTING_ADSL_CLASS(klass) \ |
21 | (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_ADSL, NMSettingAdslClass)) |
22 | #define NM_IS_SETTING_ADSL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_ADSL)) |
23 | #define NM_IS_SETTING_ADSL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_ADSL)) |
24 | #define NM_SETTING_ADSL_GET_CLASS(obj) \ |
25 | (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_ADSL, NMSettingAdslClass)) |
26 | |
27 | #define NM_SETTING_ADSL_SETTING_NAME "adsl" |
28 | |
29 | #define NM_SETTING_ADSL_USERNAME "username" |
30 | #define NM_SETTING_ADSL_PASSWORD "password" |
31 | #define NM_SETTING_ADSL_PASSWORD_FLAGS "password-flags" |
32 | #define NM_SETTING_ADSL_PROTOCOL "protocol" |
33 | #define NM_SETTING_ADSL_ENCAPSULATION "encapsulation" |
34 | #define NM_SETTING_ADSL_VPI "vpi" |
35 | #define NM_SETTING_ADSL_VCI "vci" |
36 | |
37 | #define NM_SETTING_ADSL_PROTOCOL_PPPOA "pppoa" |
38 | #define NM_SETTING_ADSL_PROTOCOL_PPPOE "pppoe" |
39 | #define NM_SETTING_ADSL_PROTOCOL_IPOATM "ipoatm" |
40 | |
41 | #define NM_SETTING_ADSL_ENCAPSULATION_VCMUX "vcmux" |
42 | #define NM_SETTING_ADSL_ENCAPSULATION_LLC "llc" |
43 | |
44 | typedef struct _NMSettingAdslClass NMSettingAdslClass; |
45 | |
46 | GType nm_setting_adsl_get_type(void); |
47 | |
48 | NMSetting *nm_setting_adsl_new(void); |
49 | const char *nm_setting_adsl_get_username(NMSettingAdsl *setting); |
50 | const char *nm_setting_adsl_get_password(NMSettingAdsl *setting); |
51 | const char *nm_setting_adsl_get_protocol(NMSettingAdsl *setting); |
52 | const char *nm_setting_adsl_get_encapsulation(NMSettingAdsl *setting); |
53 | guint32 nm_setting_adsl_get_vpi(NMSettingAdsl *setting); |
54 | guint32 nm_setting_adsl_get_vci(NMSettingAdsl *setting); |
55 | NMSettingSecretFlags nm_setting_adsl_get_password_flags(NMSettingAdsl *setting); |
56 | |
57 | G_END_DECLS |
58 | |
59 | #endif /* __NM_SETTING_ADSL_H__ */ |
60 | |