diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2014-05-20 19:50:44 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-05-20 20:34:38 +0200 |
commit | 22f6981456271e0983d5384db55430f644454ec4 (patch) | |
tree | fbd4b1089bcaf3559087d832b48381fc5b0639f1 /src/qmicli/qmicli.c | |
parent | d23de168032bd0323787a7d622bb3edd06a39eaf (diff) | |
download | external_libqmi-22f6981456271e0983d5384db55430f644454ec4.zip external_libqmi-22f6981456271e0983d5384db55430f644454ec4.tar.gz external_libqmi-22f6981456271e0983d5384db55430f644454ec4.tar.bz2 |
cli,wda: new '--wda-get-data-format' 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 949a4a0..2ff41dc 100644 --- a/src/qmicli/qmicli.c +++ b/src/qmicli/qmicli.c @@ -306,6 +306,9 @@ allocate_client_ready (QmiDevice *dev, case QMI_SERVICE_UIM: qmicli_uim_run (dev, QMI_CLIENT_UIM (client), cancellable); return; + case QMI_SERVICE_WDA: + qmicli_wda_run (dev, QMI_CLIENT_WDA (client), cancellable); + return; default: g_assert_not_reached (); } @@ -543,6 +546,12 @@ parse_actions (void) actions_enabled++; } + /* WDA options? */ + if (qmicli_wda_options_enabled ()) { + service = QMI_SERVICE_WDA; + actions_enabled++; + } + /* Cannot mix actions from different services */ if (actions_enabled > 1) { g_printerr ("error: cannot execute multiple actions of different services\n"); @@ -580,6 +589,8 @@ int main (int argc, char **argv) qmicli_pbm_get_option_group ()); g_option_context_add_group (context, qmicli_uim_get_option_group ()); + g_option_context_add_group (context, + qmicli_wda_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", |