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
16G_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
36typedef struct _NMSettingCdmaClass NMSettingCdmaClass;
37
38GType nm_setting_cdma_get_type(void);
39
40NMSetting *nm_setting_cdma_new(void);
41const char *nm_setting_cdma_get_number(NMSettingCdma *setting);
42const char *nm_setting_cdma_get_username(NMSettingCdma *setting);
43const char *nm_setting_cdma_get_password(NMSettingCdma *setting);
44NMSettingSecretFlags nm_setting_cdma_get_password_flags(NMSettingCdma *setting);
45
46NM_AVAILABLE_IN_1_8
47guint32 nm_setting_cdma_get_mtu(NMSettingCdma *setting);
48
49G_END_DECLS
50
51#endif /* __NM_SETTING_CDMA_H__ */
52

source code of include/libnm/nm-setting-cdma.h