diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-02-08 13:30:06 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:15:01 +0100 |
commit | 6ff1543c3250be3c55a1f3689cc1692153093221 (patch) | |
tree | d28b7e91a33ff73fe353171988763ec628ed2cf0 /cli/mmcli.c | |
parent | 2021ba80fd1dba6edc47a958aeb9c12e5bdbb141 (diff) |
cli: added SMS-specific actions
Diffstat (limited to 'cli/mmcli.c')
-rw-r--r-- | cli/mmcli.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/mmcli.c b/cli/mmcli.c index 73a10760..d4d8a623 100644 --- a/cli/mmcli.c +++ b/cli/mmcli.c @@ -194,6 +194,8 @@ main (gint argc, gchar **argv) mmcli_sim_get_option_group ()); g_option_context_add_group (context, mmcli_bearer_get_option_group ()); + g_option_context_add_group (context, + mmcli_sms_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); @@ -249,6 +251,13 @@ main (gint argc, gchar **argv) else mmcli_bearer_run_synchronous (connection); } + /* Sms options? */ + else if (mmcli_sms_options_enabled ()) { + if (async_flag) + mmcli_sms_run_asynchronous (connection, cancellable); + else + mmcli_sms_run_synchronous (connection); + } /* Modem 3GPP options? */ else if (mmcli_modem_3gpp_options_enabled ()) { if (async_flag) @@ -311,6 +320,8 @@ main (gint argc, gchar **argv) mmcli_sim_shutdown (); } else if (mmcli_bearer_options_enabled ()) { mmcli_bearer_shutdown (); + } else if (mmcli_sms_options_enabled ()) { + mmcli_sms_shutdown (); } else if (mmcli_modem_options_enabled ()) { mmcli_modem_shutdown (); } |