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.
20 * Copyright 2007 - 2008 Novell, Inc.
23 #ifndef __NM_SETTING_PPP_H__
24 #define __NM_SETTING_PPP_H__
26 #if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
27 #error "Only <NetworkManager.h> can be included directly."
30 #include <nm-setting.h>
34 #define NM_TYPE_SETTING_PPP (nm_setting_ppp_get_type ())
35 #define NM_SETTING_PPP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_PPP, NMSettingPpp))
36 #define NM_SETTING_PPP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_PPP, NMSettingPppClass))
37 #define NM_IS_SETTING_PPP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_PPP))
38 #define NM_IS_SETTING_PPP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SETTING_PPP))
39 #define NM_SETTING_PPP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_PPP, NMSettingPppClass))
41 #define NM_SETTING_PPP_SETTING_NAME "ppp"
43 #define NM_SETTING_PPP_NOAUTH "noauth"
44 #define NM_SETTING_PPP_REFUSE_EAP "refuse-eap"
45 #define NM_SETTING_PPP_REFUSE_PAP "refuse-pap"
46 #define NM_SETTING_PPP_REFUSE_CHAP "refuse-chap"
47 #define NM_SETTING_PPP_REFUSE_MSCHAP "refuse-mschap"
48 #define NM_SETTING_PPP_REFUSE_MSCHAPV2 "refuse-mschapv2"
49 #define NM_SETTING_PPP_NOBSDCOMP "nobsdcomp"
50 #define NM_SETTING_PPP_NODEFLATE "nodeflate"
51 #define NM_SETTING_PPP_NO_VJ_COMP "no-vj-comp"
52 #define NM_SETTING_PPP_REQUIRE_MPPE "require-mppe"
53 #define NM_SETTING_PPP_REQUIRE_MPPE_128 "require-mppe-128"
54 #define NM_SETTING_PPP_MPPE_STATEFUL "mppe-stateful"
55 #define NM_SETTING_PPP_CRTSCTS "crtscts"
56 #define NM_SETTING_PPP_BAUD "baud"
57 #define NM_SETTING_PPP_MRU "mru"
58 #define NM_SETTING_PPP_MTU "mtu"
59 #define NM_SETTING_PPP_LCP_ECHO_FAILURE "lcp-echo-failure"
60 #define NM_SETTING_PPP_LCP_ECHO_INTERVAL "lcp-echo-interval"
62 struct _NMSettingPpp {
67 NMSettingClass parent;
73 GType nm_setting_ppp_get_type (void);
75 NMSetting *nm_setting_ppp_new (void);
76 gboolean nm_setting_ppp_get_noauth (NMSettingPpp *setting);
77 gboolean nm_setting_ppp_get_refuse_eap (NMSettingPpp *setting);
78 gboolean nm_setting_ppp_get_refuse_pap (NMSettingPpp *setting);
79 gboolean nm_setting_ppp_get_refuse_chap (NMSettingPpp *setting);
80 gboolean nm_setting_ppp_get_refuse_mschap (NMSettingPpp *setting);
81 gboolean nm_setting_ppp_get_refuse_mschapv2 (NMSettingPpp *setting);
82 gboolean nm_setting_ppp_get_nobsdcomp (NMSettingPpp *setting);
83 gboolean nm_setting_ppp_get_nodeflate (NMSettingPpp *setting);
84 gboolean nm_setting_ppp_get_no_vj_comp (NMSettingPpp *setting);
85 gboolean nm_setting_ppp_get_require_mppe (NMSettingPpp *setting);
86 gboolean nm_setting_ppp_get_require_mppe_128 (NMSettingPpp *setting);
87 gboolean nm_setting_ppp_get_mppe_stateful (NMSettingPpp *setting);
88 gboolean nm_setting_ppp_get_crtscts (NMSettingPpp *setting);
89 guint32 nm_setting_ppp_get_baud (NMSettingPpp *setting);
90 guint32 nm_setting_ppp_get_mru (NMSettingPpp *setting);
91 guint32 nm_setting_ppp_get_mtu (NMSettingPpp *setting);
92 guint32 nm_setting_ppp_get_lcp_echo_failure (NMSettingPpp *setting);
93 guint32 nm_setting_ppp_get_lcp_echo_interval (NMSettingPpp *setting);
97 #endif /* __NM_SETTING_PPP_H__ */