aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-03-01 12:14:44 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-16 14:53:19 +0100
commitd306bb082f1237f6437e05b7a166df91f46655fb (patch)
treea74e7ab343afa56318429fe3384f3b171bf5a3ff /src
parent323df60ed92d66e985a36a12fb334a0cca9bd1ea (diff)
libmm-common: `MMBearerProperties' won't be considered internal any more
Renamed `MMCommonBearerProperties' to `MMBearerProperties', and removed the `MMBearerProperties' provided in libmm-glib. We'll just use the original one from libmm-common always.
Diffstat (limited to 'src')
-rw-r--r--src/mm-bearer-list.c2
-rw-r--r--src/mm-bearer-list.h2
-rw-r--r--src/mm-bearer.c6
-rw-r--r--src/mm-bearer.h6
-rw-r--r--src/mm-broadband-bearer.c38
-rw-r--r--src/mm-broadband-bearer.h2
-rw-r--r--src/mm-broadband-modem.c2
-rw-r--r--src/mm-iface-modem-simple.c2
-rw-r--r--src/mm-iface-modem.c6
-rw-r--r--src/mm-iface-modem.h4
10 files changed, 35 insertions, 35 deletions
diff --git a/src/mm-bearer-list.c b/src/mm-bearer-list.c
index 7fee5bf8..551279fe 100644
--- a/src/mm-bearer-list.c
+++ b/src/mm-bearer-list.c
@@ -165,7 +165,7 @@ mm_bearer_list_foreach (MMBearerList *self,
MMBearer *
mm_bearer_list_find (MMBearerList *self,
- MMCommonBearerProperties *properties)
+ MMBearerProperties *properties)
{
GList *l;
diff --git a/src/mm-bearer-list.h b/src/mm-bearer-list.h
index 6f2cf591..7cd03946 100644
--- a/src/mm-bearer-list.h
+++ b/src/mm-bearer-list.h
@@ -73,7 +73,7 @@ void mm_bearer_list_foreach (MMBearerList *self,
gpointer user_data);
MMBearer *mm_bearer_list_find (MMBearerList *self,
- MMCommonBearerProperties *properties);
+ MMBearerProperties *properties);
void mm_bearer_list_disconnect_all_bearers (MMBearerList *self,
GAsyncReadyCallback callback,
diff --git a/src/mm-bearer.c b/src/mm-bearer.c
index 358b0265..7f92677b 100644
--- a/src/mm-bearer.c
+++ b/src/mm-bearer.c
@@ -630,7 +630,7 @@ mm_bearer_disconnect_force (MMBearer *self)
gboolean
mm_bearer_cmp_properties (MMBearer *self,
- MMCommonBearerProperties *properties)
+ MMBearerProperties *properties)
{
return MM_BEARER_GET_CLASS (self)->cmp_properties (self, properties);
}
@@ -639,12 +639,12 @@ mm_bearer_cmp_properties (MMBearer *self,
void
mm_bearer_expose_properties (MMBearer *bearer,
- MMCommonBearerProperties *properties)
+ MMBearerProperties *properties)
{
GVariant *dictionary;
/* Keep the whole list of properties in the interface */
- dictionary = mm_common_bearer_properties_get_dictionary (properties);
+ dictionary = mm_bearer_properties_get_dictionary (properties);
mm_gdbus_bearer_set_properties (MM_GDBUS_BEARER (bearer),
dictionary);
g_variant_unref (dictionary);
diff --git a/src/mm-bearer.h b/src/mm-bearer.h
index 161f3be4..809bf161 100644
--- a/src/mm-bearer.h
+++ b/src/mm-bearer.h
@@ -78,7 +78,7 @@ struct _MMBearerClass {
/* Check if the bearer has the exact same properties */
gboolean (* cmp_properties) (MMBearer *self,
- MMCommonBearerProperties *properties);
+ MMBearerProperties *properties);
};
GType mm_bearer_get_type (void);
@@ -87,7 +87,7 @@ void mm_bearer_export (MMBearer *self);
const gchar *mm_bearer_get_path (MMBearer *bearer);
void mm_bearer_expose_properties (MMBearer *bearer,
- MMCommonBearerProperties *properties);
+ MMBearerProperties *properties);
MMBearerStatus mm_bearer_get_status (MMBearer *bearer);
@@ -108,6 +108,6 @@ gboolean mm_bearer_disconnect_finish (MMBearer *self,
void mm_bearer_disconnect_force (MMBearer *self);
gboolean mm_bearer_cmp_properties (MMBearer *self,
- MMCommonBearerProperties *properties);
+ MMBearerProperties *properties);
#endif /* MM_BEARER_H */
diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c
index de919226..f4fa1b76 100644
--- a/src/mm-broadband-bearer.c
+++ b/src/mm-broadband-bearer.c
@@ -1614,20 +1614,20 @@ disconnect (MMBearer *self,
static gboolean
cmp_properties (MMBearer *self,
- MMCommonBearerProperties *properties)
+ MMBearerProperties *properties)
{
MMBroadbandBearer *broadband = MM_BROADBAND_BEARER (self);
return ((!g_strcmp0 (broadband->priv->apn,
- mm_common_bearer_properties_get_apn (properties))) &&
+ mm_bearer_properties_get_apn (properties))) &&
(!g_strcmp0 (broadband->priv->ip_type,
- mm_common_bearer_properties_get_ip_type (properties))) &&
+ mm_bearer_properties_get_ip_type (properties))) &&
(broadband->priv->allow_roaming ==
- mm_common_bearer_properties_get_allow_roaming (properties)) &&
+ mm_bearer_properties_get_allow_roaming (properties)) &&
(!g_strcmp0 (broadband->priv->number,
- mm_common_bearer_properties_get_number (properties))) &&
+ mm_bearer_properties_get_number (properties))) &&
(broadband->priv->rm_protocol ==
- mm_common_bearer_properties_get_rm_protocol (properties)));
+ mm_bearer_properties_get_rm_protocol (properties)));
}
/*****************************************************************************/
@@ -1843,15 +1843,15 @@ interface_initialization_step (InitAsyncContext *ctx)
ctx->step++;
case INITIALIZATION_STEP_EXPOSE_PROPERTIES: {
- MMCommonBearerProperties *properties;
+ MMBearerProperties *properties;
/* We create a new properties object just with the stuff we really used */
- properties = mm_common_bearer_properties_new ();
- mm_common_bearer_properties_set_apn (properties, ctx->self->priv->apn);
- mm_common_bearer_properties_set_number (properties, ctx->self->priv->number);
- mm_common_bearer_properties_set_rm_protocol (properties, ctx->self->priv->rm_protocol);
- mm_common_bearer_properties_set_ip_type (properties, ctx->self->priv->ip_type);
- mm_common_bearer_properties_set_allow_roaming (properties, ctx->self->priv->allow_roaming);
+ properties = mm_bearer_properties_new ();
+ mm_bearer_properties_set_apn (properties, ctx->self->priv->apn);
+ mm_bearer_properties_set_number (properties, ctx->self->priv->number);
+ mm_bearer_properties_set_rm_protocol (properties, ctx->self->priv->rm_protocol);
+ mm_bearer_properties_set_ip_type (properties, ctx->self->priv->ip_type);
+ mm_bearer_properties_set_allow_roaming (properties, ctx->self->priv->allow_roaming);
mm_bearer_expose_properties (MM_BEARER (ctx->self), properties);
g_object_unref (properties);
@@ -1931,7 +1931,7 @@ initable_init_async (GAsyncInitable *initable,
void
mm_broadband_bearer_new (MMBroadbandModem *modem,
- MMCommonBearerProperties *properties,
+ MMBearerProperties *properties,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -1943,11 +1943,11 @@ mm_broadband_bearer_new (MMBroadbandModem *modem,
callback,
user_data,
MM_BEARER_MODEM, modem,
- MM_BROADBAND_BEARER_3GPP_APN, mm_common_bearer_properties_get_apn (properties),
- MM_BROADBAND_BEARER_CDMA_NUMBER, mm_common_bearer_properties_get_number (properties),
- MM_BROADBAND_BEARER_CDMA_RM_PROTOCOL, mm_common_bearer_properties_get_rm_protocol (properties),
- MM_BROADBAND_BEARER_IP_TYPE, mm_common_bearer_properties_get_ip_type (properties),
- MM_BROADBAND_BEARER_ALLOW_ROAMING, mm_common_bearer_properties_get_allow_roaming (properties),
+ MM_BROADBAND_BEARER_3GPP_APN, mm_bearer_properties_get_apn (properties),
+ MM_BROADBAND_BEARER_CDMA_NUMBER, mm_bearer_properties_get_number (properties),
+ MM_BROADBAND_BEARER_CDMA_RM_PROTOCOL, mm_bearer_properties_get_rm_protocol (properties),
+ MM_BROADBAND_BEARER_IP_TYPE, mm_bearer_properties_get_ip_type (properties),
+ MM_BROADBAND_BEARER_ALLOW_ROAMING, mm_bearer_properties_get_allow_roaming (properties),
NULL);
}
diff --git a/src/mm-broadband-bearer.h b/src/mm-broadband-bearer.h
index 0a2398b5..b78462f7 100644
--- a/src/mm-broadband-bearer.h
+++ b/src/mm-broadband-bearer.h
@@ -122,7 +122,7 @@ GType mm_broadband_bearer_get_type (void);
/* Default 3GPP bearer creation implementation */
void mm_broadband_bearer_new (MMBroadbandModem *modem,
- MMCommonBearerProperties *properties,
+ MMBearerProperties *properties,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c
index 1e8e9780..6a55096b 100644
--- a/src/mm-broadband-modem.c
+++ b/src/mm-broadband-modem.c
@@ -231,7 +231,7 @@ broadband_bearer_new_ready (GObject *source,
static void
modem_create_bearer (MMIfaceModem *self,
- MMCommonBearerProperties *properties,
+ MMBearerProperties *properties,
GAsyncReadyCallback callback,
gpointer user_data)
{
diff --git a/src/mm-iface-modem-simple.c b/src/mm-iface-modem-simple.c
index 0a6a5351..abb97d18 100644
--- a/src/mm-iface-modem-simple.c
+++ b/src/mm-iface-modem-simple.c
@@ -498,7 +498,7 @@ connection_step (ConnectionContext *ctx)
case CONNECTION_STEP_BEARER: {
MMBearerList *list = NULL;
- MMCommonBearerProperties *bearer_properties;
+ MMBearerProperties *bearer_properties;
mm_info ("Simple connect state (%d/%d): Bearer",
ctx->step, CONNECTION_STEP_LAST);
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index 36f8568c..4eac0416 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -196,7 +196,7 @@ create_bearer_ready (MMIfaceModem *self,
void
mm_iface_modem_create_bearer (MMIfaceModem *self,
- MMCommonBearerProperties *properties,
+ MMBearerProperties *properties,
GAsyncReadyCallback callback,
gpointer user_data)
{
@@ -270,7 +270,7 @@ handle_create_bearer_auth_ready (MMBaseModem *self,
GAsyncResult *res,
HandleCreateBearerContext *ctx)
{
- MMCommonBearerProperties *properties;
+ MMBearerProperties *properties;
GError *error = NULL;
if (!mm_base_modem_authorize_finish (self, res, &error)) {
@@ -279,7 +279,7 @@ handle_create_bearer_auth_ready (MMBaseModem *self,
return;
}
- properties = mm_common_bearer_properties_new_from_dictionary (ctx->dictionary, &error);
+ properties = mm_bearer_properties_new_from_dictionary (ctx->dictionary, &error);
if (!properties) {
g_dbus_method_invocation_take_error (ctx->invocation, error);
handle_create_bearer_context_free (ctx);
diff --git a/src/mm-iface-modem.h b/src/mm-iface-modem.h
index e6e9d7db..0800bb31 100644
--- a/src/mm-iface-modem.h
+++ b/src/mm-iface-modem.h
@@ -280,7 +280,7 @@ struct _MMIfaceModem {
/* Create bearer */
void (*create_bearer) (MMIfaceModem *self,
- MMCommonBearerProperties *properties,
+ MMBearerProperties *properties,
GAsyncReadyCallback callback,
gpointer user_data);
MMBearer * (*create_bearer_finish) (MMIfaceModem *self,
@@ -395,7 +395,7 @@ gboolean mm_iface_modem_set_bands_finish (MMIfaceModem *self,
/* Allow creating bearers */
void mm_iface_modem_create_bearer (MMIfaceModem *self,
- MMCommonBearerProperties *properties,
+ MMBearerProperties *properties,
GAsyncReadyCallback callback,
gpointer user_data);
MMBearer *mm_iface_modem_create_bearer_finish (MMIfaceModem *self,