diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-01-21 16:34:20 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:55 +0100 |
commit | cf4633649443e8292529f34f055562dbf7df089e (patch) | |
tree | 9a0e5ac04754f0a549ee803217565c6df02aacaa /cli/mmcli-common.h | |
parent | 885042e3651a8a3ead8928c233522bd41297bd63 (diff) |
cli: allow specifying bearers and SIMs by index
So, these two are equivalent:
$> mmcli -b 0
$> mmcli -b /org/freedesktop/ModemManager1/Bearer/0
and also this two:
$> mmcli -s 0
$> mmcli -s /org/freedesktop/ModemManager1/SIM/0
Diffstat (limited to 'cli/mmcli-common.h')
-rw-r--r-- | cli/mmcli-common.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/mmcli-common.h b/cli/mmcli-common.h index 9a10889b..bdbb5901 100644 --- a/cli/mmcli-common.h +++ b/cli/mmcli-common.h @@ -28,18 +28,18 @@ MMManager *mmcli_get_manager_sync (GDBusConnection *connection); void mmcli_get_modem (GDBusConnection *connection, - const gchar *modem_str, + const gchar *path_or_index, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); MMObject *mmcli_get_modem_finish (GAsyncResult *res, MMManager **o_manager); MMObject *mmcli_get_modem_sync (GDBusConnection *connection, - const gchar *modem_str, + const gchar *path_or_index, MMManager **o_manager); void mmcli_get_bearer (GDBusConnection *connection, - const gchar *bearer_path, + const gchar *path_or_index, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); @@ -47,12 +47,12 @@ MMBearer *mmcli_get_bearer_finish (GAsyncResult *res, MMManager **manager, MMObject **object); MMBearer *mmcli_get_bearer_sync (GDBusConnection *connection, - const gchar *bearer_path, + const gchar *path_or_index, MMManager **manager, MMObject **object); void mmcli_get_sim (GDBusConnection *connection, - const gchar *sim_path, + const gchar *path_or_index, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); @@ -60,7 +60,7 @@ MMSim *mmcli_get_sim_finish (GAsyncResult *res, MMManager **manager, MMObject **object); MMSim *mmcli_get_sim_sync (GDBusConnection *connection, - const gchar *sim_path, + const gchar *path_or_index, MMManager **manager, MMObject **object); |