aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/mmcli-common.c12
-rw-r--r--cli/mmcli-modem-voice.c18
2 files changed, 15 insertions, 15 deletions
diff --git a/cli/mmcli-common.c b/cli/mmcli-common.c
index 10c7fde5..b50776b6 100644
--- a/cli/mmcli-common.c
+++ b/cli/mmcli-common.c
@@ -1134,7 +1134,7 @@ list_call_ready (MMModemVoice *modem,
GList *call_list;
GError *error = NULL;
- call_list = mm_modem_voice_list_call_finish (modem, res, &error);
+ call_list = mm_modem_voice_list_calls_finish (modem, res, &error);
if (error) {
g_printerr ("error: couldn't list call at '%s': '%s'\n",
mm_modem_voice_get_path (modem),
@@ -1179,10 +1179,10 @@ look_for_call_in_modem (GetVoiceContext *ctx)
g_debug ("Looking for call '%s' in modem '%s'...",
ctx->call_path,
mm_object_get_path (ctx->current));
- mm_modem_voice_list_call (modem,
- ctx->cancellable,
- (GAsyncReadyCallback)list_call_ready,
- ctx);
+ mm_modem_voice_list_calls (modem,
+ ctx->cancellable,
+ (GAsyncReadyCallback)list_call_ready,
+ ctx);
g_object_unref (modem);
return;
}
@@ -1308,7 +1308,7 @@ mmcli_get_call_sync (GDBusConnection *connection,
if (!voice)
continue;
- call_list = mm_modem_voice_list_call_sync (voice, NULL, &error);
+ call_list = mm_modem_voice_list_calls_sync (voice, NULL, &error);
if (error) {
g_printerr ("error: couldn't list call at '%s': '%s'\n",
mm_modem_voice_get_path (voice),
diff --git a/cli/mmcli-modem-voice.c b/cli/mmcli-modem-voice.c
index b58257ee..8fbd8e1e 100644
--- a/cli/mmcli-modem-voice.c
+++ b/cli/mmcli-modem-voice.c
@@ -51,8 +51,8 @@ static gchar *create_str;
static gchar *delete_str;
static GOptionEntry entries[] = {
- { "voice-list-call", 0, 0, G_OPTION_ARG_NONE, &list_flag,
- "List call available in a given modem",
+ { "voice-list-calls", 0, 0, G_OPTION_ARG_NONE, &list_flag,
+ "List calls available in a given modem",
NULL
},
{ "voice-create-call", 0, 0, G_OPTION_ARG_STRING, &create_str,
@@ -203,7 +203,7 @@ list_ready (MMModemVoice *modem,
GList *operation_result;
GError *error = NULL;
- operation_result = mm_modem_voice_list_call_finish (modem, result, &error);
+ operation_result = mm_modem_voice_list_calls_finish (modem, result, &error);
list_process_reply (operation_result, error);
mmcli_async_operation_done ();
@@ -305,11 +305,11 @@ get_modem_ready (GObject *source,
/* Request to list call? */
if (list_flag) {
- g_debug ("Asynchronously listing call in modem...");
- mm_modem_voice_list_call (ctx->modem_voice,
- ctx->cancellable,
- (GAsyncReadyCallback)list_ready,
- NULL);
+ g_debug ("Asynchronously listing calls in modem...");
+ mm_modem_voice_list_calls (ctx->modem_voice,
+ ctx->cancellable,
+ (GAsyncReadyCallback)list_ready,
+ NULL);
return;
}
@@ -382,7 +382,7 @@ mmcli_modem_voice_run_synchronous (GDBusConnection *connection)
GList *result;
g_debug ("Synchronously listing call...");
- result = mm_modem_voice_list_call_sync (ctx->modem_voice, NULL, &error);
+ result = mm_modem_voice_list_calls_sync (ctx->modem_voice, NULL, &error);
list_process_reply (result, error);
return;
}