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
This commit is contained in:
+6
-6
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user