1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
4
* Dan Williams <dcbw@redhat.com>
5
* Tambet Ingo <tambet@gmail.com>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the
19
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
* Boston, MA 02110-1301 USA.
22
* (C) Copyright 2007 - 2008 Red Hat, Inc.
23
* (C) Copyright 2007 - 2008 Novell, Inc.
26
#ifndef NM_SETTING_PPP_H
27
#define NM_SETTING_PPP_H
29
#include <nm-setting.h>
33
#define NM_TYPE_SETTING_PPP (nm_setting_ppp_get_type ())
34
#define NM_SETTING_PPP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_PPP, NMSettingPPP))
35
#define NM_SETTING_PPP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_PPP, NMSettingPPPClass))
36
#define NM_IS_SETTING_PPP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_PPP))
37
#define NM_IS_SETTING_PPP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_SETTING_PPP))
38
#define NM_SETTING_PPP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_PPP, NMSettingPPPClass))
40
#define NM_SETTING_PPP_SETTING_NAME "ppp"
44
* @NM_SETTING_PPP_ERROR_UNKNOWN: unknown or unclassified error
45
* @NM_SETTING_PPP_ERROR_INVALID_PROPERTY: the property was invalid
46
* @NM_SETTING_PPP_ERROR_MISSING_PROPERTY: the property was missing and is
48
* @NM_SETTING_PPP_ERROR_REQUIRE_MPPE_NOT_ALLOWED: requiring MPPE is not compatible
49
* with other setting configuration parameters
52
NM_SETTING_PPP_ERROR_UNKNOWN = 0,
53
NM_SETTING_PPP_ERROR_INVALID_PROPERTY,
54
NM_SETTING_PPP_ERROR_MISSING_PROPERTY,
55
NM_SETTING_PPP_ERROR_REQUIRE_MPPE_NOT_ALLOWED
58
#define NM_SETTING_PPP_ERROR nm_setting_ppp_error_quark ()
59
GQuark nm_setting_ppp_error_quark (void);
61
#define NM_SETTING_PPP_NOAUTH "noauth"
62
#define NM_SETTING_PPP_REFUSE_EAP "refuse-eap"
63
#define NM_SETTING_PPP_REFUSE_PAP "refuse-pap"
64
#define NM_SETTING_PPP_REFUSE_CHAP "refuse-chap"
65
#define NM_SETTING_PPP_REFUSE_MSCHAP "refuse-mschap"
66
#define NM_SETTING_PPP_REFUSE_MSCHAPV2 "refuse-mschapv2"
67
#define NM_SETTING_PPP_NOBSDCOMP "nobsdcomp"
68
#define NM_SETTING_PPP_NODEFLATE "nodeflate"
69
#define NM_SETTING_PPP_NO_VJ_COMP "no-vj-comp"
70
#define NM_SETTING_PPP_REQUIRE_MPPE "require-mppe"
71
#define NM_SETTING_PPP_REQUIRE_MPPE_128 "require-mppe-128"
72
#define NM_SETTING_PPP_MPPE_STATEFUL "mppe-stateful"
73
#define NM_SETTING_PPP_CRTSCTS "crtscts"
74
#define NM_SETTING_PPP_BAUD "baud"
75
#define NM_SETTING_PPP_MRU "mru"
76
#define NM_SETTING_PPP_MTU "mtu"
77
#define NM_SETTING_PPP_LCP_ECHO_FAILURE "lcp-echo-failure"
78
#define NM_SETTING_PPP_LCP_ECHO_INTERVAL "lcp-echo-interval"
85
NMSettingClass parent;
87
/* Padding for future expansion */
88
void (*_reserved1) (void);
89
void (*_reserved2) (void);
90
void (*_reserved3) (void);
91
void (*_reserved4) (void);
94
GType nm_setting_ppp_get_type (void);
96
NMSetting *nm_setting_ppp_new (void);
97
gboolean nm_setting_ppp_get_noauth (NMSettingPPP *setting);
98
gboolean nm_setting_ppp_get_refuse_eap (NMSettingPPP *setting);
99
gboolean nm_setting_ppp_get_refuse_pap (NMSettingPPP *setting);
100
gboolean nm_setting_ppp_get_refuse_chap (NMSettingPPP *setting);
101
gboolean nm_setting_ppp_get_refuse_mschap (NMSettingPPP *setting);
102
gboolean nm_setting_ppp_get_refuse_mschapv2 (NMSettingPPP *setting);
103
gboolean nm_setting_ppp_get_nobsdcomp (NMSettingPPP *setting);
104
gboolean nm_setting_ppp_get_nodeflate (NMSettingPPP *setting);
105
gboolean nm_setting_ppp_get_no_vj_comp (NMSettingPPP *setting);
106
gboolean nm_setting_ppp_get_require_mppe (NMSettingPPP *setting);
107
gboolean nm_setting_ppp_get_require_mppe_128 (NMSettingPPP *setting);
108
gboolean nm_setting_ppp_get_mppe_stateful (NMSettingPPP *setting);
109
gboolean nm_setting_ppp_get_crtscts (NMSettingPPP *setting);
110
guint32 nm_setting_ppp_get_baud (NMSettingPPP *setting);
111
guint32 nm_setting_ppp_get_mru (NMSettingPPP *setting);
112
guint32 nm_setting_ppp_get_mtu (NMSettingPPP *setting);
113
guint32 nm_setting_ppp_get_lcp_echo_failure (NMSettingPPP *setting);
114
guint32 nm_setting_ppp_get_lcp_echo_interval (NMSettingPPP *setting);
118
#endif /* NM_SETTING_PPP_H */