diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-08-20 13:47:05 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:26 +0100 |
commit | e341c7ff49ffff5a2986a56e105c01b86b6f6478 (patch) | |
tree | 71306f35f98f08fd04d165d449d3ea24b5e4e8e5 /cli/mmcli-modem.c | |
parent | ea5f81b804e923d94e802d67ba889637814186f5 (diff) |
cli: use new modem enabling and disabling API
Diffstat (limited to 'cli/mmcli-modem.c')
-rw-r--r-- | cli/mmcli-modem.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/cli/mmcli-modem.c b/cli/mmcli-modem.c index f5933eac..5ff787b2 100644 --- a/cli/mmcli-modem.c +++ b/cli/mmcli-modem.c @@ -442,9 +442,9 @@ disable_ready (MMModem *modem, gboolean operation_result; GError *error = NULL; - operation_result = mm_modem_enable_finish (modem, - result, - &error); + operation_result = mm_modem_disable_finish (modem, + result, + &error); disable_process_reply (operation_result, error); mmcli_async_operation_done (); @@ -498,7 +498,6 @@ mmcli_modem_run_asynchronous (GDBusConnection *connection, /* Request to enable the modem? */ if (ctxt.enable_flag) { mm_modem_enable_async (ctxt.modem, - TRUE, cancellable, (GAsyncReadyCallback)enable_ready, NULL); @@ -507,11 +506,10 @@ mmcli_modem_run_asynchronous (GDBusConnection *connection, /* Request to disable the modem? */ if (ctxt.disable_flag) { - mm_modem_enable_async (ctxt.modem, - FALSE, - cancellable, - (GAsyncReadyCallback)disable_ready, - NULL); + mm_modem_disable_async (ctxt.modem, + cancellable, + (GAsyncReadyCallback)disable_ready, + NULL); return FALSE; } @@ -560,9 +558,7 @@ mmcli_modem_run_synchronous (GDBusConnection *connection) if (ctxt.enable_flag) { gboolean result; - result = mm_modem_enable (ctxt.modem, - TRUE, - &error); + result = mm_modem_enable (ctxt.modem, &error); enable_process_reply (result, error); return; } @@ -571,9 +567,7 @@ mmcli_modem_run_synchronous (GDBusConnection *connection) if (ctxt.disable_flag) { gboolean result; - result = mm_modem_enable (ctxt.modem, - FALSE, - &error); + result = mm_modem_disable (ctxt.modem, &error); disable_process_reply (result, error); return; } |