aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/mmcli.c')
-rw-r--r--cli/mmcli.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/cli/mmcli.c b/cli/mmcli.c
index a4e6a4f5..6784a704 100644
--- a/cli/mmcli.c
+++ b/cli/mmcli.c
@@ -205,6 +205,8 @@ main (gint argc, gchar **argv)
g_option_context_add_group (context,
mmcli_modem_messaging_get_option_group ());
g_option_context_add_group (context,
+ mmcli_modem_voice_get_option_group ());
+ g_option_context_add_group (context,
mmcli_modem_time_get_option_group ());
g_option_context_add_group (context,
mmcli_modem_firmware_get_option_group ());
@@ -218,6 +220,8 @@ main (gint argc, gchar **argv)
mmcli_bearer_get_option_group ());
g_option_context_add_group (context,
mmcli_sms_get_option_group ());
+ g_option_context_add_group (context,
+ mmcli_call_get_option_group ());
g_option_context_add_main_entries (context, main_entries, NULL);
g_option_context_parse (context, &argc, &argv, NULL);
g_option_context_free (context);
@@ -280,6 +284,13 @@ main (gint argc, gchar **argv)
else
mmcli_sms_run_synchronous (connection);
}
+ /* Call options? */
+ else if (mmcli_call_options_enabled ()) {
+ if (async_flag)
+ mmcli_call_run_asynchronous (connection, cancellable);
+ else
+ mmcli_call_run_synchronous (connection);
+ }
/* Modem 3GPP options? */
else if (mmcli_modem_3gpp_options_enabled ()) {
if (async_flag)
@@ -315,6 +326,13 @@ main (gint argc, gchar **argv)
else
mmcli_modem_messaging_run_synchronous (connection);
}
+ /* Voice options? */
+ else if (mmcli_modem_voice_options_enabled ()) {
+ if (async_flag)
+ mmcli_modem_voice_run_asynchronous (connection, cancellable);
+ else
+ mmcli_modem_voice_run_synchronous (connection);
+ }
/* Modem Time options? */
else if (mmcli_modem_time_options_enabled ()) {
if (async_flag)
@@ -375,6 +393,8 @@ main (gint argc, gchar **argv)
mmcli_modem_location_shutdown ();
} else if (mmcli_modem_messaging_options_enabled ()) {
mmcli_modem_messaging_shutdown ();
+ } else if (mmcli_modem_voice_options_enabled ()) {
+ mmcli_modem_voice_shutdown ();
} else if (mmcli_modem_time_options_enabled ()) {
mmcli_modem_time_shutdown ();
} else if (mmcli_modem_firmware_options_enabled ()) {
@@ -389,6 +409,8 @@ main (gint argc, gchar **argv)
mmcli_bearer_shutdown ();
} else if (mmcli_sms_options_enabled ()) {
mmcli_sms_shutdown ();
+ } else if (mmcli_call_options_enabled ()) {
+ mmcli_call_shutdown ();
} else if (mmcli_modem_options_enabled ()) {
mmcli_modem_shutdown ();
}