|  |  |  | libmm-glib Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct MMBearerIpConfig; MMBearerIpMethod mm_bearer_ip_config_get_method (MMBearerIpConfig *self); const gchar * mm_bearer_ip_config_get_address (MMBearerIpConfig *self); guint mm_bearer_ip_config_get_prefix (MMBearerIpConfig *self); const gchar ** mm_bearer_ip_config_get_dns (MMBearerIpConfig *self); const gchar * mm_bearer_ip_config_get_gateway (MMBearerIpConfig *self);
The MMBearerIpConfig is an object handling the IP configuration required by the bearer to finish the connection.
This object is retrieved with either mm_bearer_get_ipv4_config(),
mm_bearer_peek_ipv4_config(), mm_bearer_get_ipv6_config() or
mm_bearer_peek_ipv6_config().
struct MMBearerIpConfig;
The MMBearerIpConfig structure contains private data and should only be accessed using the provided API.
MMBearerIpMethod    mm_bearer_ip_config_get_method      (MMBearerIpConfig *self);
Gets the IP method to be used with this bearer.
| 
 | a MMBearerIpConfig. | 
| Returns : | a MMBearerIpMethod. | 
const gchar *       mm_bearer_ip_config_get_address     (MMBearerIpConfig *self);
Gets the IP address to be used with this bearer.
| 
 | a MMBearerIpConfig. | 
| Returns : | a string with the IP address, or NULL if unknown. Do not free the returned value, it is owned by self. | 
guint               mm_bearer_ip_config_get_prefix      (MMBearerIpConfig *self);
Gets the network prefix to be used with this bearer.
| 
 | a MMBearerIpConfig. | 
| Returns : | the network prefix. | 
const gchar **      mm_bearer_ip_config_get_dns         (MMBearerIpConfig *self);
Gets the list of IP addresses of DNS servers to be used with this bearer.
| 
 | a MMBearerIpConfig. | 
| Returns : | a NULL-terminated array of strings. Do not free the returned value, it is owned by self. | 
const gchar *       mm_bearer_ip_config_get_gateway     (MMBearerIpConfig *self);
Gets the IP address of the gateway to be used with this bearer.
| 
 | a MMBearerIpConfig. | 
| Returns : | a string with the IP address, or NULL if unknown. Do not free the returned value, it is owned by self. |