aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-cdma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-iface-modem-cdma.c')
-rw-r--r--src/mm-iface-modem-cdma.c34
1 files changed, 22 insertions, 12 deletions
diff --git a/src/mm-iface-modem-cdma.c b/src/mm-iface-modem-cdma.c
index 3ad03709..732e4e46 100644
--- a/src/mm-iface-modem-cdma.c
+++ b/src/mm-iface-modem-cdma.c
@@ -370,28 +370,25 @@ handle_activate_manual (MmGdbusModemCdma *skeleton,
}
/*****************************************************************************/
-
/* Create new CDMA bearer */
+
MMBearer *
-mm_iface_modem_cdma_create_bearer (MMIfaceModemCdma *self,
- MMCommonBearerProperties *properties,
- GError **error)
+mm_iface_modem_cdma_create_bearer_finish (MMIfaceModemCdma *self,
+ GAsyncResult *res,
+ GError **error)
{
MMModemCdmaRegistrationState cdma1x_current_state;
MMModemCdmaRegistrationState evdo_current_state;
MMBearer *bearer;
- g_assert (MM_IFACE_MODEM_CDMA_GET_INTERFACE (self)->create_cdma_bearer != NULL);
-
- /* Create new CDMA bearer using the method set in the interface, so that
- * plugins can subclass it and implement their own. */
- bearer = MM_BEARER (MM_IFACE_MODEM_CDMA_GET_INTERFACE (self)->create_cdma_bearer (
- MM_BASE_MODEM (self),
- properties,
- error));
+ g_assert (MM_IFACE_MODEM_CDMA_GET_INTERFACE (self)->create_cdma_bearer_finish != NULL);
+ bearer = MM_IFACE_MODEM_CDMA_GET_INTERFACE (self)->create_cdma_bearer_finish (self,
+ res,
+ error);
if (!bearer)
return NULL;
+
g_object_get (self,
MM_IFACE_MODEM_CDMA_CDMA1X_REGISTRATION_STATE, &cdma1x_current_state,
MM_IFACE_MODEM_CDMA_EVDO_REGISTRATION_STATE, &evdo_current_state,
@@ -418,6 +415,19 @@ mm_iface_modem_cdma_create_bearer (MMIfaceModemCdma *self,
return bearer;
}
+void
+mm_iface_modem_cdma_create_bearer (MMIfaceModemCdma *self,
+ MMCommonBearerProperties *properties,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_assert (MM_IFACE_MODEM_CDMA_GET_INTERFACE (self)->create_cdma_bearer != NULL);
+ MM_IFACE_MODEM_CDMA_GET_INTERFACE (self)->create_cdma_bearer (self,
+ properties,
+ callback,
+ user_data);
+}
+
/*****************************************************************************/
typedef struct _RunAllRegistrationChecksContext RunAllRegistrationChecksContext;