1 /* -*- mode: c; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA.
19 * Copyright 2007 - 2008 Red Hat, Inc.
22 #ifndef __NM_SETTING_ADSL_H__
23 #define __NM_SETTING_ADSL_H__
25 #if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
26 #error "Only <NetworkManager.h> can be included directly."
29 #include <nm-setting.h>
33 #define NM_TYPE_SETTING_ADSL (nm_setting_adsl_get_type ())
34 #define NM_SETTING_ADSL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_ADSL, NMSettingAdsl))
35 #define NM_SETTING_ADSL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_ADSL, NMSettingAdslClass))
36 #define NM_IS_SETTING_ADSL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_ADSL))
37 #define NM_IS_SETTING_ADSL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SETTING_ADSL))
38 #define NM_SETTING_ADSL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_ADSL, NMSettingAdslClass))
40 #define NM_SETTING_ADSL_SETTING_NAME "adsl"
42 #define NM_SETTING_ADSL_USERNAME "username"
43 #define NM_SETTING_ADSL_PASSWORD "password"
44 #define NM_SETTING_ADSL_PASSWORD_FLAGS "password-flags"
45 #define NM_SETTING_ADSL_PROTOCOL "protocol"
46 #define NM_SETTING_ADSL_ENCAPSULATION "encapsulation"
47 #define NM_SETTING_ADSL_VPI "vpi"
48 #define NM_SETTING_ADSL_VCI "vci"
50 #define NM_SETTING_ADSL_PROTOCOL_PPPOA "pppoa"
51 #define NM_SETTING_ADSL_PROTOCOL_PPPOE "pppoe"
52 #define NM_SETTING_ADSL_PROTOCOL_IPOATM "ipoatm"
54 #define NM_SETTING_ADSL_ENCAPSULATION_VCMUX "vcmux"
55 #define NM_SETTING_ADSL_ENCAPSULATION_LLC "llc"
57 struct _NMSettingAdsl {
62 NMSettingClass parent;
68 GType nm_setting_adsl_get_type (void);
70 NMSetting *nm_setting_adsl_new (void);
71 const char *nm_setting_adsl_get_username (NMSettingAdsl *setting);
72 const char *nm_setting_adsl_get_password (NMSettingAdsl *setting);
73 const char *nm_setting_adsl_get_protocol (NMSettingAdsl *setting);
74 const char *nm_setting_adsl_get_encapsulation (NMSettingAdsl *setting);
75 guint32 nm_setting_adsl_get_vpi (NMSettingAdsl *setting);
76 guint32 nm_setting_adsl_get_vci (NMSettingAdsl *setting);
77 NMSettingSecretFlags nm_setting_adsl_get_password_flags (NMSettingAdsl *setting);
81 #endif /* __NM_SETTING_ADSL_H__ */