cli: allow option groups to force async/sync operations

Some operations are clearly asynchronous (e.g. monitoring modem state), while
others are clearly synchronous (e.g. printing modem info). So just allow option
groups to force the operation to be async or sync based on the detected action.
This commit is contained in:
Aleksander Morgado
2012-03-15 14:14:33 +01:00
parent ec8da67921
commit 6246944510
4 changed files with 40 additions and 26 deletions
+3
View File
@@ -98,6 +98,9 @@ mmcli_manager_options_enabled (void)
exit (EXIT_FAILURE);
}
if (monitor_modems_flag)
mmcli_force_async_operation ();
return !!n_actions;
}