From a4256940da049f91bbbea5e53e469a59ea9c10f7 Mon Sep 17 00:00:00 2001
From: Sjoerd Simons
#include <nm-setting-ppp.h> - NMSettingPPP; - NMSettingPPPClass; +#define NM_SETTING_PPP_SETTING_NAME enum NMSettingPPPError; -#define NM_SETTING_PPP_BAUD -#define NM_SETTING_PPP_CRTSCTS #define NM_SETTING_PPP_ERROR -#define NM_SETTING_PPP_LCP_ECHO_FAILURE -#define NM_SETTING_PPP_LCP_ECHO_INTERVAL -#define NM_SETTING_PPP_MPPE_STATEFUL -#define NM_SETTING_PPP_MRU -#define NM_SETTING_PPP_MTU +GQuark nm_setting_ppp_error_quark (void); #define NM_SETTING_PPP_NOAUTH -#define NM_SETTING_PPP_NOBSDCOMP -#define NM_SETTING_PPP_NODEFLATE -#define NM_SETTING_PPP_NO_VJ_COMP -#define NM_SETTING_PPP_REFUSE_CHAP #define NM_SETTING_PPP_REFUSE_EAP +#define NM_SETTING_PPP_REFUSE_PAP +#define NM_SETTING_PPP_REFUSE_CHAP #define NM_SETTING_PPP_REFUSE_MSCHAP #define NM_SETTING_PPP_REFUSE_MSCHAPV2 -#define NM_SETTING_PPP_REFUSE_PAP +#define NM_SETTING_PPP_NOBSDCOMP +#define NM_SETTING_PPP_NODEFLATE +#define NM_SETTING_PPP_NO_VJ_COMP #define NM_SETTING_PPP_REQUIRE_MPPE #define NM_SETTING_PPP_REQUIRE_MPPE_128 -#define NM_SETTING_PPP_SETTING_NAME -GQuark nm_setting_ppp_error_quark (void); -guint32 nm_setting_ppp_get_baud (NMSettingPPP *setting); -gboolean nm_setting_ppp_get_crtscts (NMSettingPPP *setting); -guint32 nm_setting_ppp_get_lcp_echo_failure (NMSettingPPP *setting); -guint32 nm_setting_ppp_get_lcp_echo_interval - (NMSettingPPP *setting); -gboolean nm_setting_ppp_get_mppe_stateful (NMSettingPPP *setting); -guint32 nm_setting_ppp_get_mru (NMSettingPPP *setting); -guint32 nm_setting_ppp_get_mtu (NMSettingPPP *setting); -gboolean nm_setting_ppp_get_no_vj_comp (NMSettingPPP *setting); +#define NM_SETTING_PPP_MPPE_STATEFUL +#define NM_SETTING_PPP_CRTSCTS +#define NM_SETTING_PPP_BAUD +#define NM_SETTING_PPP_MRU +#define NM_SETTING_PPP_MTU +#define NM_SETTING_PPP_LCP_ECHO_FAILURE +#define NM_SETTING_PPP_LCP_ECHO_INTERVAL + NMSettingPPP; + NMSettingPPPClass; +NMSetting * nm_setting_ppp_new (void); gboolean nm_setting_ppp_get_noauth (NMSettingPPP *setting); -gboolean nm_setting_ppp_get_nobsdcomp (NMSettingPPP *setting); -gboolean nm_setting_ppp_get_nodeflate (NMSettingPPP *setting); -gboolean nm_setting_ppp_get_refuse_chap (NMSettingPPP *setting); gboolean nm_setting_ppp_get_refuse_eap (NMSettingPPP *setting); +gboolean nm_setting_ppp_get_refuse_pap (NMSettingPPP *setting); +gboolean nm_setting_ppp_get_refuse_chap (NMSettingPPP *setting); gboolean nm_setting_ppp_get_refuse_mschap (NMSettingPPP *setting); gboolean nm_setting_ppp_get_refuse_mschapv2 (NMSettingPPP *setting); -gboolean nm_setting_ppp_get_refuse_pap (NMSettingPPP *setting); +gboolean nm_setting_ppp_get_nobsdcomp (NMSettingPPP *setting); +gboolean nm_setting_ppp_get_nodeflate (NMSettingPPP *setting); +gboolean nm_setting_ppp_get_no_vj_comp (NMSettingPPP *setting); gboolean nm_setting_ppp_get_require_mppe (NMSettingPPP *setting); gboolean nm_setting_ppp_get_require_mppe_128 (NMSettingPPP *setting); -NMSetting * nm_setting_ppp_new (void); +gboolean nm_setting_ppp_get_mppe_stateful (NMSettingPPP *setting); +gboolean nm_setting_ppp_get_crtscts (NMSettingPPP *setting); +guint32 nm_setting_ppp_get_baud (NMSettingPPP *setting); +guint32 nm_setting_ppp_get_mru (NMSettingPPP *setting); +guint32 nm_setting_ppp_get_mtu (NMSettingPPP *setting); +guint32 nm_setting_ppp_get_lcp_echo_failure (NMSettingPPP *setting); +guint32 nm_setting_ppp_get_lcp_echo_interval + (NMSettingPPP *setting);
+ GEnum + +----NMSettingPPPError +
GObject +----NMSetting +----NMSettingPPP-
- GEnum - +----NMSettingPPPError -
typedef struct {
- NMSettingClass parent;
-
- /* Padding for future expansion */
- void (*_reserved1) (void);
- void (*_reserved2) (void);
- void (*_reserved3) (void);
- void (*_reserved4) (void);
-} NMSettingPPPClass;
+NM_SETTING_PPP_SETTING_NAME
+#define NM_SETTING_PPP_SETTING_NAME "ppp"
@@ -168,8 +153,11 @@ cable and DSL modems and some mobile broadband devices.
NM_SETTING_PPP_ERROR_REQUIRE_MPPE_NOT_ALLOWED /*< nick=RequireMPPENotAllowed >*/
} NMSettingPPPError;
-| @@ -198,185 +186,225 @@ with other setting configuration parameters |
Returns : |
+the error quark used for NMSettingPPP errors. | +
#define NM_SETTING_PPP_ERROR nm_setting_ppp_error_quark () +NM_SETTING_PPP_REFUSE_EAP
+#define NM_SETTING_PPP_REFUSE_EAP "refuse-eap"
#define NM_SETTING_PPP_LCP_ECHO_FAILURE "lcp-echo-failure" +NM_SETTING_PPP_REFUSE_PAP
+#define NM_SETTING_PPP_REFUSE_PAP "refuse-pap"
#define NM_SETTING_PPP_LCP_ECHO_INTERVAL "lcp-echo-interval" +NM_SETTING_PPP_REFUSE_CHAP
+#define NM_SETTING_PPP_REFUSE_CHAP "refuse-chap"
#define NM_SETTING_PPP_MPPE_STATEFUL "mppe-stateful" +NM_SETTING_PPP_REFUSE_MSCHAP
+#define NM_SETTING_PPP_REFUSE_MSCHAP "refuse-mschap"
#define NM_SETTING_PPP_MRU "mru" +NM_SETTING_PPP_REFUSE_MSCHAPV2
+#define NM_SETTING_PPP_REFUSE_MSCHAPV2 "refuse-mschapv2"
#define NM_SETTING_PPP_MTU "mtu" +NM_SETTING_PPP_NOBSDCOMP
+#define NM_SETTING_PPP_NOBSDCOMP "nobsdcomp"
#define NM_SETTING_PPP_NOAUTH "noauth" +NM_SETTING_PPP_NODEFLATE
+#define NM_SETTING_PPP_NODEFLATE "nodeflate"
#define NM_SETTING_PPP_NOBSDCOMP "nobsdcomp" +NM_SETTING_PPP_NO_VJ_COMP
+#define NM_SETTING_PPP_NO_VJ_COMP "no-vj-comp"
#define NM_SETTING_PPP_NODEFLATE "nodeflate" +NM_SETTING_PPP_REQUIRE_MPPE
+#define NM_SETTING_PPP_REQUIRE_MPPE "require-mppe"
#define NM_SETTING_PPP_NO_VJ_COMP "no-vj-comp" +NM_SETTING_PPP_REQUIRE_MPPE_128
+#define NM_SETTING_PPP_REQUIRE_MPPE_128 "require-mppe-128"
#define NM_SETTING_PPP_REFUSE_CHAP "refuse-chap" +NM_SETTING_PPP_MPPE_STATEFUL
+#define NM_SETTING_PPP_MPPE_STATEFUL "mppe-stateful"
#define NM_SETTING_PPP_REFUSE_EAP "refuse-eap" +NM_SETTING_PPP_CRTSCTS
+#define NM_SETTING_PPP_CRTSCTS "crtscts"
#define NM_SETTING_PPP_REFUSE_MSCHAP "refuse-mschap" +NM_SETTING_PPP_BAUD
+#define NM_SETTING_PPP_BAUD "baud"
#define NM_SETTING_PPP_REFUSE_MSCHAPV2 "refuse-mschapv2" +NM_SETTING_PPP_MRU
+#define NM_SETTING_PPP_MRU "mru"
#define NM_SETTING_PPP_REFUSE_PAP "refuse-pap" +NM_SETTING_PPP_MTU
+#define NM_SETTING_PPP_MTU "mtu"
#define NM_SETTING_PPP_REQUIRE_MPPE "require-mppe" +NM_SETTING_PPP_LCP_ECHO_FAILURE
+#define NM_SETTING_PPP_LCP_ECHO_FAILURE "lcp-echo-failure"
#define NM_SETTING_PPP_REQUIRE_MPPE_128 "require-mppe-128" +NM_SETTING_PPP_LCP_ECHO_INTERVAL
+#define NM_SETTING_PPP_LCP_ECHO_INTERVAL "lcp-echo-interval"
#define NM_SETTING_PPP_SETTING_NAME "ppp" +NMSettingPPP
+typedef struct _NMSettingPPP NMSettingPPP;++
+
typedef struct {
+ NMSettingClass parent;
+
+ /* Padding for future expansion */
+ void (*_reserved1) (void);
+ void (*_reserved2) (void);
+ void (*_reserved3) (void);
+ void (*_reserved4) (void);
+} NMSettingPPPClass;
GQuark nm_setting_ppp_error_quark (void);
+NMSetting * nm_setting_ppp_new (void);
-Registers an error quark for NMSettingPPP if necessary. +Creates a new NMSettingPPP object with default values.
-Returns : |
-the error quark used for NMSettingPPP errors. | +the new empty NMSettingPPP object. [transfer full] + |
guint32 nm_setting_ppp_get_baud (NMSettingPPP *setting);
-
|
@@ -385,17 +413,20 @@ Registers an error quark for Returns :
-the "baud" property of the setting | +the "noauth" property of the setting |
gboolean nm_setting_ppp_get_crtscts (NMSettingPPP *setting);
-
|
@@ -404,17 +435,20 @@ Registers an error quark for Returns :
-the "crtscts" property of the setting | +the "refuse-eap" property of the setting |
guint32 nm_setting_ppp_get_lcp_echo_failure (NMSettingPPP *setting);
-
|
@@ -423,18 +457,20 @@ Registers an error quark for Returns :
-the "lcp-echo-failure" property of the setting | +the "refuse-pap" property of the setting |
guint32 nm_setting_ppp_get_lcp_echo_interval
- (NMSettingPPP *setting);
-
|
@@ -443,17 +479,20 @@ Registers an error quark for Returns :
-the "lcp-echo-interval" property of the setting | +the "refuse-chap" property of the setting |
gboolean nm_setting_ppp_get_mppe_stateful (NMSettingPPP *setting);
-
|
@@ -462,17 +501,20 @@ Registers an error quark for Returns :
-the "mppe-stateful" property of the setting | +the "refuse-mschap" property of the setting |
guint32 nm_setting_ppp_get_mru (NMSettingPPP *setting);
-
|
@@ -481,17 +523,20 @@ Registers an error quark for Returns :
-the "mru" property of the setting | +the "refuse-mschapv2" property of the setting |
guint32 nm_setting_ppp_get_mtu (NMSettingPPP *setting);
-
|
@@ -500,17 +545,20 @@ Registers an error quark for Returns :
-the "mtu" property of the setting | +the "nobsdcomp" property of the setting |
gboolean nm_setting_ppp_get_no_vj_comp (NMSettingPPP *setting);
-
|
@@ -519,17 +567,20 @@ Registers an error quark for Returns :
-the "no-vj-comp" property of the setting | +the "nodeflate" property of the setting |
gboolean nm_setting_ppp_get_noauth (NMSettingPPP *setting);
-
|
@@ -538,17 +589,20 @@ Registers an error quark for Returns :
-the "noauth" property of the setting | +the "no-vj-comp" property of the setting |
gboolean nm_setting_ppp_get_nobsdcomp (NMSettingPPP *setting);
-
|
@@ -557,17 +611,20 @@ Registers an error quark for Returns :
-the "nobsdcomp" property of the setting | +the "require-mppe" property of the setting |
gboolean nm_setting_ppp_get_nodeflate (NMSettingPPP *setting);
-
|
@@ -576,17 +633,20 @@ Registers an error quark for Returns :
-the "nodeflate" property of the setting | +the "require-mppe-128" property of the setting |
gboolean nm_setting_ppp_get_refuse_chap (NMSettingPPP *setting);
-
|
@@ -595,17 +655,20 @@ Registers an error quark for Returns :
-the "refuse-chap" property of the setting | +the "mppe-stateful" property of the setting |
gboolean nm_setting_ppp_get_refuse_eap (NMSettingPPP *setting);
-
|
@@ -614,17 +677,20 @@ Registers an error quark for Returns :
-the "refuse-eap" property of the setting | +the "crtscts" property of the setting |
gboolean nm_setting_ppp_get_refuse_mschap (NMSettingPPP *setting);
-
|
@@ -633,17 +699,20 @@ Registers an error quark for Returns :
-the "refuse-mschap" property of the setting | +the "baud" property of the setting |
gboolean nm_setting_ppp_get_refuse_mschapv2 (NMSettingPPP *setting);
-
|
@@ -652,17 +721,20 @@ Registers an error quark for Returns :
-the "refuse-mschapv2" property of the setting | +the "mru" property of the setting |
gboolean nm_setting_ppp_get_refuse_pap (NMSettingPPP *setting);
-
|
@@ -671,17 +743,20 @@ Registers an error quark for Returns :
-the "refuse-pap" property of the setting | +the "mtu" property of the setting |
gboolean nm_setting_ppp_get_require_mppe (NMSettingPPP *setting);
-
|
@@ -690,17 +765,21 @@ Registers an error quark for Returns :
-the "require-mppe" property of the setting | +the "lcp-echo-failure" property of the setting |
gboolean nm_setting_ppp_get_require_mppe_128 (NMSettingPPP *setting);
-
|
@@ -709,27 +788,11 @@ Registers an error quark for Returns :
-the "require-mppe-128" property of the setting | +the "lcp-echo-interval" property of the setting |
NMSetting * nm_setting_ppp_new (void);
--Creates a new NMSettingPPP object with default values. -
-Returns : |
-the new empty NMSettingPPP object. [transfer full] - | -