summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorMarco Bascetta <marco.bascetta@sadel.it>2015-06-03 09:37:39 +0200
committerAleksander Morgado <aleksander@aleksander.es>2015-08-02 10:39:48 +0200
commit2ac5d620c458ddc8771ae6c8789608b87d58f56b (patch)
tree6fba70f81c589fb51e5394a1130bcb8f522d4228 /cli
parent9f3801df3f1ee8f5b8d9dfbf7e7a1968fdf85f0b (diff)
downloadModemManager-2ac5d620c458ddc8771ae6c8789608b87d58f56b.tar.gz
libmm-glib,cli: Replaced 'list call' with 'list calls'
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 10c7fde55..b50776b69 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 b58257ee1..8fbd8e1e5 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;
}