aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmicli/qmicli.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-08-06 13:02:27 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-09-05 15:39:00 +0200
commit600f429ab6a9b20295114d2c4ace0decc4bd7aff (patch)
treea1f5cfac1253a29edaa05edcaf5c3f7c87693705 /src/qmicli/qmicli.c
parentd456d6821f73b961e88347f8c8c357bb2a25501c (diff)
downloadexternal_libqmi-600f429ab6a9b20295114d2c4ace0decc4bd7aff.zip
external_libqmi-600f429ab6a9b20295114d2c4ace0decc4bd7aff.tar.gz
external_libqmi-600f429ab6a9b20295114d2c4ace0decc4bd7aff.tar.bz2
qmicli: new '--device-open-proxy' option to request to use the qmi-proxy
Diffstat (limited to 'src/qmicli/qmicli.c')
-rw-r--r--src/qmicli/qmicli.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qmicli/qmicli.c b/src/qmicli/qmicli.c
index c992bd6..dc63c41 100644
--- a/src/qmicli/qmicli.c
+++ b/src/qmicli/qmicli.c
@@ -50,6 +50,7 @@ static gboolean get_service_version_info_flag;
static gchar *device_set_instance_id_str;
static gboolean device_open_version_info_flag;
static gboolean device_open_sync_flag;
+static gboolean device_open_proxy_flag;
static gchar *client_cid_str;
static gboolean client_no_release_cid_flag;
static gboolean verbose_flag;
@@ -77,6 +78,10 @@ static GOptionEntry main_entries[] = {
"Run sync operation when opening device",
NULL
},
+ { "device-open-proxy", 'p', 0, G_OPTION_ARG_NONE, &device_open_proxy_flag,
+ "Request to use the 'qmi-proxy' proxy",
+ NULL
+ },
{ "client-cid", 0, 0, G_OPTION_ARG_STRING, &client_cid_str,
"Use the given CID, don't allocate a new one",
"[CID]"
@@ -474,6 +479,8 @@ device_new_ready (GObject *unused,
open_flags |= QMI_DEVICE_OPEN_FLAGS_VERSION_INFO;
if (device_open_sync_flag)
open_flags |= QMI_DEVICE_OPEN_FLAGS_SYNC;
+ if (device_open_proxy_flag)
+ open_flags |= QMI_DEVICE_OPEN_FLAGS_PROXY;
/* Open the device */
qmi_device_open (device,