| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | /* |
| 3 | * Copyright (C) 2007 - 2008 Red Hat, Inc. |
| 4 | * Copyright (C) 2007 - 2008 Novell, Inc. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __NM_SETTING_PPP_H__ |
| 8 | #define __NM_SETTING_PPP_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_PPP (nm_setting_ppp_get_type()) |
| 19 | #define NM_SETTING_PPP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_PPP, NMSettingPpp)) |
| 20 | #define NM_SETTING_PPP_CLASS(klass) \ |
| 21 | (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_PPP, NMSettingPppClass)) |
| 22 | #define NM_IS_SETTING_PPP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_PPP)) |
| 23 | #define NM_IS_SETTING_PPP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_PPP)) |
| 24 | #define NM_SETTING_PPP_GET_CLASS(obj) \ |
| 25 | (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_PPP, NMSettingPppClass)) |
| 26 | |
| 27 | #define NM_SETTING_PPP_SETTING_NAME "ppp" |
| 28 | |
| 29 | #define NM_SETTING_PPP_NOAUTH "noauth" |
| 30 | #define NM_SETTING_PPP_REFUSE_EAP "refuse-eap" |
| 31 | #define NM_SETTING_PPP_REFUSE_PAP "refuse-pap" |
| 32 | #define NM_SETTING_PPP_REFUSE_CHAP "refuse-chap" |
| 33 | #define NM_SETTING_PPP_REFUSE_MSCHAP "refuse-mschap" |
| 34 | #define NM_SETTING_PPP_REFUSE_MSCHAPV2 "refuse-mschapv2" |
| 35 | #define NM_SETTING_PPP_NOBSDCOMP "nobsdcomp" |
| 36 | #define NM_SETTING_PPP_NODEFLATE "nodeflate" |
| 37 | #define NM_SETTING_PPP_NO_VJ_COMP "no-vj-comp" |
| 38 | #define NM_SETTING_PPP_REQUIRE_MPPE "require-mppe" |
| 39 | #define NM_SETTING_PPP_REQUIRE_MPPE_128 "require-mppe-128" |
| 40 | #define NM_SETTING_PPP_MPPE_STATEFUL "mppe-stateful" |
| 41 | #define NM_SETTING_PPP_CRTSCTS "crtscts" |
| 42 | #define NM_SETTING_PPP_BAUD "baud" |
| 43 | #define NM_SETTING_PPP_MRU "mru" |
| 44 | #define NM_SETTING_PPP_MTU "mtu" |
| 45 | #define NM_SETTING_PPP_LCP_ECHO_FAILURE "lcp-echo-failure" |
| 46 | #define NM_SETTING_PPP_LCP_ECHO_INTERVAL "lcp-echo-interval" |
| 47 | |
| 48 | typedef struct _NMSettingPppClass NMSettingPppClass; |
| 49 | |
| 50 | GType nm_setting_ppp_get_type(void); |
| 51 | |
| 52 | NMSetting *nm_setting_ppp_new(void); |
| 53 | gboolean nm_setting_ppp_get_noauth(NMSettingPpp *setting); |
| 54 | gboolean nm_setting_ppp_get_refuse_eap(NMSettingPpp *setting); |
| 55 | gboolean nm_setting_ppp_get_refuse_pap(NMSettingPpp *setting); |
| 56 | gboolean nm_setting_ppp_get_refuse_chap(NMSettingPpp *setting); |
| 57 | gboolean nm_setting_ppp_get_refuse_mschap(NMSettingPpp *setting); |
| 58 | gboolean nm_setting_ppp_get_refuse_mschapv2(NMSettingPpp *setting); |
| 59 | gboolean nm_setting_ppp_get_nobsdcomp(NMSettingPpp *setting); |
| 60 | gboolean nm_setting_ppp_get_nodeflate(NMSettingPpp *setting); |
| 61 | gboolean nm_setting_ppp_get_no_vj_comp(NMSettingPpp *setting); |
| 62 | gboolean nm_setting_ppp_get_require_mppe(NMSettingPpp *setting); |
| 63 | gboolean nm_setting_ppp_get_require_mppe_128(NMSettingPpp *setting); |
| 64 | gboolean nm_setting_ppp_get_mppe_stateful(NMSettingPpp *setting); |
| 65 | gboolean nm_setting_ppp_get_crtscts(NMSettingPpp *setting); |
| 66 | guint32 nm_setting_ppp_get_baud(NMSettingPpp *setting); |
| 67 | guint32 nm_setting_ppp_get_mru(NMSettingPpp *setting); |
| 68 | guint32 nm_setting_ppp_get_mtu(NMSettingPpp *setting); |
| 69 | guint32 nm_setting_ppp_get_lcp_echo_failure(NMSettingPpp *setting); |
| 70 | guint32 nm_setting_ppp_get_lcp_echo_interval(NMSettingPpp *setting); |
| 71 | |
| 72 | G_END_DECLS |
| 73 | |
| 74 | #endif /* __NM_SETTING_PPP_H__ */ |
| 75 | |