libmm-glib: allow passing Rm protocol to bearer properties

This commit is contained in:
Aleksander Morgado
2012-01-08 16:08:21 +01:00
parent 1c447ba85b
commit 014a9eddab
2 changed files with 22 additions and 0 deletions

View File

@@ -69,6 +69,15 @@ mm_bearer_properties_set_number (MMBearerProperties *self,
mm_common_bearer_properties_set_number (self, number);
}
void
mm_bearer_properties_set_rm_protocol (MMBearerProperties *self,
MMModemCdmaRmProtocol protocol)
{
g_return_if_fail (MM_IS_BEARER_PROPERTIES (self));
mm_common_bearer_properties_set_rm_protocol (self, protocol);
}
const gchar *
mm_bearer_properties_get_apn (MMBearerProperties *self)
{
@@ -157,6 +166,14 @@ mm_bearer_properties_dup_number (MMBearerProperties *self)
return g_strdup (mm_common_bearer_properties_get_number (self));
}
MMModemCdmaRmProtocol
mm_bearer_properties_get_rm_protocol (MMBearerProperties *self)
{
g_return_val_if_fail (MM_IS_BEARER_PROPERTIES (self), MM_MODEM_CDMA_RM_PROTOCOL_UNKNOWN);
return mm_common_bearer_properties_get_rm_protocol (self);
}
/*****************************************************************************/
MMBearerProperties *

View File

@@ -51,6 +51,9 @@ void mm_bearer_properties_set_allow_roaming (
void mm_bearer_properties_set_number (
MMBearerProperties *properties,
const gchar *number);
void mm_bearer_properties_set_rm_protocol (
MMBearerProperties *properties,
MMModemCdmaRmProtocol protocol);
const gchar *mm_bearer_properties_get_apn (
MMBearerProperties *properties);
@@ -74,6 +77,8 @@ const gchar *mm_bearer_properties_get_number (
MMBearerProperties *properties);
gchar *mm_bearer_properties_dup_number (
MMBearerProperties *properties);
MMModemCdmaRmProtocol mm_bearer_properties_get_rm_protocol (
MMBearerProperties *properties);
G_END_DECLS