diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2014-02-20 17:00:37 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-02-07 20:42:44 +0100 |
commit | c26a795a6d1e1155997018cd10ec724b3606fb5a (patch) | |
tree | 224bd7fc9de44ab7e8803d43bbd82b80a171976e /src/qmicli/qmicli.c | |
parent | 350cd9a06c547f37445fb37e3e32a152f657218f (diff) |
qmicli: new '--voice-get-config' action
Diffstat (limited to 'src/qmicli/qmicli.c')
-rw-r--r-- | src/qmicli/qmicli.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qmicli/qmicli.c b/src/qmicli/qmicli.c index 705ea37..3ba6a9c 100644 --- a/src/qmicli/qmicli.c +++ b/src/qmicli/qmicli.c @@ -315,6 +315,9 @@ allocate_client_ready (QmiDevice *dev, case QMI_SERVICE_WDA: qmicli_wda_run (dev, QMI_CLIENT_WDA (client), cancellable); return; + case QMI_SERVICE_VOICE: + qmicli_voice_run (dev, QMI_CLIENT_VOICE (client), cancellable); + return; default: g_assert_not_reached (); } @@ -585,6 +588,12 @@ parse_actions (void) actions_enabled++; } + /* VOICE options? */ + if (qmicli_voice_options_enabled ()) { + service = QMI_SERVICE_VOICE; + actions_enabled++; + } + /* Cannot mix actions from different services */ if (actions_enabled > 1) { g_printerr ("error: cannot execute multiple actions of different services\n"); @@ -624,6 +633,8 @@ int main (int argc, char **argv) qmicli_uim_get_option_group ()); g_option_context_add_group (context, qmicli_wda_get_option_group ()); + g_option_context_add_group (context, + qmicli_voice_get_option_group ()); g_option_context_add_main_entries (context, main_entries, NULL); if (!g_option_context_parse (context, &argc, &argv, &error)) { g_printerr ("error: %s\n", |