aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-08-08 18:09:35 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-23 19:10:57 +0200
commit3be2432e99021ee819de053deabb6d24480d4b13 (patch)
treef07ddcb6b4229d8255d462aaa8334eb93e6eaff8
parent12c793e11c68dbf416090445ce7cf31042ee3fed (diff)
iface-modem-cdma: minor fix in interface API names
-rw-r--r--src/mm-broadband-modem.c29
-rw-r--r--src/mm-iface-modem-cdma.c44
-rw-r--r--src/mm-iface-modem-cdma.h12
3 files changed, 41 insertions, 44 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c
index 48070555..626fdcf7 100644
--- a/src/mm-broadband-modem.c
+++ b/src/mm-broadband-modem.c
@@ -5358,6 +5358,7 @@ modem_cdma_get_service_status (MMIfaceModemCdma *self,
/*****************************************************************************/
/* Detailed registration state (CDMA interface) */
+
typedef struct {
MMModemCdmaRegistrationState detailed_cdma1x_state;
MMModemCdmaRegistrationState detailed_evdo_state;
@@ -5767,31 +5768,29 @@ modem_cdma_register_in_network_finish (MMIfaceModemCdma *self,
state == MM_MODEM_CDMA_REGISTRATION_STATE_ROAMING || \
state == MM_MODEM_CDMA_REGISTRATION_STATE_REGISTERED)
-static void run_all_cdma_registration_checks_ready (MMBroadbandModem *self,
- GAsyncResult *res,
- RegisterInCdmaNetworkContext *ctx);
+static void run_cdma_registration_checks_ready (MMBroadbandModem *self,
+ GAsyncResult *res,
+ RegisterInCdmaNetworkContext *ctx);
static gboolean
-run_all_cdma_registration_checks_again (RegisterInCdmaNetworkContext *ctx)
+run_cdma_registration_checks_again (RegisterInCdmaNetworkContext *ctx)
{
/* Get fresh registration state */
- mm_iface_modem_cdma_run_all_registration_checks (
+ mm_iface_modem_cdma_run_registration_checks (
MM_IFACE_MODEM_CDMA (ctx->self),
- (GAsyncReadyCallback)run_all_cdma_registration_checks_ready,
+ (GAsyncReadyCallback)run_cdma_registration_checks_ready,
ctx);
return FALSE;
}
static void
-run_all_cdma_registration_checks_ready (MMBroadbandModem *self,
- GAsyncResult *res,
- RegisterInCdmaNetworkContext *ctx)
+run_cdma_registration_checks_ready (MMBroadbandModem *self,
+ GAsyncResult *res,
+ RegisterInCdmaNetworkContext *ctx)
{
GError *error = NULL;
- mm_iface_modem_cdma_run_all_registration_checks_finish (MM_IFACE_MODEM_CDMA (self),
- res,
- &error);
+ mm_iface_modem_cdma_run_registration_checks_finish (MM_IFACE_MODEM_CDMA (self), res, &error);
if (error) {
mm_dbg ("CDMA registration check failed: '%s'", error->message);
@@ -5841,7 +5840,7 @@ run_all_cdma_registration_checks_ready (MMBroadbandModem *self,
/* Check again in a few seconds. */
mm_dbg ("Modem not yet registered in a CDMA network... will recheck soon");
g_timeout_add_seconds (3,
- (GSourceFunc)run_all_cdma_registration_checks_again,
+ (GSourceFunc)run_cdma_registration_checks_again,
ctx);
}
@@ -5876,9 +5875,9 @@ modem_cdma_register_in_network (MMIfaceModemCdma *self,
/* Get fresh registration state */
ctx->timer = g_timer_new ();
- mm_iface_modem_cdma_run_all_registration_checks (
+ mm_iface_modem_cdma_run_registration_checks (
MM_IFACE_MODEM_CDMA (self),
- (GAsyncReadyCallback)run_all_cdma_registration_checks_ready,
+ (GAsyncReadyCallback)run_cdma_registration_checks_ready,
ctx);
}
diff --git a/src/mm-iface-modem-cdma.c b/src/mm-iface-modem-cdma.c
index 6ff8cd48..bc506c87 100644
--- a/src/mm-iface-modem-cdma.c
+++ b/src/mm-iface-modem-cdma.c
@@ -454,7 +454,7 @@ struct _RunAllRegistrationChecksContext {
};
static void
-run_all_registration_checks_context_complete_and_free (RunAllRegistrationChecksContext *ctx)
+run_registration_checks_context_complete_and_free (RunAllRegistrationChecksContext *ctx)
{
g_simple_async_result_complete_in_idle (ctx->result);
g_object_unref (ctx->result);
@@ -463,9 +463,9 @@ run_all_registration_checks_context_complete_and_free (RunAllRegistrationChecksC
}
gboolean
-mm_iface_modem_cdma_run_all_registration_checks_finish (MMIfaceModemCdma *self,
- GAsyncResult *res,
- GError **error)
+mm_iface_modem_cdma_run_registration_checks_finish (MMIfaceModemCdma *self,
+ GAsyncResult *res,
+ GError **error)
{
return !g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (res), error);
}
@@ -488,7 +488,7 @@ setup_registration_checks_ready (MMIfaceModemCdma *self,
&error)) {
/* Make it fatal */
g_simple_async_result_take_error (ctx->result, error);
- run_all_registration_checks_context_complete_and_free (ctx);
+ run_registration_checks_context_complete_and_free (ctx);
return;
}
@@ -616,7 +616,7 @@ get_service_status_ready (MMIfaceModemCdma *self,
&error)) {
mm_warn ("Could not get service status: %s", error->message);
g_simple_async_result_take_error (ctx->result, error);
- run_all_registration_checks_context_complete_and_free (ctx);
+ run_registration_checks_context_complete_and_free (ctx);
return;
}
@@ -652,7 +652,7 @@ get_cdma1x_serving_system_ready (MMIfaceModemCdma *self,
MM_MOBILE_EQUIPMENT_ERROR_NO_NETWORK)) {
mm_warn ("Could not get serving system: %s", error->message);
g_simple_async_result_take_error (ctx->result, error);
- run_all_registration_checks_context_complete_and_free (ctx);
+ run_registration_checks_context_complete_and_free (ctx);
return;
}
@@ -858,7 +858,7 @@ registration_check_step (RunAllRegistrationChecksContext *ctx)
ctx->evdo_state);
g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE);
- run_all_registration_checks_context_complete_and_free (ctx);
+ run_registration_checks_context_complete_and_free (ctx);
return;
}
@@ -866,9 +866,9 @@ registration_check_step (RunAllRegistrationChecksContext *ctx)
}
void
-mm_iface_modem_cdma_run_all_registration_checks (MMIfaceModemCdma *self,
- GAsyncReadyCallback callback,
- gpointer user_data)
+mm_iface_modem_cdma_run_registration_checks (MMIfaceModemCdma *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
{
RunAllRegistrationChecksContext *ctx;
@@ -877,7 +877,7 @@ mm_iface_modem_cdma_run_all_registration_checks (MMIfaceModemCdma *self,
ctx->result = g_simple_async_result_new (G_OBJECT (self),
callback,
user_data,
- mm_iface_modem_cdma_run_all_registration_checks);
+ mm_iface_modem_cdma_run_registration_checks);
ctx->cdma1x_state = MM_MODEM_CDMA_REGISTRATION_STATE_UNKNOWN;
ctx->evdo_state = MM_MODEM_CDMA_REGISTRATION_STATE_UNKNOWN;
ctx->call_manager_system_mode = QCDM_CMD_CM_SUBSYS_STATE_INFO_SYSTEM_MODE_NO_SERVICE;
@@ -1046,7 +1046,7 @@ periodic_registration_checks_ready (MMIfaceModemCdma *self,
RegistrationCheckContext *ctx;
GError *error = NULL;
- mm_iface_modem_cdma_run_all_registration_checks_finish (self, res, &error);
+ mm_iface_modem_cdma_run_registration_checks_finish (self, res, &error);
if (error) {
mm_dbg ("Couldn't refresh CDMA registration status: '%s'", error->message);
g_error_free (error);
@@ -1066,7 +1066,7 @@ periodic_registration_check (MMIfaceModemCdma *self)
ctx = g_object_get_qdata (G_OBJECT (self), registration_check_context_quark);
if (!ctx->running) {
ctx->running = TRUE;
- mm_iface_modem_cdma_run_all_registration_checks (
+ mm_iface_modem_cdma_run_registration_checks (
self,
(GAsyncReadyCallback)periodic_registration_checks_ready,
NULL);
@@ -1278,7 +1278,7 @@ typedef enum {
ENABLING_STEP_FIRST,
ENABLING_STEP_SETUP_UNSOLICITED_EVENTS,
ENABLING_STEP_ENABLE_UNSOLICITED_EVENTS,
- ENABLING_STEP_RUN_ALL_REGISTRATION_CHECKS,
+ ENABLING_STEP_RUN_REGISTRATION_CHECKS,
ENABLING_STEP_PERIODIC_REGISTRATION_CHECKS,
ENABLING_STEP_LAST
} EnablingStep;
@@ -1387,15 +1387,13 @@ enable_unsolicited_events_ready (MMIfaceModemCdma *self,
}
static void
-run_all_registration_checks_ready (MMIfaceModemCdma *self,
+run_registration_checks_ready (MMIfaceModemCdma *self,
GAsyncResult *res,
EnablingContext *ctx)
{
GError *error = NULL;
- if (!mm_iface_modem_cdma_run_all_registration_checks_finish (self,
- res,
- &error)) {
+ if (!mm_iface_modem_cdma_run_registration_checks_finish (self, res, &error)) {
g_simple_async_result_take_error (ctx->result, error);
enabling_context_complete_and_free (ctx);
return;
@@ -1442,10 +1440,10 @@ interface_enabling_step (EnablingContext *ctx)
/* Fall down to next step */
ctx->step++;
- case ENABLING_STEP_RUN_ALL_REGISTRATION_CHECKS:
- mm_iface_modem_cdma_run_all_registration_checks (ctx->self,
- (GAsyncReadyCallback)run_all_registration_checks_ready,
- ctx);
+ case ENABLING_STEP_RUN_REGISTRATION_CHECKS:
+ mm_iface_modem_cdma_run_registration_checks (ctx->self,
+ (GAsyncReadyCallback)run_registration_checks_ready,
+ ctx);
return;
case ENABLING_STEP_PERIODIC_REGISTRATION_CHECKS:
diff --git a/src/mm-iface-modem-cdma.h b/src/mm-iface-modem-cdma.h
index 3734c1e7..8164056c 100644
--- a/src/mm-iface-modem-cdma.h
+++ b/src/mm-iface-modem-cdma.h
@@ -229,12 +229,12 @@ void mm_iface_modem_cdma_update_evdo_registration_state (MMIfaceModemCdma *self,
MMModemCdmaRegistrationState state);
/* Run all registration checks */
-void mm_iface_modem_cdma_run_all_registration_checks (MMIfaceModemCdma *self,
- GAsyncReadyCallback callback,
- gpointer user_data);
-gboolean mm_iface_modem_cdma_run_all_registration_checks_finish (MMIfaceModemCdma *self,
- GAsyncResult *res,
- GError **error);
+void mm_iface_modem_cdma_run_registration_checks (MMIfaceModemCdma *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean mm_iface_modem_cdma_run_registration_checks_finish (MMIfaceModemCdma *self,
+ GAsyncResult *res,
+ GError **error);
/* Register in network */
void mm_iface_modem_cdma_register_in_network (MMIfaceModemCdma *self,