Commit Graph

25 Commits

Author SHA1 Message Date
Aleksander Morgado
c250fa3797 libmm-glib: remove the `libmm-common.h' header
Both the ModemManager daemon and the mmcli will now include `libmm-glib.h' only.

We also handle two new special `_LIBMM_INSIDE_MM' and `LIBMM_INSIDE_MMCLI'
symbols, which if included before the `libmm-glib.h' library allow us to:

 * Don't include the libmm-glib high level API in the ModemManager daemon, as
   the object names would clash with those in the core.

 * Define some of the methods of helper objects to be included only if compiling
   ModemManager daemon or the mmcli.
2012-10-04 10:17:12 +02:00
Aleksander Morgado
c07a3832dd cli: new --firmware-list' and --firmware-select' actions 2012-10-04 10:17:05 +02:00
Aleksander Morgado
8f8bcd7724 cli: allow modifying default DBus timeout with `--timeout'
By default 30s will be used for every operation.
2012-07-25 11:44:01 +02:00
Aleksander Morgado
1df1fe4f4a mmcli: new Time-specific actions 2012-03-16 14:53:22 +01:00
Aleksander Morgado
d528a2211b cli: ensure EOL is added at every error message 2012-03-15 14:15:01 +01:00
Aleksander Morgado
0833934f11 cli: added Messaging-specific actions 2012-03-15 14:15:01 +01:00
Aleksander Morgado
6ff1543c32 cli: added SMS-specific actions 2012-03-15 14:15:01 +01:00
Aleksander Morgado
f8cb1269e3 cli: include Location-related actions 2012-03-15 14:14:52 +01:00
Aleksander Morgado
bb88a63a72 cli: add CDMA-related option group, and enable activation request 2012-03-15 14:14:51 +01:00
Aleksander Morgado
b224f18894 cli: modem options check always last, even when shutting down 2012-03-15 14:14:37 +01:00
Aleksander Morgado
21d3aed125 cli: implement actions from the Simple interface 2012-03-15 14:14:37 +01:00
Aleksander Morgado
88e8c4835b cli: implement SIM related actions 2012-03-15 14:14:36 +01:00
Aleksander Morgado
6583bd61e1 cli: implement 3GPP related actions 2012-03-15 14:14:36 +01:00
Aleksander Morgado
16f2b7bdb8 cli: specify common options in a new group
Actions on modems from specific interfaces, like 3GPP, will also need the modem
to be specified.

The new 'Common' option group will handle all options to specify objects.
2012-03-15 14:14:36 +01:00
Aleksander Morgado
85b14b0008 cli: new Bearer related options 2012-03-15 14:14:34 +01:00
Aleksander Morgado
9e1b2105fb cli: default to showing modem info if no action specified 2012-03-15 14:14:34 +01:00
Aleksander Morgado
0dec4b447e cli: don't unref cancellable if already done 2012-03-15 14:14:34 +01:00
Aleksander Morgado
6246944510 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.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
85a542b5c8 cli: new `--verbose' to dump debug logging 2012-03-15 14:14:32 +01:00
Aleksander Morgado
1257ecd136 cli: start to port Modem actions to use the new libmm-glib 2012-03-15 14:14:26 +01:00
Aleksander Morgado
fcadc0f841 cli: add commands to get info from modem 2012-03-15 14:14:25 +01:00
Aleksander Morgado
9e241b7062 cli: port Manager actions to use the new libmm-glib
The original command line interface was written based on a hand-made libmm. This
commit ports the Manager interface handling to the new gdbus-codegen-based
libmm-glib.
2012-03-15 14:14:25 +01:00
Aleksander Morgado
c37949d7ba cli: always perform a clean shutdown on successful operations 2012-03-15 14:14:25 +01:00
Aleksander Morgado
96e07f7ab0 cli: prefix error messages with 'error: ' 2012-03-15 14:14:25 +01:00
Aleksander Morgado
d8c2a63927 cli: split into different option groups, in different files 2012-03-15 14:14:25 +01:00