aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-01-20 11:51:26 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:54 +0100
commita2203d7d14379a47ff96afc9a7820ee11cc542fd (patch)
tree7481b8c8724144010d3c434d2472a5f7494f19b6
parent9feb177e212f07351b7d485da375dc736f3d9bd6 (diff)
broadband-bearer: expose properties used by the bearer implementation
-rw-r--r--src/mm-broadband-bearer.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c
index 7ff294ac..1dcf4c96 100644
--- a/src/mm-broadband-bearer.c
+++ b/src/mm-broadband-bearer.c
@@ -1482,6 +1482,7 @@ static void interface_initialization_step (InitAsyncContext *ctx);
typedef enum {
INITIALIZATION_STEP_FIRST,
INITIALIZATION_STEP_CDMA_RM_PROTOCOL,
+ INITIALIZATION_STEP_EXPOSE_PROPERTIES,
INITIALIZATION_STEP_LAST
} InitializationStep;
@@ -1685,6 +1686,23 @@ interface_initialization_step (InitAsyncContext *ctx)
/* Fall down to next step */
ctx->step++;
+ case INITIALIZATION_STEP_EXPOSE_PROPERTIES: {
+ MMCommonBearerProperties *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);
+ mm_bearer_expose_properties (MM_BEARER (ctx->self), properties);
+ g_object_unref (properties);
+
+ /* Fall down to next step */
+ ctx->step++;
+ }
+
case INITIALIZATION_STEP_LAST:
if (mm_iface_modem_is_3gpp (MM_IFACE_MODEM (ctx->modem))) {