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_CDMA_H__ |
8 | #define __NM_SETTING_CDMA_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_CDMA (nm_setting_cdma_get_type()) |
19 | #define NM_SETTING_CDMA(obj) \ |
20 | (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_CDMA, NMSettingCdma)) |
21 | #define NM_SETTING_CDMA_CLASS(klass) \ |
22 | (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_CDMA, NMSettingCdmaClass)) |
23 | #define NM_IS_SETTING_CDMA(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_CDMA)) |
24 | #define NM_IS_SETTING_CDMA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_CDMA)) |
25 | #define NM_SETTING_CDMA_GET_CLASS(obj) \ |
26 | (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_CDMA, NMSettingCdmaClass)) |
27 | |
28 | #define NM_SETTING_CDMA_SETTING_NAME "cdma" |
29 | |
30 | #define NM_SETTING_CDMA_NUMBER "number" |
31 | #define NM_SETTING_CDMA_USERNAME "username" |
32 | #define NM_SETTING_CDMA_PASSWORD "password" |
33 | #define NM_SETTING_CDMA_PASSWORD_FLAGS "password-flags" |
34 | #define NM_SETTING_CDMA_MTU "mtu" |
35 | |
36 | typedef struct _NMSettingCdmaClass NMSettingCdmaClass; |
37 | |
38 | GType nm_setting_cdma_get_type(void); |
39 | |
40 | NMSetting *nm_setting_cdma_new(void); |
41 | const char *nm_setting_cdma_get_number(NMSettingCdma *setting); |
42 | const char *nm_setting_cdma_get_username(NMSettingCdma *setting); |
43 | const char *nm_setting_cdma_get_password(NMSettingCdma *setting); |
44 | NMSettingSecretFlags nm_setting_cdma_get_password_flags(NMSettingCdma *setting); |
45 | |
46 | NM_AVAILABLE_IN_1_8 |
47 | guint32 nm_setting_cdma_get_mtu(NMSettingCdma *setting); |
48 | |
49 | G_END_DECLS |
50 | |
51 | #endif /* __NM_SETTING_CDMA_H__ */ |
52 | |