Top | ![]() |
![]() |
![]() |
![]() |
char * | apn | Read / Write |
char * | connection-type | Read / Write |
gboolean | default-gateway | Read / Write |
OobsDialType | dial-type | Read / Write |
OobsIfaceEthernet * | ethernet | Read / Write |
char * | iface-section | Read / Write |
char * | login | Read / Write |
char * | password | Read / Write |
gboolean | peer-noauth | Read / Write |
gboolean | persistent | Read / Write |
char * | phone-number | Read / Write |
char * | phone-prefix | Read / Write |
char * | serial-port | Read / Write |
gboolean | use-peer-dns | Read / Write |
OobsModemVolume | volume | Read / Write |
void oobs_iface_ppp_set_connection_type (OobsIfacePPP *iface
,const gchar *type
);
Sets the connection type for the PPP interface. The list of possible values
can be obtained through oobs_ifaces_config_get_available_ppp_types()
.
const gchar *
oobs_iface_ppp_get_connection_type (OobsIfacePPP *iface
);
Gets the connection type for the PPP interface.
void oobs_iface_ppp_set_login (OobsIfacePPP *iface
,const gchar *login
);
Sets a new login for the PPP connection, overwriting the previous one.
const gchar *
oobs_iface_ppp_get_login (OobsIfacePPP *iface
);
Returns the login used for this PPP connection.
void oobs_iface_ppp_set_password (OobsIfacePPP *iface
,const gchar *password
);
Sets a new password for the PPP connection, overwriting the previous one.
void oobs_iface_ppp_set_phone_number (OobsIfacePPP *iface
,const gchar *phone_number
);
Sets a new phone number for the PPP connection, overwriting the previous one.
const gchar *
oobs_iface_ppp_get_phone_number (OobsIfacePPP *iface
);
Returns the phone number used for this PPP connection.
void oobs_iface_ppp_set_phone_prefix (OobsIfacePPP *iface
,const gchar *phone_prefix
);
Sets a new phone number prefix for the PPP connection, overwriting the previous one.
const gchar *
oobs_iface_ppp_get_phone_prefix (OobsIfacePPP *iface
);
Returns the phone number prefix used for this PPP connection.
void oobs_iface_ppp_set_default_gateway (OobsIfacePPP *iface
,gboolean default_gw
);
Sets whether the interface is the default gateway to Internet.
iface |
An OobsIfacePPP. |
|
default_gw |
TRUE to make this interface the default gateway to Internet. |
gboolean
oobs_iface_ppp_get_default_gateway (OobsIfacePPP *iface
);
Returns whether the interface is the default gateway to Internet.
void oobs_iface_ppp_set_use_peer_dns (OobsIfacePPP *iface
,gboolean use_peer_dns
);
Sets whether to use the DNS servers that the ISP specifies.
gboolean
oobs_iface_ppp_get_use_peer_dns (OobsIfacePPP *iface
);
Returns whether the DNS servers specified by the ISP will be used.
void oobs_iface_ppp_set_persistent (OobsIfacePPP *iface
,gboolean persistent
);
Sets whether the interface will try to reconnect if the connection fails.
gboolean
oobs_iface_ppp_get_persistent (OobsIfacePPP *iface
);
Returns whether the interface will try to reconnect if the connection fails.
void oobs_iface_ppp_set_peer_noauth (OobsIfacePPP *iface
,gboolean use_peer_dns
);
Sets whether the peer has to authenticate itself.
gboolean
oobs_iface_ppp_get_peer_noauth (OobsIfacePPP *iface
);
Returns whether the peer is required to authenticate itself.
void oobs_iface_ppp_set_serial_port (OobsIfacePPP *iface
,const gchar *serial_port
);
Sets a serial port to connect with the modem device.
const gchar *
oobs_iface_ppp_get_serial_port (OobsIfacePPP *iface
);
Returns the serial port used to communicate with the modem device.
void oobs_iface_ppp_set_volume (OobsIfacePPP *iface
,OobsModemVolume volume
);
Sets the modem volume.
OobsModemVolume
oobs_iface_ppp_get_volume (OobsIfacePPP *iface
);
Returns the modem volume.
void oobs_iface_ppp_set_dial_type (OobsIfacePPP *iface
,OobsDialType dial_type
);
Sets the dialing type for the modem connection.
OobsDialType
oobs_iface_ppp_get_dial_type (OobsIfacePPP *iface
);
Returns the dialing type for the modem connection.
void oobs_iface_ppp_set_ethernet (OobsIfacePPP *iface
,OobsIfaceEthernet *ethernet
);
Sets the ethernet interface that will be used if the PPP interface is configured as PPPoE.
OobsIfaceEthernet *
oobs_iface_ppp_get_ethernet (OobsIfacePPP *iface
);
Returns the ethernet interface used by the PPP interface if it's configured as PPPoE, or NULL if none is set. You must not unref this.
void oobs_iface_ppp_set_apn (OobsIfacePPP *iface
,const gchar *apn
);
Sets the Access point name that will be used if the PPP interface is configured as GPRS.
const gchar *
oobs_iface_ppp_get_apn (OobsIfacePPP *iface
);
Returns the Access point name for the GPRS provider.
“apn”
property “apn” char *
Access provider name used for GPRS.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: NULL
“connection-type”
property “connection-type” char *
PPP connection type.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: NULL
“default-gateway”
property “default-gateway” gboolean
Whether to use the iface as the default gateway.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: TRUE
“dial-type”
property “dial-type” OobsDialType
Modem dial type.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: OOBS_DIAL_TYPE_TONES
“ethernet”
property“ethernet” OobsIfaceEthernet *
Ethernet interface used for PPPoE.
Owner: OobsIfacePPP
Flags: Read / Write
“iface-section”
property “iface-section” char *
Name of the wvdial section or the provider name.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: NULL
“login”
property “login” char *
Login for the connection.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: NULL
“password”
property “password” char *
Password for the connection.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: NULL
“peer-noauth”
property “peer-noauth” gboolean
Whether the ISP has to authenticate itself or not.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: TRUE
“persistent”
property “persistent” gboolean
Whether to persist if the connection fails.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: FALSE
“phone-number”
property “phone-number” char *
Phone number for the connection.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: NULL
“phone-prefix”
property “phone-prefix” char *
Phone prefix for the connection.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: NULL
“serial-port”
property “serial-port” char *
Serial port for the connection.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: NULL
“use-peer-dns”
property “use-peer-dns” gboolean
Whether to use the ISP DNS.
Owner: OobsIfacePPP
Flags: Read / Write
Default value: TRUE