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-29 17:26:45 +0200
commit421d4237778d1ff4eaa0ec038020f7f277ef0b99 (patch)
treee38f1399388b43d4862a4e7e6129061974713ff3
parent7af1edbd111744029829b68569e2501d7a23db0c (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 99229423..42f8bcd6 100644
--- a/src/mm-broadband-modem.c
+++ b/src/mm-broadband-modem.c
@@ -5362,6 +5362,7 @@ modem_cdma_get_service_status (MMIfaceModemCdma *self,
/*****************************************************************************/
/* Detailed registration state (CDMA interface) */
+
typedef struct {
MMModemCdmaRegistrationState detailed_cdma1x_state;
MMModemCdmaRegistrationState detailed_evdo_state;
@@ -5771,31 +5772,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);
@@ -5845,7 +5844,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);
}
@@ -5880,9 +5879,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 a02e6299..78cb96d4 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;
}
@@ -605,7 +605,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;
}
@@ -641,7 +641,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;
}
@@ -847,7 +847,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;
}
@@ -855,9 +855,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;
@@ -866,7 +866,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;
@@ -1028,7 +1028,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);
@@ -1048,7 +1048,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);
@@ -1260,7 +1260,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;
@@ -1369,15 +1369,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;
@@ -1424,10 +1422,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,